pyNastran/op2/op2_geom
This is the pyNastran.op2.op2_geom.rst file.
op2_geom
Module
digraph inheritance9503d840fc {
bgcolor=transparent;
rankdir=LR;
size="";
"pyNastran.bdf.bdf.BDF" [URL="../bdf/pyNastran.bdf.bdf.html#pyNastran.bdf.bdf.BDF",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="NASTRAN BDF Reader/Writer/Editor class."];
"pyNastran.bdf.bdf.BDF_" -> "pyNastran.bdf.bdf.BDF" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf.BDF_" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Base class for the BDF Reader/Writer/Editor class that's used by the"];
"pyNastran.bdf.bdf_methods.BDFMethods" -> "pyNastran.bdf.bdf.BDF_" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.get_card.GetCard" -> "pyNastran.bdf.bdf.BDF_" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddCards" -> "pyNastran.bdf.bdf.BDF_" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.write_mesh_file.WriteMeshs" -> "pyNastran.bdf.bdf.BDF_" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.uncross_reference.UnXrefMesh" -> "pyNastran.bdf.bdf.BDF_" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.Add0dElements" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.Add0dElements",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.Add1dElements" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.Add1dElements",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.Add2dElements" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.Add2dElements",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.Add3dElements" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.Add3dElements",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddAcoustic" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddAcoustic",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddAero" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddAero",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddBolts" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddBolts",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddCards" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="defines the add_cardname functions that use the object inits"];
"pyNastran.bdf.bdf_interface.add_card.AddCoords" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddContact" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddBolts" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.Add0dElements" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.Add1dElements" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.Add2dElements" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.Add3dElements" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddRigidElements" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddMaterial" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddAero" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddThermal" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddAcoustic" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddOptimization" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddSuperelements" -> "pyNastran.bdf.bdf_interface.add_card.AddCards" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.add_card.AddContact" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddContact",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddCoords" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddCoords",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddMaterial" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddMaterial",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddOptimization" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddOptimization",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddRigidElements" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddRigidElements",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddSuperelements" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddSuperelements",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.add_card.AddThermal" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.add_card.html#pyNastran.bdf.bdf_interface.add_card.AddThermal",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.bdf.bdf_interface.attributes.BDFAttributes" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="defines attributes of the BDF"];
"pyNastran.bdf.bdf_interface.cross_reference.XrefMesh" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Links up the various cards in the BDF."];
"pyNastran.bdf.bdf_interface.attributes.BDFAttributes" -> "pyNastran.bdf.bdf_interface.cross_reference.XrefMesh" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.get_card.GetCard" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.get_card.html#pyNastran.bdf.bdf_interface.get_card.GetCard",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="defines various methods to access high level BDF data"];
"pyNastran.bdf.bdf_interface.get_methods.GetMethods" -> "pyNastran.bdf.bdf_interface.get_card.GetCard" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.get_methods.GetMethods" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="defines various methods to access low level BDF data"];
"pyNastran.bdf.bdf_interface.attributes.BDFAttributes" -> "pyNastran.bdf.bdf_interface.get_methods.GetMethods" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.safe_cross_reference.SafeXrefMesh" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Links up the various cards in the BDF."];
"pyNastran.bdf.bdf_interface.cross_reference.XrefMesh" -> "pyNastran.bdf.bdf_interface.safe_cross_reference.SafeXrefMesh" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.uncross_reference.UnXrefMesh" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Unlinks up the various cards in the BDF."];
"pyNastran.bdf.bdf_interface.safe_cross_reference.SafeXrefMesh" -> "pyNastran.bdf.bdf_interface.uncross_reference.UnXrefMesh" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.write_mesh.WriteMesh" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Defines methods for writing cards"];
"pyNastran.bdf.bdf_interface.attributes.BDFAttributes" -> "pyNastran.bdf.bdf_interface.write_mesh.WriteMesh" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_interface.write_mesh_file.WriteMeshs" [URL="../bdf/bdf_interface/pyNastran.bdf.bdf_interface.write_mesh_files.html#pyNastran.bdf.bdf_interface.write_mesh_file.WriteMeshs",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines methods for writing cards"];
"pyNastran.bdf.bdf_interface.write_mesh.WriteMesh" -> "pyNastran.bdf.bdf_interface.write_mesh_file.WriteMeshs" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.bdf_methods.BDFMethods" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Has the following methods:"];
"pyNastran.bdf.bdf_interface.attributes.BDFAttributes" -> "pyNastran.bdf.bdf_methods.BDFMethods" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.f06.f06_writer.F06Writer" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"];
"pyNastran.op2.op2_interface.op2_f06_common.OP2_F06_Common" -> "pyNastran.f06.f06_writer.F06Writer" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.fortran_format.FortranFormat" [URL="pyNastran.op2.fortran_format.html#pyNastran.op2.fortran_format.FortranFormat",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="defines basic methods for reading Fortran formatted data files"];
"pyNastran.op2.op2.OP2" [URL="pyNastran.op2.op2.html#pyNastran.op2.op2.OP2",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.op2.op2_interface.op2_scalar.OP2_Scalar" -> "pyNastran.op2.op2.OP2" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.writer.op2_writer.OP2Writer" -> "pyNastran.op2.op2.OP2" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.op2_geom.OP2Geom" [URL="#pyNastran.op2.op2_geom.OP2Geom",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="creates an interface for the OP2 and BDF classes"];
"pyNastran.bdf.bdf.BDF" -> "pyNastran.op2.op2_geom.OP2Geom" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.op2_geom.OP2GeomCommon" -> "pyNastran.op2.op2_geom.OP2Geom" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.op2_geom.OP2GeomCommon" [URL="#pyNastran.op2.op2_geom.OP2GeomCommon",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="interface for the OP2Geom class for to loading subclasses"];
"pyNastran.op2.op2.OP2" -> "pyNastran.op2.op2_geom.OP2GeomCommon" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.tables.geom.geom_common.GeomCommon" -> "pyNastran.op2.op2_geom.OP2GeomCommon" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.op2_interface.op2_codes.Op2Codes" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"];
"pyNastran.op2.op2_interface.op2_common.OP2Common" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"];
"pyNastran.op2.op2_interface.op2_codes.Op2Codes" -> "pyNastran.op2.op2_interface.op2_common.OP2Common" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.f06.f06_writer.F06Writer" -> "pyNastran.op2.op2_interface.op2_common.OP2Common" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.op2_interface.op2_f06_common.OP2_F06_Common" [URL="op2_interface/pyNastran.op2.op2_interface.html#pyNastran.op2.op2_interface.op2_f06_common.OP2_F06_Common",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.op2.op2_interface.op2_scalar.OP2_Scalar" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Defines an interface for the Nastran OP2 file."];
"pyNastran.op2.op2_interface.op2_common.OP2Common" -> "pyNastran.op2.op2_interface.op2_scalar.OP2_Scalar" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.fortran_format.FortranFormat" -> "pyNastran.op2.op2_interface.op2_scalar.OP2_Scalar" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.op2.tables.geom.geom_common.GeomCommon" [URL="tables/geom/pyNastran.op2.tables.geom.html#pyNastran.op2.tables.geom.geom_common.GeomCommon",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"pyNastran.op2.writer.op2_writer.OP2Writer" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"];
"pyNastran.op2.op2_interface.op2_f06_common.OP2_F06_Common" -> "pyNastran.op2.writer.op2_writer.OP2Writer" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
- Defines:
- read_op2_geom(op2_filename=None, combine=True, subcases=None,
exclude_results=None, include_results=None, validate=True, xref=True, build_dataframe=False, skip_undefined_matrices=True, mode=’msc’, log=None, debug=True, debug_file=None, encoding=None)
OP2Geom(make_geom=True, debug=False, log=None, debug_file=None, mode=’msc’) - OP2
- class pyNastran.op2.op2_geom.OP2Geom(make_geom: bool = True, debug: bool = False, log: Any = None, debug_file: str | None = None, mode: str = 'msc')[source]
Bases:
BDF
,OP2GeomCommon
creates an interface for the OP2 and BDF classes
Initializes the OP2 object
- Parameters:
- make_geombool; default=False
reads the BDF tables
- debugbool; default=False
enables the debug log and sets the debug in the logger
- log: log()
a logging object to write debug messages to (.. seealso:: import logging)
- debug_filedefault=None -> no debug
sets the filename that will be written to
- modestr; default=’msc’
{msc, nx}
- export_hdf5_file(hdf5_file, exporter=None)[source]
Converts the OP2 objects into hdf5 object
- Parameters:
- hdf5_fileH5File()
an h5py object
- exporterHDF5Exporter; default=None
unused
- TODO: doesn’t support:
BucklingEigenvalues
- property is_geometry: bool
- class pyNastran.op2.op2_geom.OP2GeomCommon(make_geom: bool = True, debug: bool = False, log: Any = None, debug_file: str | None = None, mode: str | None = None)[source]
Bases:
OP2
,GeomCommon
interface for the OP2Geom class for to loading subclasses
Initializes the OP2 object
- Parameters:
- make_geombool; default=False
reads the BDF tables
- debugbool; default=False
enables the debug log and sets the debug in the logger
- log: log()
a logging object to write debug messages to (.. seealso:: import logging)
- debug_filedefault=None -> no debug
sets the filename that will be written to
- modestr; default=None -> ‘msc’
{msc, nx}
- pyNastran.op2.op2_geom.attach_op2_results_to_bdf(bdf_model: BDF, op2_model: OP2 | None = None, validate: bool = True) OP2Geom [source]
We’re up-converting a BDF and an OP2 result into an OP2Geom object.
- pyNastran.op2.op2_geom.bdf_to_op2_geom(model: BDF, validate: bool = True) OP2Geom [source]
converts a BDF() -> OP2Geom()
- pyNastran.op2.op2_geom.read_op2_geom(op2_filename: str | PurePath | None = None, combine: bool = True, subcases: list[int] | None = None, exclude_results: list[str] | None = None, include_results: list[str] | None = None, validate: bool = True, xref: bool = True, build_dataframe: bool = False, skip_undefined_matrices: bool = True, mode: str = 'msc', log: SimpleLogger = None, debug: bool = True, debug_file: str | None = None, encoding: str | None = None)[source]
Creates the OP2 object without calling the OP2 class.
- Parameters:
- op2_filenamestr (default=None -> popup)
the op2_filename
- combinebool; default=True
True : objects are isubcase based False : objects are (isubcase, subtitle) based;
will be used for superelements regardless of the option
- subcaseslist[int, …] / int; default=None->all subcases
list of [subcase1_ID,subcase2_ID]
- exclude_results / include_resultslist[str] / str; default=None
a list of result types to exclude/include one of these must be None
- validatebool
runs various checks on the BDF (default=True)
- xrefbool
should the bdf be cross referenced (default=True)
- build_dataframebool; default=False
builds a pandas DataFrame for op2 objects
- skip_undefined_matricesbool; default=False
True : prevents matrix reading crashes
- logLog()
a logging object to write debug messages to
(.. seealso:: import logging)
- debugbool; default=False
enables the debug log and sets the debug in the logger
- debug_filestr; default=None (No debug)
sets the filename that will be written to
- encodingstr
the unicode encoding (default=None; system default)
- Returns:
- modelOP2()
an OP2 object
Todo
creates the OP2 object without all the read methods ..
Note
this method will change in order to return an object that does not have so many methods