bdf_equivalence Module
- defines:
- model = bdf_equivalence_nodes(bdf_filename, bdf_filename_out, tol,
renumber_nodes=False, neq_max=4, xref=True, node_set=None, size=8, is_double=False, remove_collapsed_elements=False, avoid_collapsed_elements=False, crash_on_collapse=False, log=None, debug=True)
- pyNastran.bdf.mesh_utils.bdf_equivalence.bdf_equivalence_nodes(bdf_filename: PathLike, bdf_filename_out: PathLike | None, tol: float, renumber_nodes: bool = False, neq_max: int = 4, xref: bool = True, node_set: list[int] | NDArrayNint | None = None, size: int = 8, is_double: bool = False, remove_collapsed_elements: bool = False, avoid_collapsed_elements: bool = False, crash_on_collapse: bool = False, log: SimpleLogger | None = None, debug: bool = True, method: str = 'new') BDF[source]
Equivalences nodes; keeps the lower node id; creates two nodes with the same
- Parameters:
- bdf_filenamestr / BDF
str : bdf file path BDF : a BDF model that is fully valid (see xref)
- bdf_filename_outstr
str: a bdf_filename to write None: don’t write the deck
- tolfloat
the spherical tolerance
- renumber_nodesbool
should the nodes be renumbered (default=False)
- neq_maxint
the number of “close” points (default=4)
- xrefbool
does the model need to be cross_referenced (default=True; only applies to model option)
- node_setlist[int] / (n, ) ndarray; default=None
the list/array of nodes to consider (not supported with renumber_nodes=True)
- sizeint; {8, 16}; default=8
the bdf write precision
- is_doublebool; default=False
the field precision to write
- remove_collapsed_elementsbool; default=False (unsupported)
- True1D/2D/3D elements will not be collapsed;
CELASx/CDAMP/MPC/etc. are not considered
False : no elements will be removed
- avoid_collapsed_elementsbool; default=False (unsupported)
- Trueonly collapses that don’t break 1D/2D/3D elements will be considered;
CELASx/CDAMP/MPC/etc. are considered
False : element can be collapsed
- crash_on_collapsebool; default=False
- stop if nodes have been collapsed
False: blindly move on True: rereads the BDF which catches doubled nodes (temporary);
in the future collapse=True won’t need to double read; an alternative is to do Patran’s method of avoiding collapse)
- debugbool
bdf debugging
- method: str; default=’new’
‘new’: doesn’t require neq_max; new in v1.3 ‘old’: use neq_max; used in v1.2
- loglogger(); default=None
bdf logging
- Returns:
- modelBDF()
The BDF model corresponding to bdf_filename_out
Warning
I doubt SPOINTs/EPOINTs work correctly ..
Warning
xref not fully implemented (assumes cid=0) ..
Todo
node_set still does work on the all the nodes in the big kdtree loop, which is very inefficient
Todo
remove_collapsed_elements is not supported ..
Todo
avoid_collapsed_elements is not supported ..