pyNastran  0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
pyNastran.bdf.bdf.BDF Class Reference

NASTRAN BDF Reader/Writer/Editor class. More...

Inheritance diagram for pyNastran.bdf.bdf.BDF:
pyNastran.bdf.bdf_Methods.BDFMethods pyNastran.op2.op2.OP2

List of all members.

Public Member Functions

def __init__
 Initializes the BDF object.
def disableCards
def disable_cards
 Method for removing broken cards from the reader.
def is_thermal_solution
def readBDF
 main read method for the bdf
def readBDF_Punch
 BDF punch file reader.
def updateSolution
def update_solution
 updates the overall solution type (e.g.
def setDynamicSyntax
def set_dynamic_syntax
 uses the OpenMDAO syntax of varName in an embedded BDF to update the values for an optimization study.
def addCard
def add_card
 adds a card object to the BDF object.

Public Attributes

 debug
 allows the BDF variables to be scoped properly (i think...)
 isDynamicSyntax
 flag that allows for OpenMDAO-style optimization syntax to be used
 rejects
 lines that were rejected b/c they were for a card that isnt supported
 reject_cards
 cards that were created, but not processed
 executive_control_lines
 list of execive control deck lines
 case_control_lines
 list of case control deck lines
 cardsToRead
 the list of possible cards that will be parsed
 uniqueBulkDataCards
 specialCards
 / is the delete from restart card
 cardsToWrite
 was playing around with an idea...does nothing for now...
 bdf_filename
 autoReject
 solmap_toValue
 rsolmap_toStr
 sol
 the analysis type
 solMethod
 used in solution 600, method
 iSolLine
 the line with SOL on it, marks ???
 caseControlDeck
 params
 store the PARAM cards
 nodes
 stores SPOINT, GRID cards
 spoints
 gridSet
 stores GRIDSET card
 elements
 stores elements (CQUAD4, CTRIA3, CHEXA8, CTETRA4, CROD, CONROD, etc.)
 rigidElements
 stores rigid elements (RBE2, RBE3, RJOINT, etc.)
 properties
 store CMASS1,CMASS2,CMASS3,CMASS4,CMASS5 self.massElements = {} stores LOTS of propeties (PBAR, PBEAM, PSHELL, PCOMP, etc.)
 materials
 stores MAT1, MAT2, MAT3,...MAT10 (no MAT4, MAT5)
 materialDeps
 stores MATS1
 creepMaterials
 stores the CREEP card
 loads
 stores LOAD, FORCE, MOMENT, etc.
 coords
 stores coordinate systems
 suports
 stores SUPORT1s self.constraints = {} # suport1, anything else???
 spcObject2
 stores SPCADD,SPC,SPC1,SPCD,SPCAX
 mpcObject2
 stores MPCADD,MPC
 spcs
 spcadds
 mpcs
 mpcadds
 dareas
 stores DAREA
 nlparms
 stores NLPARM
 tsteps
 stores TSTEPs
 tstepnls
 stores TSTEPNL
 dmis
 direct matrix input - DMIG
 dmigs
 dmijs
 dmijis
 dmiks
 dequations
 frequencies
 frequencies
 dconstrs
 desvars
 ddvals
 dlinks
 dresps
 dvprels
 stores DVPREL1, DVPREL2...might change to DVxRel
 dvmrels
 doptprm
 sets
 SETx.
 asets
 bsets
 csets
 qsets
 setsSuper
 SESETx.
 tables
 tables
 randomTables
 randomTables
 methods
 methods
 cMethods
 EIGB, EIGR, EIGRL.
 caeros
 stores CAEROx
 paeros
 stores PAEROx
 aero
 stores AERO
 aeros
 stores AEROS
 aefacts
 stores AEFACT
 aelinks
 stores AELINK
 aelists
 stores AELIST
 aeparams
 stores AEPARAM
 aesurfs
 stores AESURF
 aestats
 stores AESTAT
 gusts
 stores GUST cards
 flfacts
 stores FLFACT
 flutters
 stores FLUTTER
 mkaeros
 mkaeros
 splines
 store SPLINE1,SPLINE2,SPLINE4,SPLINE5
 trims
 stores TRIM
 bcs
 stores thermal boundary conditions - CONV,RADBC
 thermalMaterials
 defines the MAT4, MAT5, MATT4, etc.
 phbdys
 stores other thermal properties - unused ??? self.thermalProperties = {} stores PHBDY
 convectionProperties
 stores convection properties - PCONV, PCONVM ???
 dictOfVars
 linesPack
 foundEndData
 elif cardName == 'CORD3G': coord = CORD3G(cardObj) self.addCoord(coord)

Static Public Attributes

string modelType = 'nastran'
 isStructured = False

Detailed Description

NASTRAN BDF Reader/Writer/Editor class.

Definition at line 125 of file bdf.py.


Constructor & Destructor Documentation

def pyNastran.bdf.bdf.BDF.__init__ (   self,
  debug = True,
  log = None,
  nCardLinesMax = 1000 
)

Initializes the BDF object.

Parameters:
selfthe object pointer
debugused to set the logger if no logger is passed in
loga python logging module object
nCardLinesMaxthe number of lines of the longest card in the deck (default=1000)

Definition at line 138 of file bdf.py.


Member Function Documentation

def pyNastran.bdf.bdf.BDF.disableCards (   self,
  cards 
)
See also:
disable_cards

Definition at line 298 of file bdf.py.

References pyNastran.bdf.bdf.BDF.disable_cards().

def pyNastran.bdf.bdf.BDF.disable_cards (   self,
  cards 
)

Method for removing broken cards from the reader.

Parameters:
selfthe object pointer
cardsa list/set of cards that should not be read

Definition at line 309 of file bdf.py.

References pyNastran.bdf.bdf.BDF.is_thermal_solution().

Referenced by pyNastran.bdf.bdf.BDF.disableCards().

Todo:
implement case control deck checker
Warning:
dont use this...returns False

Definition at line 318 of file bdf.py.

References pyNastran.bdf.bdf.BDF.autoReject, pyNastran.bdf.bdf.BDF.bdf_filename, and pyNastran.bdf.bdf.BDF.solmap_toValue.

Referenced by pyNastran.bdf.bdf.BDF.disable_cards().

def pyNastran.bdf.bdf.BDF.readBDF (   self,
  infilename,
  includeDir = None,
  xref = True 
)

main read method for the bdf

Parameters:
infilenamethe input bdf
includeDirthe relative path to any include files (default=None if no include files)
xrefshould the bdf be cross referenced (default=True)

Definition at line 605 of file bdf.py.

References pyNastran.bdf.bdf.BDF._read_bulk_data_deck(), pyNastran.bdf.bdf.BDF._read_case_control_deck(), pyNastran.bdf.bdf.BDF._read_executive_control_deck(), pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader._set_infile(), pyNastran.bdf.bdf.BDF.bdf_filename, pyNastran.bdf.cards.thermal.thermal.ThermalCard.crossReference(), pyNastran.bdf.cards.properties.bush.BushingProperty.crossReference(), pyNastran.bdf.cards.properties.mass.PointProperty.crossReference(), pyNastran.bdf.cards.properties.damper.DamperProperty.crossReference(), pyNastran.bdf.cards.elements.rigid.RigidElement.crossReference(), pyNastran.bdf.cards.elements.damper.LineDamper.crossReference(), pyNastran.bdf.cards.nodes.Node.crossReference(), pyNastran.bdf.bdfInterface.crossReference.XrefMesh.crossReference(), pyNastran.bdf.cards.elements.solid.SolidElement.crossReference(), pyNastran.bdf.cards.elements.elements.CFAST.crossReference(), pyNastran.bdf.cards.properties.damper.PVISC.crossReference(), pyNastran.bdf.cards.properties.properties.PFAST.crossReference(), pyNastran.bdf.cards.properties.springs.PELAS.crossReference(), pyNastran.bdf.cards.constraints.constraintObject2.crossReference(), pyNastran.bdf.cards.thermal.loads.QBDY1.crossReference(), pyNastran.bdf.cards.elements.shell.ShellElement.crossReference(), pyNastran.bdf.cards.baseCard.BaseCard.crossReference(), pyNastran.bdf.cards.methods.EIGB.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS1.crossReference(), pyNastran.bdf.cards.materials.CREEP.crossReference(), pyNastran.bdf.cards.nodes.SPOINT.crossReference(), pyNastran.bdf.cards.elements.elements.CGAP.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP1.crossReference(), pyNastran.bdf.cards.properties.damper.PDAMP5.crossReference(), pyNastran.bdf.cards.elements.bush.CBUSH.crossReference(), pyNastran.bdf.cards.properties.springs.PELAST.crossReference(), pyNastran.bdf.cards.properties.properties.PGAP.crossReference(), pyNastran.bdf.cards.elements.elements.CrackElement.crossReference(), pyNastran.bdf.cards.properties.damper.PDAMPT.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP2.crossReference(), pyNastran.bdf.cards.thermal.loads.QBDY3.crossReference(), pyNastran.bdf.cards.nodes.SPOINTs.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS2.crossReference(), pyNastran.bdf.cards.elements.bush.CBUSH1D.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS1.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP3.crossReference(), pyNastran.bdf.cards.baseCard.Property.crossReference(), pyNastran.bdf.cards.properties.properties.PLSOLID.crossReference(), pyNastran.bdf.cards.thermal.thermal.CHBDYG.crossReference(), pyNastran.bdf.cards.nodes.GRDSET.crossReference(), pyNastran.bdf.cards.baseCard.Material.crossReference(), pyNastran.bdf.cards.constraints.constraintObject.crossReference(), pyNastran.bdf.cards.elements.bush.CBUSH2D.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP4.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS3.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS2.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP5.crossReference(), pyNastran.bdf.cards.loads.loads.SLOAD.crossReference(), pyNastran.bdf.cards.thermal.loads.TEMP.crossReference(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS4.crossReference(), pyNastran.bdf.cards.methods.EIGR.crossReference(), pyNastran.bdf.cards.properties.properties.PRAC2D.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS3.crossReference(), pyNastran.bdf.cards.thermal.loads.TEMPD.crossReference(), pyNastran.bdf.cards.properties.properties.PRAC3D.crossReference(), pyNastran.bdf.cards.methods.EIGP.crossReference(), pyNastran.bdf.cards.loads.staticLoads.GRAV.crossReference(), pyNastran.bdf.cards.nodes.GRID.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS4.crossReference(), pyNastran.bdf.cards.elements.mass.CONM1.crossReference(), pyNastran.bdf.cards.loads.loads.TLOAD1.crossReference(), pyNastran.bdf.cards.methods.EIGRL.crossReference(), pyNastran.bdf.cards.loads.staticLoads.ACCEL1.crossReference(), pyNastran.bdf.cards.properties.shell.PCOMP.crossReference(), pyNastran.bdf.cards.aero.CSSCHD.crossReference(), pyNastran.bdf.cards.coordinateSystems.Cord2x.crossReference(), pyNastran.bdf.cards.constraints.SPC.crossReference(), pyNastran.bdf.cards.thermal.thermal.CONV.crossReference(), pyNastran.bdf.cards.loads.loads.TLOAD2.crossReference(), pyNastran.bdf.cards.elements.shell.CTRIAX6.crossReference(), pyNastran.bdf.caseControlDeck.CaseControlDeck.crossReference(), pyNastran.bdf.cards.optimization.DVPREL2.crossReference(), pyNastran.bdf.cards.loads.loads.RFORCE.crossReference(), pyNastran.bdf.cards.aero.CAERO1.crossReference(), pyNastran.bdf.cards.thermal.thermal.RADBC.crossReference(), pyNastran.bdf.cards.constraints.SPCAX.crossReference(), pyNastran.bdf.cards.elements.bars.CONROD.crossReference(), pyNastran.bdf.cards.properties.bars.PROD.crossReference(), pyNastran.bdf.cards.constraints.SPC1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.FORCE.crossReference(), pyNastran.bdf.cards.coordinateSystems.Cord1x.crossReference(), pyNastran.bdf.cards.loads.loads.RLOAD1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.FORCE1.crossReference(), pyNastran.bdf.cards.properties.bars.PTUBE.crossReference(), pyNastran.bdf.cards.aero.CAERO2.crossReference(), pyNastran.bdf.cards.constraints.SPCADD.crossReference(), pyNastran.bdf.subcase.Subcase.crossReference(), pyNastran.bdf.cards.loads.loads.RLOAD2.crossReference(), pyNastran.bdf.cards.constraints.MPCADD.crossReference(), pyNastran.bdf.cards.loads.staticLoads.FORCE2.crossReference(), pyNastran.bdf.cards.loads.staticLoads.MOMENT.crossReference(), pyNastran.bdf.cards.loads.loads.RANDPS.crossReference(), pyNastran.bdf.cards.properties.bars.PBAR.crossReference(), pyNastran.bdf.cards.elements.bars.CBAR.crossReference(), pyNastran.bdf.cards.loads.staticLoads.MOMENT1.crossReference(), pyNastran.bdf.cards.properties.shell.PSHELL.crossReference(), pyNastran.bdf.cards.loads.staticLoads.MOMENT2.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD.crossReference(), pyNastran.bdf.cards.properties.bars.PBARL.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD2.crossReference(), pyNastran.bdf.cards.elements.bars.CBEAM3.crossReference(), pyNastran.bdf.cards.aero.SPLINE1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD4.crossReference(), pyNastran.bdf.cards.properties.bars.PBEAM.crossReference(), pyNastran.bdf.cards.aero.SPLINE2.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOADX1.crossReference(), pyNastran.bdf.cards.materials.MATS1.crossReference(), pyNastran.bdf.cards.elements.bars.CBEAM.crossReference(), pyNastran.bdf.cards.aero.SPLINE4.crossReference(), pyNastran.bdf.cards.aero.SPLINE5.crossReference(), pyNastran.bdf.cards.properties.bars.PBEAML.crossReference(), pyNastran.bdf.cards.properties.bars.PBEND.crossReference(), pyNastran.bdf.bdf.BDF.debug, pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader.print_filename(), and pyNastran.bdf.bdf.BDF.readBDF_Punch().

Referenced by pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.autoRejectBDF(), and pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.echoBDF().

def pyNastran.bdf.bdf.BDF.readBDF_Punch (   self,
  infilename,
  includeDir = None,
  xref = True 
)

BDF punch file reader.

Parameters:
infilenamethe input bdf
includeDirthe relative path to any include files (default=None if no include files)
xrefshould the bdf be cross referenced (default=True)

Definition at line 638 of file bdf.py.

References pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader._active_filenames, pyNastran.bdf.bdf.BDF._parse_executive_control_deck(), pyNastran.bdf.bdf.BDF.bdf_filename, pyNastran.bdf.cards.thermal.thermal.ThermalCard.crossReference(), pyNastran.bdf.cards.properties.mass.PointProperty.crossReference(), pyNastran.bdf.cards.properties.bush.BushingProperty.crossReference(), pyNastran.bdf.cards.properties.damper.DamperProperty.crossReference(), pyNastran.bdf.cards.elements.rigid.RigidElement.crossReference(), pyNastran.bdf.cards.elements.damper.LineDamper.crossReference(), pyNastran.bdf.cards.nodes.Node.crossReference(), pyNastran.bdf.cards.elements.solid.SolidElement.crossReference(), pyNastran.bdf.bdfInterface.crossReference.XrefMesh.crossReference(), pyNastran.bdf.cards.elements.elements.CFAST.crossReference(), pyNastran.bdf.cards.properties.damper.PVISC.crossReference(), pyNastran.bdf.cards.properties.properties.PFAST.crossReference(), pyNastran.bdf.cards.properties.springs.PELAS.crossReference(), pyNastran.bdf.cards.constraints.constraintObject2.crossReference(), pyNastran.bdf.cards.thermal.loads.QBDY1.crossReference(), pyNastran.bdf.cards.elements.shell.ShellElement.crossReference(), pyNastran.bdf.cards.baseCard.BaseCard.crossReference(), pyNastran.bdf.cards.methods.EIGB.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS1.crossReference(), pyNastran.bdf.cards.materials.CREEP.crossReference(), pyNastran.bdf.cards.nodes.SPOINT.crossReference(), pyNastran.bdf.cards.elements.elements.CGAP.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP1.crossReference(), pyNastran.bdf.cards.properties.damper.PDAMP5.crossReference(), pyNastran.bdf.cards.elements.bush.CBUSH.crossReference(), pyNastran.bdf.cards.properties.springs.PELAST.crossReference(), pyNastran.bdf.cards.properties.properties.PGAP.crossReference(), pyNastran.bdf.cards.elements.elements.CrackElement.crossReference(), pyNastran.bdf.cards.properties.damper.PDAMPT.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP2.crossReference(), pyNastran.bdf.cards.thermal.loads.QBDY3.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS2.crossReference(), pyNastran.bdf.cards.nodes.SPOINTs.crossReference(), pyNastran.bdf.cards.elements.bush.CBUSH1D.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS1.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP3.crossReference(), pyNastran.bdf.cards.baseCard.Property.crossReference(), pyNastran.bdf.cards.properties.properties.PLSOLID.crossReference(), pyNastran.bdf.cards.thermal.thermal.CHBDYG.crossReference(), pyNastran.bdf.cards.nodes.GRDSET.crossReference(), pyNastran.bdf.cards.baseCard.Material.crossReference(), pyNastran.bdf.cards.constraints.constraintObject.crossReference(), pyNastran.bdf.cards.elements.bush.CBUSH2D.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP4.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS3.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS2.crossReference(), pyNastran.bdf.cards.elements.damper.CDAMP5.crossReference(), pyNastran.bdf.cards.loads.loads.SLOAD.crossReference(), pyNastran.bdf.cards.thermal.loads.TEMP.crossReference(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.crossReference(), pyNastran.bdf.cards.elements.mass.CMASS4.crossReference(), pyNastran.bdf.cards.methods.EIGR.crossReference(), pyNastran.bdf.cards.properties.properties.PRAC2D.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS3.crossReference(), pyNastran.bdf.cards.thermal.loads.TEMPD.crossReference(), pyNastran.bdf.cards.properties.properties.PRAC3D.crossReference(), pyNastran.bdf.cards.methods.EIGP.crossReference(), pyNastran.bdf.cards.loads.staticLoads.GRAV.crossReference(), pyNastran.bdf.cards.nodes.GRID.crossReference(), pyNastran.bdf.cards.elements.springs.CELAS4.crossReference(), pyNastran.bdf.cards.elements.mass.CONM1.crossReference(), pyNastran.bdf.cards.loads.loads.TLOAD1.crossReference(), pyNastran.bdf.cards.methods.EIGRL.crossReference(), pyNastran.bdf.cards.loads.staticLoads.ACCEL1.crossReference(), pyNastran.bdf.cards.properties.shell.PCOMP.crossReference(), pyNastran.bdf.cards.aero.CSSCHD.crossReference(), pyNastran.bdf.cards.coordinateSystems.Cord2x.crossReference(), pyNastran.bdf.cards.constraints.SPC.crossReference(), pyNastran.bdf.cards.thermal.thermal.CONV.crossReference(), pyNastran.bdf.cards.loads.loads.TLOAD2.crossReference(), pyNastran.bdf.cards.elements.shell.CTRIAX6.crossReference(), pyNastran.bdf.caseControlDeck.CaseControlDeck.crossReference(), pyNastran.bdf.cards.optimization.DVPREL2.crossReference(), pyNastran.bdf.cards.loads.loads.RFORCE.crossReference(), pyNastran.bdf.cards.aero.CAERO1.crossReference(), pyNastran.bdf.cards.thermal.thermal.RADBC.crossReference(), pyNastran.bdf.cards.constraints.SPCAX.crossReference(), pyNastran.bdf.cards.elements.bars.CONROD.crossReference(), pyNastran.bdf.cards.properties.bars.PROD.crossReference(), pyNastran.bdf.cards.constraints.SPC1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.FORCE.crossReference(), pyNastran.bdf.cards.coordinateSystems.Cord1x.crossReference(), pyNastran.bdf.cards.loads.loads.RLOAD1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.FORCE1.crossReference(), pyNastran.bdf.cards.properties.bars.PTUBE.crossReference(), pyNastran.bdf.cards.aero.CAERO2.crossReference(), pyNastran.bdf.cards.constraints.SPCADD.crossReference(), pyNastran.bdf.subcase.Subcase.crossReference(), pyNastran.bdf.cards.loads.loads.RLOAD2.crossReference(), pyNastran.bdf.cards.loads.staticLoads.FORCE2.crossReference(), pyNastran.bdf.cards.constraints.MPCADD.crossReference(), pyNastran.bdf.cards.loads.staticLoads.MOMENT.crossReference(), pyNastran.bdf.cards.loads.loads.RANDPS.crossReference(), pyNastran.bdf.cards.properties.bars.PBAR.crossReference(), pyNastran.bdf.cards.elements.bars.CBAR.crossReference(), pyNastran.bdf.cards.loads.staticLoads.MOMENT1.crossReference(), pyNastran.bdf.cards.properties.shell.PSHELL.crossReference(), pyNastran.bdf.cards.loads.staticLoads.MOMENT2.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD.crossReference(), pyNastran.bdf.cards.properties.bars.PBARL.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD2.crossReference(), pyNastran.bdf.cards.elements.bars.CBEAM3.crossReference(), pyNastran.bdf.cards.aero.SPLINE1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD4.crossReference(), pyNastran.bdf.cards.properties.bars.PBEAM.crossReference(), pyNastran.bdf.cards.aero.SPLINE2.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOADX1.crossReference(), pyNastran.bdf.cards.materials.MATS1.crossReference(), pyNastran.bdf.cards.elements.bars.CBEAM.crossReference(), pyNastran.bdf.cards.aero.SPLINE4.crossReference(), pyNastran.bdf.cards.aero.SPLINE5.crossReference(), pyNastran.bdf.cards.properties.bars.PBEAML.crossReference(), pyNastran.bdf.cards.properties.bars.PBEND.crossReference(), pyNastran.bdf.bdf.BDF.debug, pyNastran.bdf.bdf.BDF.executive_control_lines, pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader.get_line_number(), pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader.get_next_line(), pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader.infilesPack, pyNastran.bdf.bdf.BDF.iSolLine, pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader.open_file(), pyNastran.bdf.bdf.BDF.sol, pyNastran.bdf.bdf.BDF.update_solution(), and pyNastran.bdf.bdf.BDF.updateSolution().

Referenced by pyNastran.bdf.bdf.BDF.readBDF().

def pyNastran.bdf.bdf.BDF.update_solution (   self,
  sol,
  method = None 
)

updates the overall solution type (e.g.

101,200,600)

Parameters:
selfthe object pointer
solthe solution type (101,103, etc)
methodthe solution method (only for SOL=600), default=None

Definition at line 750 of file bdf.py.

References pyNastran.bdf.bdf.BDF.dictOfVars, pyNastran.bdf.bdf.BDF.set_dynamic_syntax(), and pyNastran.bdf.bdf.BDF.setDynamicSyntax().

Referenced by pyNastran.bdf.caseControlDeck.CaseControlDeck.getSubcaseList(), and pyNastran.bdf.bdf.BDF.readBDF_Punch().

def pyNastran.bdf.bdf.BDF.setDynamicSyntax (   self,
  dictOfVars 
)
See also:
set_dynamic_syntax

Definition at line 772 of file bdf.py.

References pyNastran.bdf.bdf.BDF.isDynamicSyntax.

Referenced by pyNastran.bdf.bdf.BDF.update_solution().

def pyNastran.bdf.bdf.BDF.set_dynamic_syntax (   self,
  dictOfVars 
)

uses the OpenMDAO syntax of varName in an embedded BDF to update the values for an optimization study.

Variables should be 7 characters to fit in an 8-character field. varName dictOfVars = {'varName': 10}

Definition at line 785 of file bdf.py.

References pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader._active_filenames, pyNastran.bdf.bdf.BDF._checkForIncludeFile_CaseControlDeck(), pyNastran.bdf.bdf.BDF._is_case_control_deck(), pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader.get_next_line(), pyNastran.bdf.bdf.BDF.linesPack, pyNastran.bdf.bdfInterface.bdf_Reader.BDFReader.open_file(), and pyNastran.bdf.bdf.BDF.uniqueBulkDataCards.

Referenced by pyNastran.bdf.bdf.BDF.update_solution().

def pyNastran.bdf.bdf.BDF.addCard (   self,
  card,
  cardName,
  iCard = 0,
  oldCardObj = None 
)
def pyNastran.bdf.bdf.BDF.add_card (   self,
  card,
  cardName,
  iCard = 0,
  old_card_obj = None 
)

adds a card object to the BDF object.

Parameters:
selfthe object pointer
cardthe list of the card fields -> ['GRID',1,2,]
cardNamethe cardName -> 'GRID'
iCardused when reading Nastran Free-Format (disabled)
old_card_objthe last card object that was returned (type=BDFCard or None; default=None)
Return values:
cardObjectthe card object representation of card
Note:
this is a very useful method for interfacing with the code
the cardObject is not a card-type object...so not a GRID card or CQUAD4 object. It's a BDFCard Object. However, you know the type (assuming a GRID), so just call the mesh.Node(nid) to get the No de object that was just created.
Warning:
cardObject is not returned
Todo:
this method is 600+ lines long...refactor time...

Definition at line 1126 of file bdf.py.

References pyNastran.bdf.bdfInterface.addCard.AddMethods.addDMIJ(), and pyNastran.bdf.bdf.BDF.dmigs.


Member Data Documentation

string pyNastran::bdf::bdf.BDF::modelType = 'nastran' [static]

Definition at line 127 of file bdf.py.

Referenced by pyNastran.gui.gui.EventsHandler::createLoadFileDialog().

Definition at line 128 of file bdf.py.

flag that allows for OpenMDAO-style optimization syntax to be used

Definition at line 141 of file bdf.py.

Referenced by pyNastran.bdf.bdfInterface.bdf_cardMethods.CardMethods.parseDynamicSyntax(), and pyNastran.bdf.bdf.BDF.setDynamicSyntax().

lines that were rejected b/c they were for a card that isnt supported

Definition at line 143 of file bdf.py.

Referenced by pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_thermal().

cards that were created, but not processed

Definition at line 144 of file bdf.py.

Referenced by pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_thermal().

list of case control deck lines

Definition at line 146 of file bdf.py.

the list of possible cards that will be parsed

Definition at line 147 of file bdf.py.

Referenced by pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.echoBDF().

/ is the delete from restart card

Definition at line 148 of file bdf.py.

was playing around with an idea...does nothing for now...

Definition at line 149 of file bdf.py.

Definition at line 331 of file bdf.py.

used in solution 600, method

solution 600 method modifier

Definition at line 426 of file bdf.py.

Referenced by pyNastran.bdf.bdf.BDF.updateSolution(), and pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_header().

stores SPOINT, GRID cards

Definition at line 429 of file bdf.py.

Referenced by pyNastran.bdf.bdfInterface.addCard.AddMethods.addNode(), pyNastran.bdf.cards.elements.shell.CQUAD8.Area(), pyNastran.bdf.cards.elements.springs.SpringElement.Centroid(), pyNastran.bdf.cards.elements.shell.CTRIA6.Centroid(), pyNastran.bdf.cards.elements.shell.CSHEAR.Centroid(), pyNastran.bdf.cards.loads.staticLoads.ACCEL1.Cid(), pyNastran.bdf.cards.constraints.SPC1.crossReference(), pyNastran.bdf.cards.loads.staticLoads.MOMENT2.crossReference(), pyNastran.bdf.cards.elements.solid.CPENTA6.getFaceNodesAndArea(), pyNastran.bdf.bdfInterface.getCard.GetMethods.getNodeIDToElementIDsMap(), pyNastran.bdf.cards.elements.shell.QuadShell.getReprDefaults(), pyNastran.bdf.cards.elements.solid.SolidElement.isSameCard(), pyNastran.bdf.cards.elements.springs.CELAS1.isSameCard(), pyNastran.bdf.cards.elements.springs.CELAS2.isSameCard(), pyNastran.bdf.cards.elements.springs.CELAS1.K(), pyNastran.bdf.cards.elements.springs.CELAS2.K(), pyNastran.bdf.cards.elements.springs.CELAS3.K(), pyNastran.bdf.cards.elements.springs.CELAS4.K(), pyNastran.bdf.cards.elements.shell.QuadShell.MassMatrix(), pyNastran.bdf.cards.baseCard.Material.Mid(), pyNastran.bdf.bdfInterface.getCard.GetMethods.nNodes(), pyNastran.bdf.bdfInterface.getCard.GetMethods.Node(), pyNastran.bdf.cards.loads.loads.Load.nodeIDs(), pyNastran.bdf.cards.baseCard.Element.nodeIDs(), pyNastran.bdf.cards.baseCard.Element.Pid(), pyNastran.bdf.cards.constraints.SPCAX.rawFields(), pyNastran.bdf.cards.loads.staticLoads.MOMENT2.rawFields(), pyNastran.bdf.cards.elements.shell.CTRIA6.reprFields(), pyNastran.bdf.cards.elements.bars.CROD.reprFields(), pyNastran.bdf.cards.elements.shell.CQUAD8.reprFields(), pyNastran.bdf.cards.elements.springs.SpringElement.Stiffness(), pyNastran.bdf.cards.elements.bars.CROD.Stiffness1D(), pyNastran.bdf.cards.elements.shell.CQUADR.Thickness(), pyNastran.bdf.bdf_Methods.BDFMethods.unresolveGrids(), pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_nodes_associated(), and pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_params().

stores SUPORT1s self.constraints = {} # suport1, anything else???

Definition at line 442 of file bdf.py.

Referenced by pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_materials().

stores SPCADD,SPC,SPC1,SPCD,SPCAX

Definition at line 443 of file bdf.py.

Referenced by pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_thermal_materials().

direct matrix input - DMIG

Definition at line 449 of file bdf.py.

elif cardName == 'CORD3G': coord = CORD3G(cardObj) self.addCoord(coord)

Definition at line 1134 of file bdf.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables