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#

CoordSys object.

Coordinate system with origin at the center of mass of the Coords and axes parallel to the global axes.

See Also#

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.]]