cards Package

aero Module

baseCard Module

bdf_sets Module

bdf_tables Module

constraints Module

contact Module

coordinateSystems Module

dmig Module

dynamic Module

materials Module

material_deps Module

methods Module

nodes Module

optimization Module

params Module

utils Module

pyNastran.bdf.cards.utils.build_table_lines(fields, nstart=1, nend=0)[source]

Builds a table of the form:

DESVAR DVID1 DVID2 DVID3 DVID4 DVID5 DVID6 DVID7
  DVID8 -etc.-          
  UM VAL1 VAL2 -etc.-      

and then pads the rest of the fields with None’s

Parameters:
  • fields (list of values) – the fields to enter, including DESVAR
  • nStart – the number of blank fields at the start of the line (default=1)
  • nStart – int
  • nEnd – the number of blank fields at the end of the line (default=0)
  • nEnd – int

Note

will be used for DVPREL2, RBE1, RBE3

Warning

only works for small field format???

pyNastran.bdf.cards.utils.wipe_empty_fields(card)[source]

Removes an trailing Nones from the card. Also converts empty strings to None.

Parameters:card – the fields on the card as a list
Returns short_card:
 the card with no trailing blank fields

Todo

run this in reverse to make it faster