export_mcids Module
- Defines:
nodes, bars = export_mcids(bdf_filename, csv_filename=None)
- pyNastran.bdf.mesh_utils.export_mcids.export_element_cid(bdf_filename: BDF | str, eids: list[int] | None = None, log=None, debug=False)[source]
Exports the element coordinates systems for non-isotropic materials.
Note that for two quads identically oriented/numbered PSHELL quads with theta different between the two, the element cid will be same.
- pyNastran.bdf.mesh_utils.export_mcids.export_mcids(bdf_filename: BDF | str, csv_filename: str | None = None, eids: list[int] | None = None, export_xaxis: bool = True, export_yaxis: bool = True, consider_property_rotation: bool = True, iply: int = 0, log=None, debug=False)[source]
Exports the element material coordinates systems for non-isotropic materials.
- Parameters:
- bdf_filenamestr/BDF
a bdf filename or BDF model
- csv_filenamestr; default=None
str : the path to the output csv None : don’t write a CSV
- eidslist[int]
the element ids to consider
- export_xaxisbool; default=True
export the x-axis
- export_yaxisbool; default=True
export the x-axis
- consider_property_rotationbool; default=True
rotate the coordinate system
- iplyint; default=0
TODO: not validated the ply to consider
- pid_to_npliesdict[int pid, int nplies]; default=None -> auto
optional dictionary to speed up analysis
PSHELL
iply location —- ——–
0 mid1 or mid2 1 mid1 2 mid2 3 mid3 4 mid4
PCOMP/PCOMPG
iply location —- ——– 0 layer1 1 layer2
- Returns:
- nodes(nnodes, 3) float list
the nodes
- bars(nbars, 2) int list
the “bars” that represent the x/y axes of the coordinate systems
- pyNastran.bdf.mesh_utils.export_mcids.export_mcids_all(bdf_filename: BDF | str, eids: list[int] | None = None, log: SimpleLogger | None = None, debug: bool = False)[source]
Exports the element material coordinates systems for non-isotropic materials.
Note that for two quads identically oriented/numbered PSHELL quads with theta different between the two, the mcid will be different.
- Parameters:
- bdf_filenamestr/BDF
a bdf filename or BDF model
- eidslist[int]
the element ids to consider
- #csv_filenamestr; default=None
#str : the path to the output csv #None : don’t write a CSV
PSHELL
iply location —- ——–
0 mid1 or mid2 1 mid1 2 mid2 3 mid3 4 mid4
PCOMP/PCOMPG
iply location —- ——– 0 layer1 1 layer2
- Returns:
- nodes(nnodes, 3) float list
the nodes
- bars(nbars, 2) int list
the “bars” that represent the x/y axes of the coordinate systems