pg_utils.sympy_supp.vector_calculus_3d.Tensor3D
- class pg_utils.sympy_supp.vector_calculus_3d.Tensor3D(tensor, coord_sys: OrthogonalCoordinates3D)[source]
Bases:
object
Base class for tensors in 3-D
Tensor3D and the child classes provide an interface to store the components together with the coordinate system, thus providing the full information of a tensor object. These classes are also designed to have methods to compute the differential forms of the tensor object, which really just call the corresponding methods in the OrthogonalCoordinates3D classes to compute.
- Parameters:
tensor – tensor elements
coord_sys (OrthogonalCoordinates3D) – coordinate system
ndim (int) – dimension
rank (int) – rank of the tensor
- __init__(tensor, coord_sys: OrthogonalCoordinates3D) None [source]
Constructor
- Parameters:
tensor (array-like) – tensor
coordinates (OrthogonalCoordinates3D) – coordinate system
Methods
__init__
(tensor, coord_sys)Constructor
transform_to
(new_sys, **kwargs)Transform to another coordinates system
- transform_to(new_sys: OrthogonalCoordinates3D, **kwargs) Tensor3D [source]
Transform to another coordinates system