An operator for calculating the metric tensor.
More...
|
using | Matrix_2x2 = std::array< std::array< double, 2 >, 2 > |
| The type of the Jacobian matrix and its inverse.
|
|
|
KOKKOS_FUNCTION | MetricTensor (Mapping mapping) |
| A constructor for the metric tensor operator. More...
|
|
KOKKOS_FUNCTION void | operator() (Matrix_2x2 &matrix, PositionCoordinate const &coord) const |
| Compute the metric tensor assignd to the mapping. More...
|
|
KOKKOS_FUNCTION void | inverse (Matrix_2x2 &matrix, PositionCoordinate const &coord) const |
| Compute the inverse metric tensor associated to the mapping. More...
|
|
KOKKOS_FUNCTION std::array< double, 2 > | to_covariant (std::array< double, 2 > const &contravariant_vector, PositionCoordinate const &coord) const |
| Compute the covariant vector from the contravariant vector. More...
|
|
template<class Mapping, class PositionCoordinate>
class MetricTensor< Mapping, PositionCoordinate >
An operator for calculating the metric tensor.
- Template Parameters
-
Mapping | The mapping providing the Jacobian operator. |
PositionCoordinate | The coordinate type where the metric tensor can be evaluated. |
◆ MetricTensor()
template<class Mapping , class PositionCoordinate >
A constructor for the metric tensor operator.
- Parameters
-
[in] | mapping | The mapping which can be used to calculate the Jacobian. |
◆ operator()()
template<class Mapping , class PositionCoordinate >
Compute the metric tensor assignd to the mapping.
The metric tensor matrix is defined as: \( G = (J_{\mathcal{F}})^T J_{\mathcal{F}} \). with \( J_{\mathcal{F}} \) the Jacobian matrix.
- Parameters
-
[in] | coord | The coordinate where we evaluate the metric tensor. |
[out] | matrix | The metric tensor matrix. |
◆ inverse()
template<class Mapping , class PositionCoordinate >
Compute the inverse metric tensor associated to the mapping.
- Parameters
-
[in] | coord | The coordinate where we evaluate the metric tensor. |
[out] | matrix | The metric tensor matrix. |
◆ to_covariant()
template<class Mapping , class PositionCoordinate >
KOKKOS_FUNCTION std::array<double, 2> MetricTensor< Mapping, PositionCoordinate >::to_covariant |
( |
std::array< double, 2 > const & |
contravariant_vector, |
|
|
PositionCoordinate const & |
coord |
|
) |
| const |
|
inline |
Compute the covariant vector from the contravariant vector.
- Parameters
-
[in] | contravariant_vector | The metric tensor matrix. |
[in] | coord | The coordinate where we want to compute the convariant vector. |
- Returns
- A vector of the covariant
The documentation for this class was generated from the following file:
- /home/runner/work/gyselalibxx/gyselalibxx/code_branch/vendor/sll/include/sll/mapping/metric_tensor.hpp