differential_geometry.dense_ops#
Differential geometry operations on dense arrays.
These methods provide a differential geometry backend which is designed to interact well with the “dense” representation of tensor fields in PyMetric; specifically, the use of full arrays to represent tensor fields.
Functions
|
Compute the gradient of a tensor field in the specified output basis. |
|
Compute the contravariant gradient \(\nabla^\mu T^{\dots}\) of a tensor field using a diagonal inverse metric tensor. |
|
Compute the contravariant gradient \(\nabla^\mu T^{\dots}\) using the inverse metric tensor. |
|
Compute the element-wise covariant gradient of a tensor field. |
|
Compute the Laplacian (Laplace-Beltrami operator) of a tensor field in a general curvilinear coordinate system, using either a full or diagonal inverse metric. |
|
Compute the element-wise Laplacian of a densely represented tensor field in an orthogonal coordinate system. |
|
Compute the element-wise Laplacian of a densely represented tensor field. |
|
Compute the divergence of a vector field in a general coordinate system. |
|
Compute the divergence of a contravariant vector field in a general coordinate system using the D-terms and raw partial derivatives. |
Compute the divergence of a covariant vector field in a general curvilinear coordinate system using a diagonal inverse metric tensor. |
|
Compute the divergence of a covariant vector field in a general coordinate system using a full inverse metric tensor. |