pyyeti.nastran.n2p.rbmove¶
- pyyeti.nastran.n2p.rbmove(rb, oldref, newref)[source]¶
Returns rigid-body modes relative to new reference point.
- Parameters:
rb (6 column ndarray) – Original rigid-body modes; assumed to be n x 6.
oldref (3 element array) – Original [x, y, z] reference location in basic coordinates.
newref (3 element array) – New [x, y, z] reference location in basic coordinates.
- Returns:
rbnew (6 column ndarray) – New rigid-body modes from:
rb * rbgeom(oldref, newref).
Examples
>>> import numpy as np >>> from pyyeti import nastran >>> grids = np.array([[0., 0., 0.], [30., 10., 20.]]) >>> rb0 = nastran.rbgeom(grids) >>> rb1 = nastran.rbgeom(grids, [2., 4., -5.]) >>> rb1_b = nastran.rbmove(rb0, [0., 0., 0.], [2., 4., -5.]) >>> np.all(rb1_b == rb1) True