pyNastran
0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
|
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 |
Definition at line 31 of file BDF_Card.py.
def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.__init__ | ( | self, | |
card = None , |
|||
oldCardObj = None , |
|||
debug = False |
|||
) |
Reimplemented in pyNastran.bdf.cards.coordinateSystems.CORD1S, pyNastran.bdf.cards.coordinateSystems.CORD1C, pyNastran.bdf.cards.coordinateSystems.CORD1R, pyNastran.bdf.cards.properties.shell.PSHEAR, pyNastran.bdf.cards.coordinateSystems.Cord1x, pyNastran.bdf.cards.methods.EIGRL, pyNastran.bdf.cards.loads.loads.DAREA, pyNastran.bdf.cards.properties.springs.PELAST, pyNastran.bdf.cards.properties.mass.PMASS, pyNastran.bdf.cards.properties.damper.PDAMP, pyNastran.bdf.cards.properties.mass.NSM, pyNastran.bdf.cards.properties.springs.PELAS, and pyNastran.bdf.cards.properties.damper.PVISC.
Definition at line 32 of file BDF_Card.py.
def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.Is | ( | self, | |
cardName | |||
) |
Returns True if the card is of type cardName.
self | the object pointer |
cardName | the cardName to compare against |
IsACardName | True/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.
prints the card as a list
self | the object pointer |
msg | the string representation of the card |
Reimplemented in pyNastran.bdf.cards.aero.FLFACT, pyNastran.bdf.cards.dmig.DMI, pyNastran.bdf.cards.dmig.NastranMatrix, pyNastran.bdf.cards.sets.SET3, pyNastran.bdf.cards.sets.CSET1, pyNastran.bdf.cards.sets.ABQSet1, pyNastran.bdf.cards.baseCard.BaseCard, pyNastran.bdf.cards.elements.springs.SpringElement, pyNastran.bdf.cards.sets.ABCQSet, and pyNastran.bdf.cards.sets.Set.
Definition at line 86 of file BDF_Card.py.
References pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.fields(), pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.nfields, and pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.nFields().
Referenced by pyNastran.bdf.cards.elements.bars.CROD.displacementStress(), pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.Is(), and pyNastran.bdf.cards.elements.bars.CBAR.Stiffness().
gets how many fields are on the card
self | the object pointer |
nFields | the 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
self | the object pointer |
i | the ith field on the card (following list notation) |
j | the jth field on the card (None means till the end of the card) |
defaults | the default value for the field (as a list) len(defaults)=i-j-1 |
debug | prints out the values at intermediate steps |
the | values 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
self | the object pointer |
i | the ith field on the card (following list notation) |
default | the default value for the field |
the | value 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().
def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.replaceExpression | ( | self, | |
fieldNew, | |||
fieldOld, | |||
replaceChar = '=' , |
|||
replaceChar2 = '' |
|||
) |
used for nastran = format
Definition at line 149 of file BDF_Card.py.
References pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.applyOldFields(), pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.card, and pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.isSameName().
Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.field().
used for nastran = format
Definition at line 161 of file BDF_Card.py.
References pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.card, pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.cardCount, pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.cardTextOld, pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.nfields, and pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.oldCard.
Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.replaceExpression().
def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.applyOldFields | ( | self, | |
cardCount = 0 |
|||
) |
used for nastran = format
Definition at line 168 of file BDF_Card.py.
Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.replaceExpression().
def pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.getOldField | ( | self, | |
i | |||
) |
used for nastran = format
Definition at line 257 of file BDF_Card.py.
Definition at line 32 of file BDF_Card.py.
Referenced by pyNastran.bdf.caseControlDeck.CaseControlDeck::add_parameter_to_local_subcase(), and pyNastran.bdf.caseControlDeck.CaseControlDeck::finish_subcases().
Definition at line 32 of file BDF_Card.py.
Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.isSameName().
Definition at line 168 of file BDF_Card.py.
Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard::isSameName().
Definition at line 168 of file BDF_Card.py.
Referenced by pyNastran.bdf.bdfInterface.BDF_Card.BDFCard.isSameName().