|
KOKKOS_FUNCTION | InverseJacobianMatrix (Mapping const &mapping) |
| A constructor for the InverseJacobianMatrix.
|
|
KOKKOS_INLINE_FUNCTION Matrix_2x2 | operator() (PositionCoordinate const &coord) const |
| Compute full inverse Jacobian matrix.
|
|
KOKKOS_INLINE_FUNCTION double | inv_jacobian_11 (PositionCoordinate const &coord) const |
| Compute the (1,1) coefficient of the inverse Jacobian matrix.
|
|
KOKKOS_INLINE_FUNCTION double | inv_jacobian_12 (PositionCoordinate const &coord) const |
| Compute the (1,2) coefficient of the inverse Jacobian matrix.
|
|
KOKKOS_INLINE_FUNCTION double | inv_jacobian_21 (PositionCoordinate const &coord) const |
| Compute the (2,1) coefficient of the inverse Jacobian matrix.
|
|
KOKKOS_INLINE_FUNCTION double | inv_jacobian_22 (PositionCoordinate const &coord) const |
| Compute the (2,2) coefficient of the inverse Jacobian matrix.
|
|
template<class Mapping, class PositionCoordinate = typename Mapping::CoordArg>
class InverseJacobianMatrix< Mapping, PositionCoordinate >
A class to calculate the inverse of the Jacobian matrix.
If specialised methods are available then these are used by the class. Otherwise the inverse is calculated from the Jacobian matrix.
- Template Parameters
-
Mapping | The mapping whose inverse we are interested in. |
PositionCoordinate | The coordinate system in which the inverse should be calculated. |
template<class Mapping , class PositionCoordinate = typename Mapping::CoordArg>
KOKKOS_INLINE_FUNCTION Matrix_2x2 InverseJacobianMatrix< Mapping, PositionCoordinate >::operator() |
( |
PositionCoordinate const & |
coord | ) |
const |
|
inline |
Compute full inverse Jacobian matrix.
For some computations, we need the complete inverse Jacobian matrix or just the coefficients. The coefficients can be given independently with the functions inv_jacobian_11, inv_jacobian_12, inv_jacobian_21 and inv_jacobian_22.
- Parameters
-
[in] | coord | The coordinate where we evaluate the Jacobian matrix. |
- Returns
- The inverse Jacobian matrix returned.
- See also
- inv_jacobian_11
-
inv_jacobian_12
-
inv_jacobian_21
-
inv_jacobian_22
template<class Mapping , class PositionCoordinate = typename Mapping::CoordArg>
KOKKOS_INLINE_FUNCTION double InverseJacobianMatrix< Mapping, PositionCoordinate >::inv_jacobian_11 |
( |
PositionCoordinate const & |
coord | ) |
const |
|
inline |
Compute the (1,1) coefficient of the inverse Jacobian matrix.
Be careful because not all mappings are invertible, especially at the center point.
- Parameters
-
[in] | coord | The coordinate where we evaluate the inverse Jacobian matrix. |
- Returns
- A double with the value of the (1,1) coefficient of the inverse Jacobian matrix.
template<class Mapping , class PositionCoordinate = typename Mapping::CoordArg>
KOKKOS_INLINE_FUNCTION double InverseJacobianMatrix< Mapping, PositionCoordinate >::inv_jacobian_12 |
( |
PositionCoordinate const & |
coord | ) |
const |
|
inline |
Compute the (1,2) coefficient of the inverse Jacobian matrix.
Be careful because not all mappings are invertible, especially at the center point.
- Parameters
-
[in] | coord | The coordinate where we evaluate the inverse Jacobian matrix. |
- Returns
- A double with the value of the (1,2) coefficient of the inverse Jacobian matrix.
template<class Mapping , class PositionCoordinate = typename Mapping::CoordArg>
KOKKOS_INLINE_FUNCTION double InverseJacobianMatrix< Mapping, PositionCoordinate >::inv_jacobian_21 |
( |
PositionCoordinate const & |
coord | ) |
const |
|
inline |
Compute the (2,1) coefficient of the inverse Jacobian matrix.
Be careful because not all mappings are invertible, especially at the center point.
- Parameters
-
[in] | coord | The coordinate where we evaluate the inverse Jacobian matrix. |
- Returns
- A double with the value of the (2,1) coefficient of the inverse Jacobian matrix.
template<class Mapping , class PositionCoordinate = typename Mapping::CoordArg>
KOKKOS_INLINE_FUNCTION double InverseJacobianMatrix< Mapping, PositionCoordinate >::inv_jacobian_22 |
( |
PositionCoordinate const & |
coord | ) |
const |
|
inline |
Compute the (2,2) coefficient of the inverse Jacobian matrix.
Be careful because not all mappings are invertible, especially at the center point.
- Parameters
-
[in] | coord | The coordinate where we evaluate the inverse Jacobian matrix. |
- Returns
- A double with the value of the (2,2) coefficient of the inverse Jacobian matrix.