pyNastran  0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
pyNastran.bdf.bdfInterface.BDF_Card.BDFCard Class Reference
Inheritance diagram for pyNastran.bdf.bdfInterface.BDF_Card.BDFCard:
pyNastran.bdf.cards.baseCard.BaseCard pyNastran.bdf.cards.aero.AEFACT pyNastran.bdf.cards.aero.AELINK pyNastran.bdf.cards.aero.AELIST pyNastran.bdf.cards.aero.AEPARM pyNastran.bdf.cards.aero.Aero pyNastran.bdf.cards.aero.AESTAT pyNastran.bdf.cards.aero.AESURF pyNastran.bdf.cards.aero.AESURFS pyNastran.bdf.cards.aero.CAERO1 pyNastran.bdf.cards.aero.CAERO2 pyNastran.bdf.cards.aero.CAERO3 pyNastran.bdf.cards.aero.CAERO4 pyNastran.bdf.cards.aero.CAERO5 pyNastran.bdf.cards.aero.CSSCHD pyNastran.bdf.cards.aero.FLFACT pyNastran.bdf.cards.aero.FLUTTER pyNastran.bdf.cards.aero.GUST pyNastran.bdf.cards.aero.MKAERO1 pyNastran.bdf.cards.aero.MKAERO2 pyNastran.bdf.cards.aero.PAERO1 pyNastran.bdf.cards.aero.PAERO2 pyNastran.bdf.cards.aero.Spline pyNastran.bdf.cards.aero.TRIM pyNastran.bdf.cards.baseCard.Element pyNastran.bdf.cards.baseCard.Material pyNastran.bdf.cards.baseCard.Property pyNastran.bdf.cards.constraints.Constraint pyNastran.bdf.cards.coordinateSystems.Coord pyNastran.bdf.cards.dmig.DEQATN pyNastran.bdf.cards.dmig.DMI pyNastran.bdf.cards.dmig.NastranMatrix pyNastran.bdf.cards.dynamic.FREQ pyNastran.bdf.cards.dynamic.NLPARM pyNastran.bdf.cards.dynamic.TSTEP pyNastran.bdf.cards.dynamic.TSTEPNL pyNastran.bdf.cards.loads.loads.DAREA pyNastran.bdf.cards.loads.loads.Load pyNastran.bdf.cards.loads.loads.LSEQ pyNastran.bdf.cards.loads.loads.RandomLoad pyNastran.bdf.cards.loads.loads.TabularLoad pyNastran.bdf.cards.materials.MaterialDependence pyNastran.bdf.cards.methods.Method pyNastran.bdf.cards.nodes.Node pyNastran.bdf.cards.nodes.Ring pyNastran.bdf.cards.optimization.OptConstraint pyNastran.bdf.cards.params.PARAM pyNastran.bdf.cards.sets.Set pyNastran.bdf.cards.tables.RandomTable pyNastran.bdf.cards.tables.Table pyNastran.bdf.cards.thermal.thermal.ThermalCard

List of all members.

Public Member Functions

def __init__
def Is
 Returns True if the card is of type cardName.
def __repr__
 prints the card as a list
def nFields
 gets how many fields are on the card
def fields
 gets multiple fields on the card
def field
 gets the ith field on the card
def replaceExpression
 used for nastran = format
def isSameName
 used for nastran = format
def applyOldFields
 used for nastran = format
def getOldField
 used for nastran = format

Public Attributes

 debug
 card
 nfields
 oldCard
 cardCount
 cardTextOld

Detailed Description

Definition at line 31 of file BDF_Card.py.


Constructor & Destructor Documentation


Member Function Documentation

def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.Is (   self,
  cardName 
)

Returns True if the card is of type cardName.

Parameters:
selfthe object pointer
cardNamethe cardName to compare against
Return values:
IsACardNameTrue/False

Reimplemented in pyNastran.bdf.cards.baseCard.BaseCard.

Definition at line 50 of file BDF_Card.py.

References pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.__repr__(), and pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.card.

gets how many fields are on the card

Parameters:
selfthe object pointer
Return values:
nFieldsthe number of fields on the card

Definition at line 95 of file BDF_Card.py.

References pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.nfields.

Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.__repr__().

def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.fields (   self,
  i = 0,
  j = None,
  defaults = None,
  debug = False 
)

gets multiple fields on the card

Parameters:
selfthe object pointer
ithe ith field on the card (following list notation)
jthe jth field on the card (None means till the end of the card)
defaultsthe default value for the field (as a list) len(defaults)=i-j-1
debugprints out the values at intermediate steps
Return values:
thevalues on the ith-jth fields

Definition at line 108 of file BDF_Card.py.

References pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.card, pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.field(), and pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.nfields.

Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.__repr__().

def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.field (   self,
  i,
  default = None 
)

gets the ith field on the card

Parameters:
selfthe object pointer
ithe ith field on the card (following list notation)
defaultthe default value for the field
Return values:
thevalue on the ith field

Definition at line 140 of file BDF_Card.py.

References pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.replaceExpression(), and pyNastran::bdf::cards::aero.type.

Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.fields().

used for nastran = format

Definition at line 168 of file BDF_Card.py.

Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.replaceExpression().

used for nastran = format

Definition at line 257 of file BDF_Card.py.


Member Data Documentation


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