nastran Package
geometry_helper
Module
nastran_to_cart3d
Module
- defines:
cart3d = nastran_to_cart3d(bdf, log=None, debug=False)
- nastran_to_cart3d_filename(bdf_filename, cart3d_filename,
log=None, debug=False)
- pyNastran.converters.nastran.nastran_to_cart3d.nastran_to_cart3d(bdf: BDF, log=None, debug: bool = False) Cart3D [source]
Converts a Nastran BDF() object to a Cart3D() object.
- Parameters:
- bdfBDF()
a BDF object
- loglog; default=None -> dummyLogger
a logger object
- debugbool; default=False
True/False (used if log is not defined)
- Returns:
- cart3dCart3D()
a Cart3D object
- pyNastran.converters.nastran.nastran_to_cart3d.nastran_to_cart3d_filename(bdf_filename: str, cart3d_filename: str, log=None, debug: bool = False) None [source]
Creates a Nastran BDF from a Cart3D file.
- Parameters:
- bdf_filenamestr
the path to the bdf file
- cart3d_filenamestr
the path to the cart3d output file
- loglog; default=None -> dummyLogger
a logger object
- debugbool; default=False
True/False (used if log is not defined)
nastran_to_stl
Module
- defines:
- stl = nastran_to_stl_filename(bdf_filename, stl_filename, is_binary=False,
log=None)
- stl = nastran_to_stl(bdf_filename, stl_filename, is_binary=False,
log=None, stop_on_failure=False)
- pyNastran.converters.nastran.nastran_to_stl.nastran_to_stl(bdf_filename, stl_filename, is_binary=False, log=None, stop_on_failure=False)[source]
Converts a Nastran model to an STL
- Parameters:
- bdf_filenamevaries
str : the path to a BDF input file BDF() : a BDF() model object
- stl_filenamestr
the output STL path
- is_binarybool; default=False
should the output file be binary
- logLogger()
a Python logging object
- stop_on_failurebool; default=False
should the code stop if an error is encountered
nastran_to_tecplot
Module
- defines:
tecplot = nastran_to_tecplot(model)
- tecplot = nastran_to_tecplot_filename(bdf_filename, tecplot_filename, z
log=None, debug=False)
nastran_to_ugrid
Module
- defines:
- ugrid = nastran_to_ugrid(bdf_filename, ugrid_filename_out=None, properties=None,
check_shells=True, check_solids=True, log=None)
- pyNastran.converters.nastran.nastran_to_ugrid.main()[source]
Converts a Nastran model to UGRID model and renumbers the properties. Also creates a fun3d.mapbc file.
- pyNastran.converters.nastran.nastran_to_ugrid.nastran_to_ugrid(bdf_filename, ugrid_filename_out=None, properties=None, check_shells=True, check_solids=True, log=None)[source]
set xref=False
- Parameters:
- bdf_filenamevaries
str : a bdf filename BDF() : a BDF object
- ugrid_filename_outstr (default=None -> ???)
the path to the ugrid_filename
- propertiesdict[pid_old]=pid_new???
???
- check_shellsbool (default=True)
verify that there is at least one shell element
- check_solidsbool (default=True)
verify that there is at least one solid element
- logLogger()
a Python logging object