SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
Tags::DerivTensorCompute< TensorTag, InverseJacobianTag, MeshTag, InertialCoordsTag > Struct Template Reference

Computes the spatial derivative of a single tensor tag not in a Variables. More...

#include <PartialDerivatives.hpp>

Public Types

using base = ::Tags::deriv<TensorTag, tmpl::size_t<Dim>, deriv_frame>
using return_type = typename base::type
using argument_tags

Static Public Member Functions

static constexpr void function (const gsl::not_null< return_type * > du, const typename TensorTag::type &u, const Mesh< Dim > &mesh, const InverseJacobian< DataVector, Dim, Frame::ElementLogical, deriv_frame > &inverse_jacobian)
static constexpr void function (const gsl::not_null< return_type * > du, const typename TensorTag::type &u, const Mesh< Dim > &mesh, const InverseJacobian< DataVector, Dim, Frame::ElementLogical, deriv_frame > &inverse_jacobian, const tnsr::I< DataVector, Dim, Frame::Inertial > &inertial_coords)

Detailed Description

template<typename TensorTag, typename InverseJacobianTag, typename MeshTag, typename InertialCoordsTag = void>
struct Tags::DerivTensorCompute< TensorTag, InverseJacobianTag, MeshTag, InertialCoordsTag >

Computes the spatial derivative of a single tensor tag not in a Variables.

Computes the spatial derivative for a single tensor represented by 'TensorTag' in the frame mapped to by 'InverseJacobianTag'. It takes a single Tensor designated by 'TensorTag', the inverse Jacobian, and a mesh.

For an executable that does not allow a Cartoon basis, the last parameter, InertialCoordsTag, should not be passed.

Member Typedef Documentation

◆ argument_tags

template<typename TensorTag, typename InverseJacobianTag, typename MeshTag, typename InertialCoordsTag = void>
using Tags::DerivTensorCompute< TensorTag, InverseJacobianTag, MeshTag, InertialCoordsTag >::argument_tags
Initial value:
tmpl::conditional_t<
tmpl::list<TensorTag, MeshTag, InverseJacobianTag>,
tmpl::list<TensorTag, MeshTag, InverseJacobianTag, InertialCoordsTag>>
T is_same_v

The documentation for this struct was generated from the following file:
  • src/NumericalAlgorithms/LinearOperators/PartialDerivatives.hpp