coords.Coords.central_coordsys#
- Coords.central_coordsys(mass=None)#
Returns the central coordinate system of the
Coords.Parameters#
- mass: 1-dim float array (
points(),), optional The mass to be attributed to each of the points, in the order of
n_points(). If not provided, a mass 1.0 will be attributed to each point.
Returns#
CoordSysobject.Coordinate system with origin at the center of mass of the Coords and axes parallel to the global axes.
See Also#
principal_coordsys(): CoordSys aligned with principal axes of inertia tensor
Examples#
>>> from hellotriangle.elements import Tet4 >>> print(Tet4.vertices.central_coordsys()) CoordSys: trl=[0.25 0.25 0.25]; rot=[[1. 0. 0.] [0. 1. 0.] [0. 0. 1.]]
- mass: 1-dim float array (