feminout.exportNastranMesh Namespace Reference

Functions

def export (objectslist, filename)
 
def get_export_element_type (femmesh, femelement_table=None)
 
def get_pynastran_mesh (femnodes_mesh, femelement_table, export_element_type)
 
def write (fem_mesh, filename)
 

Variables

string missing_code_pnynasmesh
 
dictionary nastran_ele_types
 

Function Documentation

◆ export()

def feminout.exportNastranMesh.export (   objectslist,
  filename 
)

◆ get_export_element_type()

def feminout.exportNastranMesh.get_export_element_type (   femmesh,
  femelement_table = None 
)

◆ get_pynastran_mesh()

def feminout.exportNastranMesh.get_pynastran_mesh (   femnodes_mesh,
  femelement_table,
  export_element_type 
)

◆ write()

def feminout.exportNastranMesh.write (   fem_mesh,
  filename 
)
directly write a FemMesh to a pyNastran mesh file format
fem_mesh: a FemMesh

References feminout.exportNastranMesh.get_export_element_type(), and feminout.exportNastranMesh.get_pynastran_mesh().

Referenced by feminout.exportNastranMesh.export().

Variable Documentation

◆ missing_code_pnynasmesh

string feminout.exportNastranMesh.missing_code_pnynasmesh
Initial value:
1= """
2model.sol = 101 # is this needed?
3
4# case control
5from pyNastran.bdf.bdf import CaseControlDeck
6cc = CaseControlDeck([
7 #"ECHO = NONE",
8 "TITLE = pyNastran for generating solverinput for for Mystran",
9 #"SUBCASE 1",
10])
11model.case_control_deck = cc\n\n
12"""

◆ nastran_ele_types

dictionary feminout.exportNastranMesh.nastran_ele_types
Initial value:
1= {
2 "tetra4": "ctetra4",
3 "tetra10": "ctetra10",
4 "hexa8": None,
5 "hexa20": None,
6 "tria3": "ctria3",
7 "tria6": None,
8 "quad4": "cquad4",
9 "quad8": None,
10 "seg2": "cbar",
11 "seg3": None,
12 "None": None,
13}