subcase_cards
Module¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
ADACT
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL', 'NONE'}¶
-
type
= 'ADACT'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
AEROF
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'AEROF'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
APRES
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'APRES'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
CSCALE
(data)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
CSCALE 1.3
-
type
= 'CSCALE'¶
-
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
CaseControlCard
[source]¶ Bases:
object
basic card similar to the BaseCard class for the BDF
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
CheckCard
(key, value, options)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
Creates a card that validates the input
GROUNDCHECK=YES GROUNDCHECK(GRID=12,SET=(G,N,A),THRESH=1.E-5,DATAREC=YES)=YES GROUNDCHECK(SET=ALL)=YES
WEIGHTCHECK=YES WEIGHTCHECK(GRID=12,SET=(G,N,A),MASS)=YES WEIGHTCHECK(SET=ALL)=YES
- Creates a card of the form:
key(options) = value
- Parameters
- keystr
the name of the card
- valueList[str]
the options
- valuestr
the response value
-
classmethod
_parse_multi_equals
(line, line_upper, lines, i)[source]¶ #GROUNDCHECK(PRINT,SET=(G,N,N+AUTOSPC,F,A),DATAREC=NO)=YES #WEIGHTCHECK(PRINT,SET=(G,N,F,A),CGI=NO,WEIGHT)=YES
-
classmethod
_parse_single_equals
(line, line_upper, lines, i)[source]¶ GROUNDCHECK=YES WEIGHTCHECK=YES
-
classmethod
add_from_case_control
(line, line_upper, lines, i)[source]¶ add method used by the CaseControl class
-
allow_equals
= True¶
-
allow_ints
= False¶
-
allowed_keys
= {}¶
-
allowed_strings
= {}¶
-
allowed_values
= {}¶
-
duplicate_names
= {}¶
-
type
= 'CheckCard'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
DSAPRT
(END=SENS)=ALL DSAPRT(FORMATTED, EXPORT) DSAPRT(FORMATTED, START=FIRST, BY=3, END=LAST)=101 DSAPRT(UNFORMATTED, START=FIRST) DSAPRT(UNFORMATTED, EXPORT) DSAPRT(FORMATTED, END=4)=ALL DSAPRT(UNFORMATTED, END=SENS)=ALL DSAPRT(NOPRINT, EXPORT)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CheckCard
- Creates a card of the form:
key(options) = value
- Parameters
- keystr
the name of the card
- valueList[str]
the options
- valuestr
the response value
-
allowed_keys
= {'BY', 'END', 'EXPORT', 'FORMATTED', 'START', 'UNFORMATTED'}¶
-
allowed_strings
= {'ALL'}¶
-
allowed_values
= {'BY': (<class 'int'>, None), 'END': (<class 'str'>, ['SENS', 'LAST']), 'START': (<class 'str'>, ['FIRST'])}¶
-
type
= 'DSAPRT'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
EXTSEOUT
(data)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
-
static
_update_key
(key)[source]¶ STIFFNESS, DAMPING, K4DAMP, and LOADS may be abbreviated to STIF, DAMP, K4DA, and LOAD, respectively.
-
allowed_keys
= {'ASMBULK', 'DAMP', 'DAMPING', 'DMIGDB', 'DMIGOP2', 'DMIGPCH', 'DMIGSFIX', 'EXTBULK', 'EXTID', 'GEOM', 'K4DAMP', 'LOADS', 'MASS', 'MATDB', 'MATOP4', 'MATRIXDB', 'MATRIXOP4', 'STIFF', 'STIFFNESS'}¶
-
type
= 'EXTSEOUT'¶
-
static
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
GPKE
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'GPKE'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
GPRSORT
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'GPRSORT'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
GPSDCON
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'GPSDCON'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
GPSTRESS
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'GPSTRESS'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
GROUNDCHECK
(key, value, options)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CheckCard
GROUNDCHECK=YES GROUNDCHECK(GRID=12,SET=(G,N,A),THRESH=1.E-5,DATAREC=YES)=YES
- Creates a card of the form:
key(options) = value
- Parameters
- keystr
the name of the card
- valueList[str]
the options
- valuestr
the response value
-
allowed_keys
= {'DATAREC', 'GRID', 'NOPRINT', 'PRINT', 'RTHRESH', 'SET', 'THRESH'}¶
-
allowed_strings
= {'YES'}¶
-
allowed_values
= {'CGI': (<class 'str'>, ['YES', 'NO']), 'DATAREC': (<class 'str'>, ['YES', 'NO']), 'GRID': (<class 'int'>, None), 'RTHRESH': (<class 'float'>, None), 'SET': (<class 'str'>, ['G', 'N', 'AUTOSPC', 'F', 'A', 'ALL']), 'THRESH': (<class 'float'>, None)}¶
-
type
= 'GROUNDCHECK'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
HARMONICS
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL', 'NONE'}¶
-
type
= 'HARMONICS'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
IntCard
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
- interface for cards of the form:
NAME = 10
Creates an IntCard
- Parameters
- valueint
the value for the card
-
classmethod
add_from_case_control
(line, line_upper, lines, i)[source]¶ Creates a card from the Case Control Deck
- Parameters
- linestr
the line of the card
- line_upperstr
unused
- linesList[str]
unused
- iint
unused
-
type
= 'IntCard'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
IntStrCard
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntCard
- interface for cards of the form:
NAME = 10 NAME = ALL
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {}¶
-
type
= 'IntStrCard'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
MEFFMASS
(key, value, options)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CheckCard
MEFFMASS(GRID=12,SUMMARY,PARTFAC) MEFFMASS(PLOT,ALL,THRESH=0.001)=YES
- Creates a card of the form:
key(options) = value
- Parameters
- keystr
the name of the card
- valueList[str]
the options
- valuestr
the response value
-
allowed_keys
= {'ALL', 'FRACSUM', 'GRID', 'MAXIT', 'MEFFM', 'MEFFW', 'MINT1', 'MINT2', 'MINT3', 'PARTFAC', 'PLOT', 'PRINT', 'PUNCH', 'SUMMARY', 'THRESH'}¶
-
allowed_strings
= {'NO', 'YES'}¶
-
allowed_values
= {'GRID': (<class 'int'>, None), 'MAXIT': (<class 'int'>, None), 'MINT1': (<class 'int'>, None), 'MINT2': (<class 'int'>, None), 'MINT3': (<class 'int'>, None), 'THRESH': (<class 'float'>, None)}¶
-
alternate_names
= {'MEFF'}¶
-
type
= 'MEFFMASS'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
MODCON
(key, value, options)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CheckCard
MODCON=123 MODCON(SORT1,PHASE,PRINT,PUNCH,BOTH,TOPS=5)=ALL
- Creates a card of the form:
key(options) = value
- Parameters
- keystr
the name of the card
- valueList[str]
the options
- valuestr
the response value
-
allow_ints
= True¶
-
allowed_keys
= {'ABS', 'BOTH', 'IMAG', 'NOPRINT', 'NORM', 'PANELMC', 'PHASE', 'PRINT', 'PUNCH', 'REAL', 'SOLUTION', 'SORT1', 'SORT2', 'TOPF', 'TOPS'}¶
-
allowed_strings
= {'ALL', 'NONE'}¶
-
allowed_values
= {'SOLUTION': (<class 'int'>, None), 'TOPF': (<class 'int'>, None), 'TOPS': (<class 'int'>, None)}¶
-
duplicate_names
= {'PANE': 'PANELMC', 'SOLU': 'SOLUTION', 'TOP': 'TOPS'}¶
-
type
= 'MODCON'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
OFREQUENCY
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
alternate_names
= {'OFREQ'}¶
-
type
= 'OFREQUENCY'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
OMODES
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'OMODES'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
SEALL
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'SEALL'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
SEDR
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'SEDR'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
SET
(set_id, values)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
-
classmethod
add_from_case_control
(line_upper, lines, i)[source]¶ add method used by the CaseControl class
-
property
key
¶ temporary method to emulate the old key attribute
-
type
= 'SET'¶
-
classmethod
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
SETMC
(set_id, values)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.SET
SETMC 121 = ACCE/99(T3),1200(T1),1399(R2) SETMC 222 = STRESS/134(22) SETMC 343 = ACCE/99(T3),1200(T1),1399(R2),STRESS/134(22) SETMC 122 = DISP/45(T1) 45(T2) 45(T3),
38(T1) 38(T2) 38(T3),
- VELO/45(T1) 45(T2) 45(T3),
38(T1) 38(T2) 38(T3),
- ACCE/45(T1) 45(T2) 45(T3),
38(T1) 38(T2) 38(T3)
-
type
= 'SETMC'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
SUPER
(value)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.IntStrCard
Creates an IntStrCard
- Parameters
- valueint/str
the value for the card
-
allowed_strings
= {'ALL'}¶
-
type
= 'SUPER'¶
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
SURFACE
(data)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
SURFACE 10 SET 9 NORMAL X3 SURFACE 41 SET 42 FIBRE ALL NORMAL Z VOLUME id SET sid, [PRINCIPAL, DIRECT STRESS] [SYSTEM {ELEMENT, CORD cid, BASIC}]
-
type
= 'VOLUME'¶
-
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
StringCard
(value, validate=True)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
-
classmethod
add_from_case_control
(line, line_upper, lines, i)[source]¶ add method used by the CaseControl class
-
allowed_values
= []¶
-
type
= 'StringCard'¶
-
classmethod
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
VOLUME
(data)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CaseControlCard
VOLUME 21 SET 2 VOLUME id SET sid, [PRINCIPAL, DIRECT STRESS] [SYSTEM {ELEMENT, CORD cid, BASIC}]
-
type
= 'VOLUME'¶
-
-
class
pyNastran.bdf.bdf_interface.subcase_cards.
WEIGHTCHECK
(key, value, options)[source]¶ Bases:
pyNastran.bdf.bdf_interface.subcase_cards.CheckCard
WEIGHTCHECK=YES WEIGHTCHECK(GRID=12,SET=(G,N,A),MASS)=YES
- Creates a card of the form:
key(options) = value
- Parameters
- keystr
the name of the card
- valueList[str]
the options
- valuestr
the response value
-
allowed_keys
= {'CGI', 'GRID', 'MASS', 'NOPRINT', 'PRINT', 'SET', 'WEIGHT'}¶
-
allowed_strings
= {'YES'}¶
-
allowed_values
= {'CGI': (<class 'str'>, ['YES', 'NO']), 'GRID': (<class 'int'>, None), 'SET': (<class 'str'>, ['G', 'N', 'AUTOSPC', 'F', 'A', 'V', 'ALL'])}¶
-
type
= 'WEIGHTCHECK'¶
-
pyNastran.bdf.bdf_interface.subcase_cards.
split_by_mixed_commas_parentheses
(str_options: str) → List[str][source]¶ Excessively complicated function to split something excessively complicated. Thankfully, it only has one set of parentheses and no nested blocks.
- Parameters
- str_optionsstr
a nasty section of a case control line ‘PRINT,SET=(G,N,N+AUTOSPC,F,A),DATAREC=NO’ ‘PRINT,SET=(G,N,F,A),CGI=NO,WEIGHT’
- Returns
- optionsList[str]
something that’s actually parseable [‘PRINT’, ‘SET=(G,N,N+AUTOSPC,F,A)’, ‘DATAREC=NO’] [‘PRINT’, ‘SET=(G,N,F,A)’, ‘CGI=NO’, ‘WEIGHT’]