pyyeti.nastran.bulk.wtextseout

pyyeti.nastran.bulk.wtextseout(name, *, se, bset, uset, spoint1, sedn=0, namelist=['kaa', 'maa', 'baa', 'k4xx', 'pa', 'gpxx', 'gdxx', 'rvax', 'va', 'mug1', 'mug1o', 'mes1', 'mes1o', 'mee1', 'mee1o', 'mgpf', 'mgpfo', 'mef1', 'mef1o', 'mqg1', 'mqg1o', 'mqmg1', 'mqmg1o'], forms='symmetric', **kwargs)[source]

Write .op4, .asm, .pch files for an external SE.

Note that all inputs except name must be named and can be input in any order.

Parameters:
  • name (string) – Basename for files; eg: ‘spacecraft’. Files with the extensions ‘.op4’, ‘.asm’, and ‘.pch’ will be created.

  • se (integer) – Superelement id; also used as the Fortran unit number on the SEBULK entry.

  • bset (1d array_like) – Index partition vector for the bset

  • uset (pandas DataFrame) – A DataFrame as output by pyyeti.nastran.op2.OP2.rdn2cop2().

    Warning

    Unlike pyyeti.cb.mk_net_drms(), this USET table defines the b-set nodes relative to the basic coordinate system of superelement 0. This is so the external superelement is positioned properly. Note however that the “displacement” coordinate system(s) (specified after the coordinates on the “GRID” card) must match whatever the displacement coordinate system(s) are for the Craig-Bampton component.

  • spoint1 (integer) – Starting value for the SPOINTs (for modal DOF)

  • sedn (integer; optional) – Downstream superelement id

  • namelist (list; optional) – List, in order, of names to write to the op4 file. Values default to 1x1 zero matrices with these exceptions: mass and stiffness (“maa”, “kaa”, or “mxx”, “kxx”) are expected to be input and “va” is a vector of ones. The defaults can be overridden in kwargs.

  • forms (string or list or None; optional) – For defining the forms input to pyyeti.nastran.op4.write(). If “symmetric”, then all matrices with a name that ends in “aa” or “xx” are marked as symmetric (form=6). Any other setting is passed unchanged to pyyeti.nastran.op4.write(). If input as list, must correspond to namelist.

  • **kwargs (optional) – Allows user to input other matrices to be written to the op4 file. Name must in namelist to be written.

    Can also contain “tug1”; a two-column ndarray with [Grid_ID, DOF] corresponding to “mug1”. Number of rows must match “mug1”. If both “tug1” and “mug1” are present, the “DTI,TUG1” card is written to the ‘.pch’ file. Other DTI entries (for “mef1” for example) are not currently supported. Do not add “tug1” to namelist.

Returns:

None