params Module

Inheritance diagram of pyNastran.bdf.cards.params
defines the following card:
  • PARAM

class pyNastran.bdf.cards.params.MDLPRM(mdlprm_dict: Dict[str, Union[int, float]], comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

Creates a MDLPRM card

Parameters
mdlprm_dictDict[name, value]
namestr

the name of the MDLPRM

value: int/float

varies depending on the type of MDLPRM

commentstr; default=’’

a comment for the card

classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

Adds a MDLPRM card from BDF.add_card(...)

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

export_to_hdf5(h5_file, model, desvar_ids)[source]

exports the elements in a vectorized way

load_hdf5_file(hdf5_file, encoding) → None[source]
raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'MDLPRM'
write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card

class pyNastran.bdf.cards.params.PARAM(key, values, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

Creates a PARAM card

Parameters
keystr

the name of the PARAM

valuesint/float/str/List

varies depending on the type of PARAM

commentstr; default=’’

a comment for the card

classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

Adds a PARAM card from BDF.add_card(...)

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'PARAM'
update_values(value1=None, value2=None)[source]

Updates value1 and value2. Performs type checking based on the PARAM type after setting any default value(s).

Parameters
value1varies; default=None

the main value

value2varies; default=None

optional value

If you want to access the data directly, use:
>>> param = bdf.params[‘POST’]
>>> param.values[0] = -1 # value1
>>> param.values[1] = 3 # value2
>>>
.. note:: Most PARAM cards only have one value. Some have two.
write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card

class pyNastran.bdf.cards.params.PARAM_MYSTRAN(key, values, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

Parameter Name DataType Function of Parameter

ARP_TOL; real; Default=1x10^-6

Tolerance to use in Lanczos eigenvalue extraction method for convergence

ART_KED

(for diff stiffness – not fully implemented) char; field 3: ART_KED, default=N. If Y add artificial stiff to diag of KED stiff matrix char; field 4: ART_TRAN_MASS: value for translation degrees of freedom, default 1x10^-6 char; field 5: ART_ROT_MASS: value for translation degrees of freedom, default 1x10^-6

ART_MASS

char; field 3: ART_MASS, default=N. If Y add artificial mass to diag of MGG mass matrix real; Field 4: ART_TRAN_MASS: value for translation degrees of freedom, default 1x10^-6 real; Field 5: ART_ROT_MASS: value for translation degrees of freedom, default 1x10^-6

AUTOSPC

[‘PARAM’, ‘AUTOSPC’, ‘Y’, ‘1.0E-9’, None, ‘Y’, ‘Y’] Char Field 3: AUTOSPC value, default=Y (AUTOSPC), N turns AUTOSPC off. Real Field 4: AUTOSPC_RAT, default=1x10^-6 (see Section 3.4.1.1) Int Field 5: AUTOSPC_NSET, default=1 (see Section 3.4.1.1) Char Field 6: AUTOSPC_INFO, default=N. If Y then print messages about the AUTOSPC’s Char Field 7: AUTOSPC_SPCF, default=N. If Y print AUTOSPC forces of constraint

BAILOUT Int; Default=1

If > 0 quit if a singularity in decomposing a matrix is detected. If <= 0 do not quit

CBMIN3 Real; Default=2.0

The constant CB used in tuning the shear correction factor in Ref 3 for the TRIA3 plate element.

CBMIN4 real; default=3.6

The constant CB used in tuning the shear correction factor in Ref 4 for the QUAD4 plate element (QUAD4TYP=’MIN4’). See Ref 4

CBMIN4T real; default=3.6

The constant CB used in tuning the shear correction factor in Ref 4 for the QUAD4 plate element (QUAD4TYP=’MIN4T’).

CHKGRDS char; default=Y.

If N do not check that all grids for all elements exist

CUSERIN
char; If this parameter is present, Bulk Data entries for Craig-Bampton (CB)

reduced models will be written to the F06 file as a CUSERIN element (including grids, coordinate systems, etc)

int; field 3: element ID, default=9999999 int; field 4: property ID, default=9999999 int; field 5: starting index for the SPOINT’s to represent modes of the CB model, default=1001 int; field 6: IN4 file number that goes on the PUSERIN entry for this CUSERIN element, default=9999999 char; field 7: Set-ID for the CUSERIN element (typically the ‘R’, or boundary, set), default is blank field int; field 8: Format for how to write the component numbers

(1 thru 6) for each grid of the CUSERIN element. If 0, write them in compact form (e.g. 1356). If > 0 write them in expanded form (1 3 56), default=0

DARPACK int; default=2

how many extra modes to find above EIG_N2 on the EIGRL entry. These few highest mode are not used due to difficulty with getting good GP force balance.

EIGESTL int; default=5000

For eigenvalue problems by the Lanczos method, if the number of L-set DOF’s exceed EIGESTL the method for specifying the search range will be changed from F1 to F2 to N (see EIGRL Bulk Data entry) to avoid excessive run times (since the code to estimate the number of eigens in the F1 to F2 range can be excessive).

EIGNORM2 char; default=N

If ‘Y’ then eigenvectors will be renormalized a last time by multiplying by a set of scale factors (1 per eigenvector) supplied in a file with the same name as the input file and extension ‘EIN’ (if it exists)

ELFORCEN; char; default=GLOBAL
If and nodal forces have been requested in Case Control and:

ELFORCEN=GLOBAL, they will be output in the global coordinate system. ELFORCEN=BASIC, they will be output in the basic coordinate systeml. ELFORCEN=LOCAL, they will be output in the local element coordinate system.

EPSERR char; default=Y.

If N, do not calculate the NASTRAN like ‘epsilon error estimate’

EPSIL Real

There are 3 EPSIL(i) values each of which requires a separate PAPAM EPSIL Bulk Data entry with the index (i) in field 3 and EPSIL(i) value in field 4. These are small numbers used in MYSTRAN for the purposes indicated below:

  1. EPSIL(1) (default=1x10^-15) is used in MYSTRAN such that, in

    any real number comparisons, any real number whose absolute magnitude is less than EPSIL(1) is considered to be zero. If no PARAM EPSIL 1 entry is in the data file then this value is reset (from the default) in LINK1 to a value based on machine precision calculated using LAPACK BLAS function DLAMCH. If the user has a PARAM EPSIL 1 entry, this value will be used for EPSIL(1) instead of the LAPACK machine precision.

  2. Currently not used

  3. EPSIL(3) is used in the Inv erse Power method of eigenvalue

    extraction to test convergence of an eigenvalue. The default value (% change) is 1x10^-5 %

  4. EPSIL(4) is used to calculate the maximum warp for quadrilateral

    plate elements, above which a warning message will be written. This maximum warp is EPSIL(2) times the average length of the quadrilateral’s two diagonals. The default for EPSIL(2) is 1.x10^-1.

  5. EPSIL(5) (default 1.x10^-6) is used in BAR and ROD margin of

    safety calculations. If a stress magnitude is less than EPSIL(5) a 1.x10^10 margin of safety will printed out for that stress (in other words, an infinite margin of safety)

  6. EPSIL(6) (default 1.x10^-15) is used in BAR margin of safety calculations

EQCHECK
int; field 3: default=0 (basic origin) or reference grid to use

in calculating the rigid body displacement matrix for the equilibrium check

int; field 4: If nonzero, do equilibrium check on the G-set int; field 5: If nonzero, do equilibrium check on the N-set int; field 6: If nonzero, do equilibrium check on the F-set int; field 7: If nonzero, do equilibrium check on the A-set int; field 8: If nonzero, do equilibrium check on the L-set real; field 9: EQCHK_TINY, default=1x10^-5. I Do not print grid forces smaller than this char; field 10: default=N. If Y, normalize the grid forces on diagonal stiffness

The value in fields 4-8 can be: 1: print loads due to rigid body displacements 2: print strain energy due to rigid body displacements 3: print both

GRDPNT Int default=-1.

If not -1 then the value is interpreted as a grid number If GRDPNT != 0, calculate total mass properties of the model relative to the basic coordinate system origin or relative to the specified grid.

GRIDSEQ
char; field 3: GRIDSEQ value (default=BANDIT). Other values are

GRID and INPUT. BANDIT is automatic grid sequencing. GRID is sequencing in grid ID numerical order. INPUT is sequencing in the grid input order.

char; field 4: SEQQUIT, default=N. If Y, then quit in the sequence

processor if BANDIT did not run correctly.

char; field 5: SEQPRT, default=N. If Y, print SEQGP card images

generated by BANDIT to the F06 output file

HEXAXIS; Char

‘SIDE12’, use side 1-2 as the local elem x axis. ‘SPLITD’ (default), use angle that splits the 2 diags to define the elem x axis

IORQ1M; Int; default=2

Gaussian integration order for membrane direct stress terms for the QUAD4, QUAD4K quadrilateral elements

IORQ1S; Int; default=1

Gaussian integration order for membrane shear stress terms for all quad elements

IORQ1B; Int; default=2

Gaussian integration order for bending stress terms for the QUAD4K element

IORQ2B; Int; default=2

Gaussian integration order for bending stress terms for the QUAD4 element

IORQ2T; Int; default=3

Gaussian integration order for transverse shear stress terms for the QUAD4 element

ITMAX; Int; default=5

Max number of iterations in refining the solution when parameter UREFINE=Y

KLLRAT; Char; default=Y

to tell whether to calc ratio of max/min KLL diagonal terms

KOORAT; Char; default=Y

to tell whether to calc ratio of max/min KOO diagonal terms

LANCMETH; Char

Procedure to use for Lanczos eigenvalue extraction (ARPACK or TRLan)

MATSPARS; Char

If=Y (default), use sparse matrix routines for add/multiply in all matrix operations. If N, use full matrix add/multiply (not recommended)

MAXRATIO; Real; Default=1X10^7

Max value of matrix diagonal to factor diagonal before messages are written and BAILOUT tested for aborting run

MEFMCORD; Int; default=0

The coordinate system in which to calculate modal mass and participation factors

MEFMLOC; Char

Reference location for calculating modal effective mass in Craig-Bampton (SOL 31) analyses. This only affects the rotational modal effective masses. Field 3 can be GRDPNT, GRID or CG:

If field 3=GRDPNT (default): ref point is the same as the one for PARAM GRDPNT If field 3=CG: use the model center of gravity as the reference point If field 3=GRID: use the grid point number in field 4 as the reference point

Field 4: MEFMGRID (grid to use when field 3 is GRID)

MEMAFAC; Int; default=0.9

Factor to multiply the size request of memory to be allocated when looping to find an allowable amount of memory to allocate. Used when the initial request for memory (in subrs ESP or EMP) cannot be met and we know that the request is conservative.

MIN4TRED; Char; default=STC

Defines the method for how the 5th node of the MIN4T element is reduced out (to get a 4 node quad element). STC (default) is static condensation. B%$ (not implemented as of Version 3.0) uses a method developed by the element author (see Users Reference manual)

MKLFACij; Char; default=INDEF

Matrix type for use in decomposing matrices in various subroutines in MYSTRAN when PARAM SOLLIB is IntMKL’ MKLFAC21 is for use in subr REDUCE_KAA_TO_KFF MKLFAC31 is for use in subr LINK3 MKLFAC41 is for use in subr EIG_INV_PWR MKLFAC42 is for use in subr EIG_LANCZOS_ARPACK MKLFAC61 is for use in subr CALC_KRRcb MKLFAC62 is for use in subr SOLVE_DLR MKLFAC63 is for use in subr SOLVE_PHIZL1

MKLMATST; Char; default=NONSYM

Matrix structure to use when PARAM SOLLIB=IntMKL. Values can be NONSYM or SYM

MKLSTATS; char; default=N

If Y write stats on matrix decomposition when PARAM SOLLIB=IntMKL

MPFOUT; char
  1. ‘6’ (default) indicates to output modal participation

    factors (MPF) relative to the 6 DOF’s at grid MEFMGRID (see PARAM MEFMLOC)

  2. ‘R’ indicates to output MPF’s for all of the R-set DOF’s individually

MXALLOCA; int; default=10

Max number of attempts to allow when trying to allocate memory in subroutine ALLOCATE_STF_ARRAYS

MXITERI; int; default=50

Max number of iterations to use in the Inverse Power eigenvalue extraction method

MXITERL; int; default=50

Max number of iterations to use in the Lanczos eigenvalue extraction method

OTMSKIP; int

Number of lines to skip between segments of OTM text file descriptors

PBARLDEC; int; default=5

Number of decimal digits when writing PBAR equivalents for PBARL entry real data

PBARLSHR; char; default=Y

Include K1, K2 for PBAR equiv to PBARL BAR properties

PCHSPC1
char; Field 3: PCHSPC1 value (default=N, do not punch SPC1 card

images for constraints generated by the AUTOSPC feature, use Y to punch these)

int; Field 4: SPC1SID value (default=9999999, the set ID to put

on the SPC1 card images)

char; Field 5: SPC1QUIT value (default=N, do not stop after SPC’s

are punched, or Y to stop processing)

PCMPTSTM

Real; Factor to multiply composite ply thickness for effective shear thickness

PCOMPEQ; int; default=0

Indicator to write equiv PSHELL, MAT2 to F06 for PCOMP’s. If > 0, write the equivalent PSHELL amd MAT2 Bulk Data entries for the PCOMP. If > 1 also write the data in a format with a greater number of digits of accuracy.

POST; int

If=-1 then write FEMAP neutral file for post processing of MYSTRAN outputs

PRTBASIC; int

If=1 print grid coordinates in the basic coordinate system

PRTCGLTM; int

If=1 print CB matrix for C.G. LTM loads

PRTCONN; int

If=1, print table of elements connected to each grid

PRTCORD; int

If PRTCORD=1 print coordinate system transformation data

PRTDISP; int

PRTDISP(I), I=1-4 go in fields 3-6 of the PARAM PRTDISP entry that prints displacement matrices for G, N, F, and/or A-sets:

V1=PRTDISP(1)=1 print UG V2=PRTDISP(2)=1 or 3 print UN, 2 or 3 print UM V3=PRTDISP(3)=1 or 3 print UF, 2 or 3 print US V4=PRTDISP(4)=1 or 3 print UA, 2 or 3 print UO V5=PRTDISP(5)=1 or 3 print UL, 2 or 3 print UR

PRTDLR; int

If=1, the DLR matrix will be printed

PRTDOF; int

If PRTDOF=1 or 3 print TDOF table, in grid point ID numerical order, which gives a list of the degree of freedom numbers for each displacement set (size is number of degrees of freedom x number of displacement sets). If PRTDOF=2 or 3 print TDOF table, in degree of freedom numerical order, which gives a list of the degree of freedom numbers for each displacement set (size is number of degrees of freedom x number of displacement sets)

PRTFOR; int

PRTFOR(I), I=1-4 go in fields 3-6 of the PARAM PRTFOR entry that prints sparse force matrices for G, N, F, and/or A-sets:

V1=PRTFOR(1)=1 print sparse PG V2=PRTFOR(2)=1 or 3 print sparse PN, 2 or 3 print PM V3=PRTFOR(3)=1 or 3 print sparse PF, 2 or 3 print PS V4=PRTFOR(4)=1 or 3 print sparse PA, 2 or 3 print PO V5=PRTFOR(5)=1 or 3 print sparse PL, 2 or 3 print PR

PRTGMN; int

If PRTGMN=1, print GMN matrix

PRTGOA; int

If PRTGOA=1, print GOA matrix

PRTHMN; int

If=1 print HMN constraint matrix

PRTIFLTM; int

If=1 print CB matrix for Interface Forces LTM

PRTKXX; int

If=1 print CB matrix KXX

PRTMASSD; int

Same as PRTMASS, except only print diagonal terms

PRTMASS; int

PRTMASS(I), I=1-4 go in fields 3-6 of the PARAM PRTMASS entry that prints sparse mass matrices for G, N, F, and/or A-sets:

V1=PRTMASS(1)=1 print sparse MGG V2=PRTMASS(2)=1 or 3 print sparse MNN, 2 or 3 print MNM, MMM V3=PRTMASS(3)=1 or 3 print sparse MFF, 2 or 3 print MFS, MSS V4=PRTMASS(4)=1 or 3 print sparse MAA, 2 or 3 print MAO, MOO V5=PRTMASS(5)=1 or 3 print sparse MLL, 2 or 3 print MLR, MRR

PRTMXX; int

If=1 print CB matrix MXX

PRTOU4; int

If > 0 write all OU4 (OUTPUT4) matrices to F06 file

PRTPHIXA; int

If=1 print CB matrix PHIXA

PRTPHIZL; int

If=1 print CB matrix PHIZL

PRTPSET; int

If > 0 print the OUTPUT4 matrix partitioning vector sets

PRTQSYS; int

If=1 print matrix QSYS

PRTRMG; int

If PRTRMG=1 or 3, print constraint matrix RMG If PRTRMG=2 or 3, print partitions RMN and RMM of constraint matrix RMG

PRTSCP; int;If PRTSCP=1 print data generated in the subcase processor PRTSTIFD; int

Same as PRTSTIFF, except only print diagonal terms

PRTSTIFF; int; Defaults=0 for PRTSTIFF(I), I=1-4 which go in

fields 3-6 of the PARAM PRTSTIFF entry that prints sparse stiffness matrices for G, N, F, and/or A-sets:

V1=PRTSTIFF(1)=1 print sparse KGG V2=PRTSTIFF(2)=1 or 3 print sparse KNN, 2 or 3 print KNM, KMM V3=PRTSTIFF(3)=1 or 3 print sparse KFF, 2 or 3 print KFS, KSS V4=PRTSTIFF(4)=1 or 3 print sparse KAA, 2 or 3 print KAO, KOO V5=PRTSTIFF(5)=1 or 3 print sparse KLL, 2 or 3 print KLR, KRR

PRTTSET; int

If PRTSET=1 print TSET table which gives the character name of the displacement sets that each degree of freedom belongs to (size is number of grids x 6)

PRTUO0; int

If=1 print UO0

PRTUSET; int

If > 0 print the user defined set (U1 or U2) definitions

PRTYS; int

If=1 print matrix YS

Q4SURFIT; int; default=6

Polynomial order for the surface fit of QUAD4 stress/strain when stresses are requested for other than corner locations

QUAD4TYP; char

‘MIN4T’ ! Which element to use in MYSTRAN as the QUAD4 element ‘MIN4T (default)’: Use Tessler’s MIN4T element made up of 4 MIN3 triangles ‘MIN4 ‘: Use Tessler’s MIN4 element

QUADAXIS; char; default=’SIDE12’

This determines how the quad element local x axis is defined. ‘SIDE12’ means that the axis between grids 1 and 2 of the quad define the local x axis. ‘SPLITD’ means that the axis is defined as the direction that splits the angle between the quad diagonals

RCONDK; char

If RCONDK=Y, then LAPACK calculates the condition number of the A-set stiffness matrix. This is required if LAPACK error bounds on the A-set displacement solution are desired. This can require significant solution time.

RELINK3; char

‘Y’ or ‘N’ to specify whether to rerun LINK3 and also LINK5 in a restart

SETLKTK
int; Field 3: SETLKTK value. default=0. Method to estimate number of

nonzeros in G-set stiffness matrix so array can be allocated.

  1. If SETLKTK=0, estimate LTERM_KGG based on full element stiffness

    matrices unconnected (most conservative but not time consuming).

  2. If SETLKTK=1, estimate LTERM_KGG based on KGG bandwidth.

  3. If SETLKTK=2, estimate LTERM_KGG based on KGG density of nonzero terms

  4. If SETLKTK=3, estimate LTERM_KGG based on actual element stiffness matrices unconnected.

  5. f SETLKTK=4, estimate LTERM_KGG on value input by user in

    field 5 of the PARAM SETLKT entry (PARAM USR_LTERM_KGG).

char; field 4: ESP0_PAUSE value (default=N, do not pause after subr

ESP0 to let user input LTERM_KGG, or pause if=Y

int; field 5: User input value of LTERM_KGG

SETLKTM

Same as SETLKTK but for the G-set mass matrix. Only the values for SETLKTM=1, 3, 4 are available

SHRFXFAC; real; default=1x10^6

Factor used to adjust transverse shear stiffness when user has indicated zero shear flexibility for shell elements. The shear stiffness will be reset from infinite (zero flexibility) to SHRFXFAC times the average of the bending stiffnesses in the 2 planes

SKIPMKGG; char; default=N

‘Y’, ‘N’ indicator to say whether to skip calculation of MGG, KGG in which case MGG, KGG will be read from previously generated, and saved, files (LINK1L for KGG, LINK1R for MGG)

SOLLIB; char; default=IntMKL

Denotes which library to use for matrix decomposition and equation solution. Options are: IntMKL: Intel Math Kernel Library (matrices stored in sparse form) LAPACK (matrices stored in band form) YaleSMP: (matrices stored in sparse form) – not fully implemented in MYSTRAN

SORT_MAX; int; default=5

Max number of times to run algorithm when sorting arrays before fatal message.

SPARSTOR; char; default=SYM

If SYM, symmetric matrices are stored with only the terms on and above the diagonal. If NONSYM all terms are stored. SYM requires less disk storage but NONSYM can save significant time in sparse matrix partitioning and multiply operations.

STR_CID; int; default=-1.

Indicator for the coordinate system to use ID for elem stress, strain and emgineering force output: -1 is local element coordinate system (default) 0 is basic coordinate system j (any other integer) is a defined coordinate system for output

SUPINFO; char; default=Y
Indicator of whether some information messages should be suppressed in the F06 output file.

N indicates to suppress Y indicates to not suppress messages in the file.

SUPWARN; char; default=Y
Indicator of whether warning messages should be suppressed in the F06 output file.

N indicates to suppress, Y indicates to not suppress messages in the file.

THRESHK; real; default=0.1

User defined value for the threshold in deciding whether to equilibrate the A-set stiffness matrix in LAPACK subroutine DLAQSB. Default value 0.1, LAPACK suggests

TINY; Real

Do not print matrix values whose absolute value is less than this parameter value

TRLLOHI; int

For TRLan eigen extraction (default=-1) - which end of spectrum to compute: < 0, the smallest eigenvalues = 0, whichever converges first > 0, the largest eigenvalues

TRLMXLAN; int

For TRLan eigen extraction (default=7) - Max num Lanczos basis vectors to be used (If user enters a Bulk Data PARAM TRLMXLAN then internal parameter USER_TRLMXLAN is set to ‘Y’)

TRLMXMV; int

For TRLan eigen extraction (default=-2000) - Max number of matrix-vector multiplications allowed

TRLREST; int

For TRLan eigen extraction (default=1) - Index of restarting schemes

TRLTOL; real

For TRLan eigen extraction (default=1.4901D-8) - Eigenpair is declared converged if its residual norm is < tol*||OP||

TRLVERB; int

For TRLan eigen extraction (default=0) - Level of output data written by TRLan

TSTM_DEF; real; default=5/6 = 0.833333

Value for TS/TM on PSHELL Bulk data entry when that field on the PSHELL is blank

USETSTR; char

Requests output of the internal sequence order for displacement sets (e.g. G-set, etc). See section 3.6 for a discussion of displacement sets. In addition to the sets in section 3.7, the user displacement sets U1 and U2 (see Bulk Data entry USET and USET1) can also have the internal sort order output to the F06 file. As an example, to obtain a row oriented tabular output of the internal sort order for the R-set, include the Bulk data entry:

PARAM, USETSTR, R

USR_JCT; int

User supplied value for JCT - used in shell sort subroutines. If USR_JCT=0, internal values for JCT will be used in the shell sort.

WINAMEM; real; default=2.0 GB

Max memory Windows allows for any array. If it is exceeded, a message is printed out and execution is aborted. This is used to avoid a failure which aborts MYSTRAN catastrophically (due to a system fault).

WTMASS; real; default=1.0

Multiplier for mass matrix after the model total mass is output in the Grid Point Weight Generator (GPWG). This allows user to input mass terms as weight to get model mass properties in weight units and then to convert back to mass units after the GPWG has run. For example, if the model units are lb-sec2/inch for mass and inches for length and the input data file has lb for ‘mass’ (read weight), then 1/386, or 0.002591 would be the value for WTMASS needed to convert the ‘mass’ matrix from weight units to mass units.

Creates a PARAM card

Parameters
keystr

the name of the PARAM

valuesint/float/str/List

varies depending on the type of PARAM

commentstr; default=’’

a comment for the card

classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

Adds a PARAM card from BDF.add_card(...)

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'PARAM'
write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card

class pyNastran.bdf.cards.params.PARAM_NASA95(key, values, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

Creates a PARAM card

Parameters
keystr

the name of the PARAM

valuesint/float/str/List

varies depending on the type of PARAM

commentstr; default=’’

a comment for the card

classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

Adds a PARAM card from BDF.add_card(...)

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card