SpECTRE  v2024.04.12
Tags::DerivTensorCompute< TensorTag, InverseJacobianTag, MeshTag > 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 = tmpl::list< TensorTag, domain::Tags::Mesh< Dim >, InverseJacobianTag >
 

Static Public Attributes

static constexpr void(* function )(gsl::not_null< return_type * >, const typename TensorTag::type &, const Mesh< Dim > &, const InverseJacobian< DataVector, Dim, Frame::ElementLogical, deriv_frame > &)
 

Detailed Description

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

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.

Member Data Documentation

◆ function

template<typename TensorTag , typename InverseJacobianTag , typename MeshTag >
constexpr void(* Tags::DerivTensorCompute< TensorTag, InverseJacobianTag, MeshTag >::function) (gsl::not_null< return_type * >, const typename TensorTag::type &, const Mesh< Dim > &, const InverseJacobian< DataVector, Dim, Frame::ElementLogical, deriv_frame > &)
staticconstexpr
Initial value:
=
partial_derivative<typename TensorTag::type::symmetry,
typename TensorTag::type::index_list, Dim,
deriv_frame>
void partial_derivative(const gsl::not_null< TensorMetafunctions::prepend_spatial_index< Tensor< DataVector, SymmList, IndexList >, Dim, UpLo::Lo, DerivativeFrame > * > du, const TensorMetafunctions::prepend_spatial_index< Tensor< DataVector, SymmList, IndexList >, Dim, UpLo::Lo, Frame::ElementLogical > &logical_partial_derivative_of_u, const InverseJacobian< DataVector, Dim, Frame::ElementLogical, DerivativeFrame > &inverse_jacobian)
Compute the partial derivative of a Tensor with respect to the coordinates of DerivativeFrame.

The documentation for this struct was generated from the following file: