pyyeti.nastran.bulk.wtrbe3

pyyeti.nastran.bulk.wtrbe3(f, eid, GRID_dep, DOF_dep, Ind_List, UM_List=None, alpha=None)[source]

Writes a Nastran RBE3 card to a file.

Parameters:
  • f (string or file_like or 1 or None) – Either a name of a file, or is a file_like object as returned by open() or io.StringIO. Input as integer 1 to write to stdout. Can also be the name of a directory or None; in these cases, a GUI is opened for file selection.

  • eid (integer) – Element ID

  • GRID_dep (integer) – Dependent grid ID

  • DOF_dep (integer) – An integer concatenation of the DOF (ex: 123456)

  • Ind_List (list) –

    [ DOF_Ind1, GRIDS_Ind1, DOF_Ind2, GRIDS_Ind2, … ], where:

    DOF_Ind1   : 1 or 2 element array_like containing the
                 component DOF (ie, 123456) of the nodes in
                 GRIDS_Ind1 and, optionally, the weighting
                 factor for these DOF. If not input, the
                 weighting factor defaults to 1.0.
    GRIDS_Ind1 : array_like of node ids corresponding to
                 DOF_Ind1
    ...
    eg:  [ [123, 1.2], [95, 195, 1000], 123456, 95]
    

    Ind_List must be even length.

  • UM_List (None or list; optional) –

    [ GRID_MSET1, DOF_MSET1, GRID_MSET2, DOF_MSET2, … ] where:

    GRID_MSET1 : first grid in the M-set
    DOF_MSET1  : DOF of first grid in M-set (integer subset
                 of 123456). No weighting factors are
                 allowed here.
    GRID_MSET2 : second grid in the M-set
    DOF_MSET2  : DOF of second grid in M-set
    ...
    

    UM_List must be even length.

  • alpha (None, string, or float; optional) – Thermal expansion coefficient in a string of length <= 8 or a float.

Returns:

None

Notes

This card will be written in 8 fixed-field format using the wtcard8() function.

Examples

>>> from pyyeti import nastran
>>> nastran.wtrbe3(1, 100, 9900, 123456,
...                [123, [9901, 9902, 9903, 9904],
...                 123456, [450001, 200]])
RBE3         100            9900  123456      1.     123    9901    9902
+           9903    9904      1.  123456  450001     200
>>> nastran.wtrbe3(1, 100, 9900, 123456,
...                [123, [9901, 9902, 9903, 9904],
...                 [123456, 1.2], [450001, 200]],
...                UM_List=[9901, 12, 9902, 3, 9903, 12, 9904, 3],
...                alpha='6.5e-8')
RBE3         100            9900  123456      1.     123    9901    9902
+           9903    9904     1.2  123456  450001     200
+       UM          9901      12    9902       3    9903      12
+                   9904       3
+       ALPHA      6.5-8