pyNastran
0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
|
Public Member Functions | |
def | __init__ |
def | readCart3d |
extracts the points, elements, and Cp | |
def | getYZeroNodes |
def | makeFullModel |
assumes a y=0 line of nodes | |
def | makeHalfModel |
def | makeMirrorModel |
def | renumberMesh |
def | writeOutfile |
def | writeRegions |
def | writeElements |
def | writePoints |
def | writeHeader |
def | readHeader |
def | getPoints |
A point is defined by x,y,z and the ID is the location in points. | |
def | getMin |
def | getMax |
def | getElements |
An element is defined by n1,n2,n3 and the ID is the location in elements. | |
def | getRegions |
def | readResults |
Reads the Cp results. | |
def | getList |
Takes a list of strings and converts them to floats. | |
def | getValue |
Converts a string to a float. | |
def | exportToNastran |
def | getSegments |
def | makeQuads |
def | checkQuad |
A----B | \ e| |e2 \| C----D. | |
def | getSegment |
Public Attributes | |
isHalfModel | |
cartType | |
nPoints | |
nElements | |
infile | |
infilename | |
readHalf | |
log | |
nResults | |
nElementsRead | |
nElementsSkip | |
Static Public Attributes | |
string | modelType = 'cart3d' |
isStructured = False | |
isOutwardNormals = True |
Definition at line 44 of file cart3d_reader.py.
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.__init__ | ( | self, | |
log = None , |
|||
debug = False |
|||
) |
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegment().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d | ( | self, | |
infilename | |||
) |
extracts the points, elements, and Cp
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 70 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getElements(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getPoints(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getRegions(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getYZeroNodes(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.infile, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.infilename, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElements, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nPoints, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readResults().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getYZeroNodes | ( | self, | |
nodes | |||
) |
Definition at line 86 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeFullModel().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeFullModel(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeFullModel | ( | self, | |
nodes, | |||
elements, | |||
regions, | |||
loads | |||
) |
assumes a y=0 line of nodes
Definition at line 105 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getYZeroNodes(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeHalfModel().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getYZeroNodes(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeMirrorModel().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeHalfModel | ( | self, | |
nodes, | |||
elements, | |||
regions, | |||
Cp | |||
) |
Definition at line 166 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeMirrorModel().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeFullModel().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeMirrorModel | ( | self, | |
nodes, | |||
elements, | |||
regions, | |||
loads | |||
) |
Definition at line 199 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeFullModel(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.renumberMesh().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeHalfModel().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.renumberMesh | ( | self, | |
nodes, | |||
elements, | |||
regions, | |||
loads | |||
) |
Definition at line 229 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeOutfile().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeMirrorModel().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeOutfile | ( | self, | |
outfilename, | |||
points, | |||
elements, | |||
regions | |||
) |
Definition at line 255 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeElements(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeHeader(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writePoints(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeRegions().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.renumberMesh().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeRegions | ( | self, | |
f, | |||
regions | |||
) |
Definition at line 266 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeElements().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeOutfile().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeElements | ( | self, | |
f, | |||
nodes, | |||
elements | |||
) |
Definition at line 272 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writePoints().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeOutfile(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeRegions().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writePoints | ( | self, | |
f, | |||
points | |||
) |
Definition at line 293 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeHeader().
Referenced by pyNastran.converters.panair.panairGridPatch.PanairPatch.__repr__(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeElements(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeOutfile().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeHeader | ( | self, | |
f, | |||
points, | |||
elements | |||
) |
Definition at line 303 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader().
Referenced by pyNastran.op2.tables.opg_appliedLoads.opg_loadVector.ThermalVector.__repr__(), pyNastran.op2.tables.opg_appliedLoads.opg_loadVector.ThermalVector.__reprTransient__(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeOutfile(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writePoints().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 309 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.cartType, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getPoints(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElements, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElementsRead, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElementsSkip, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nPoints, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nResults, and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHalf.
Referenced by pyNastran.op2.fortranFile.FortranFile.printSection(), pyNastran.op2.fortranFile.FortranFile.printSection2(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d(), pyNastran.op2.fortranFile.FortranFile.readMarker(), pyNastran.op2.fortranFile.FortranFile.readMarkers(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.writeHeader().
A point is defined by x,y,z and the ID is the location in points.
Definition at line 332 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getMax(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getMin(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nPoints.
Referenced by pyNastran.converters.panair.panairGrid.PanairGrid.groupSections(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getMin | ( | self, | |
points, | |||
i | |||
) |
Definition at line 359 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getMax().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getPoints().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getMax | ( | self, | |
points, | |||
i | |||
) |
Definition at line 365 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getElements().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getMin(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getPoints().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getElements | ( | self, | |
bypass = False |
|||
) |
An element is defined by n1,n2,n3 and the ID is the location in elements.
Definition at line 375 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getRegions(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElements, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElementsRead, and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElementsSkip.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getMax(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getRegions | ( | self, | |
bypass = True |
|||
) |
Definition at line 403 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElementsRead, pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nElementsSkip, and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readResults().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getElements(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readResults | ( | self, | |
i, | |||
infile | |||
) |
Reads the Cp results.
Cp = (p - 1/gamma) / (0.5*M_inf*M_inf) (pV)^2 = (pu)^2+(pv)^2+(pw)^2 M^2 = (pV)^2/rho^2
# ??? p = (gamma-1)*(e- (rhoU**2+rhoV**2+rhoW**2)/(2.*rho))
# ??? rho,rhoU,rhoV,rhoW,rhoE
Definition at line 439 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.cartType, pyNastran::converters::cart3d::cart3d_reader.convertToFloat(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getList(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nPoints, and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.nResults.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getRegions(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getList | ( | self, | |
sline | |||
) |
Takes a list of strings and converts them to floats.
Definition at line 498 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.exportToNastran(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getValue().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readResults().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getValue | ( | self, | |
sline | |||
) |
Converts a string to a float.
Definition at line 508 of file cart3d_reader.py.
References pyNastran::bdf::fieldWriter.printCard().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getList().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.exportToNastran | ( | self, | |
fname, | |||
points, | |||
elements, | |||
regions | |||
) |
Definition at line 513 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegments(), and pyNastran::bdf::fieldWriter.printCard().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getList().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegments | ( | self, | |
nodes, | |||
elements | |||
) |
Definition at line 539 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegments(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeQuads().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.exportToNastran(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegments().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeQuads | ( | self, | |
nodes, | |||
elements | |||
) |
Definition at line 573 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.checkQuad(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegment().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegments().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.checkQuad | ( | self, | |
nodes, | |||
eid, | |||
eidA, | |||
e, | |||
e2, | |||
a, | |||
b, | |||
c, | |||
i | |||
) |
A----B | \ e| |e2 \| C----D.
two tests 1. folding angle A-B x A-C 2a. abs(A-C) - abs(B-D) = 0 (abs to prevent 2L) 2b. abs(A-B) - abs(C-D) = 0
Definition at line 624 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegment().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeQuads().
def pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getSegment | ( | self, | |
a, | |||
eid, | |||
segments | |||
) |
Definition at line 659 of file cart3d_reader.py.
References pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.__init__().
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.checkQuad(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.makeQuads().
string pyNastran::converters::cart3d::cart3d_reader.Cart3DAsciiReader::modelType = 'cart3d' [static] |
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 45 of file cart3d_reader.py.
Referenced by pyNastran.gui.gui.EventsHandler::createLoadFileDialog().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 46 of file cart3d_reader.py.
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 47 of file cart3d_reader.py.
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readResults().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.panair.panairGridPatch.PanairPatch.getEdge(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getPoints(), pyNastran.converters.panair.panairGridPatch.PanairPatch.quickSummary(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readResults().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3dIO.Cart3dIO.fillCart3dCase(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getElements(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readCart3d().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 49 of file cart3d_reader.py.
Referenced by pyNastran.converters.panair.panairGrid.PanairGrid.addWakePatch(), pyNastran.f06.tables.oes.OES.getBarHeader(), pyNastran.f06.tables.oug.OUG.getComplexDisplacement(), pyNastran.f06.tables.oug.OUG.getDisplacement(), pyNastran.f06.tables.oqg.OQG.getMpcForces(), pyNastran.f06.tables.oes.OES.getQuadCompositeStress(), pyNastran.f06.tables.oes.OES.getQuadHeader(), pyNastran.f06.f06.F06.getRealEigenvectors(), pyNastran.f06.tables.oes.OES.getRodHeader(), pyNastran.f06.tables.oqg.OQG.getSpcForces(), pyNastran.f06.tables.oug.OUG.getTemperatureVector(), pyNastran.f06.tables.oes.OES.getTriHeader(), pyNastran.bdf.bdf_Methods.BDFMethods.MassProperties(), pyNastran.bdf.bdfInterface.bdf_cardMethods.CardMethods.processCard(), pyNastran.f06.tables.oes.OES.readSolidStrain(), pyNastran.converters.panair.panairGrid.PanairGrid.splitPoints(), and pyNastran.f06.f06.F06.startLog().
Definition at line 309 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readResults().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 309 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getElements(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getRegions(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.readNodes().
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.
Definition at line 309 of file cart3d_reader.py.
Referenced by pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getElements(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.getRegions(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.readNodes().