SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
NewtonianEuler::Tags::KineticEnergyDensityCompute< DataType, Dim, Fr > Struct Template Reference

Compute item for the kinetic energy density, \(\rho v^2/2\). More...

#include <KineticEnergyDensity.hpp>

Public Types

using base = KineticEnergyDensity<DataType>
using argument_tags
using return_type = Scalar<DataType>
Public Types inherited from NewtonianEuler::Tags::KineticEnergyDensity< DataType >
using type = Scalar<DataType>

Static Public Attributes

static constexpr auto function

Detailed Description

template<typename DataType, size_t Dim, typename Fr = Frame::Inertial>
struct NewtonianEuler::Tags::KineticEnergyDensityCompute< DataType, Dim, Fr >

Compute item for the kinetic energy density, \(\rho v^2/2\).

See also
NewtonianEuler::kinetic_energy_density

Can be retrieved using NewtonianEuler::Tags::KineticEnergyDensity

Member Typedef Documentation

◆ argument_tags

template<typename DataType, size_t Dim, typename Fr = Frame::Inertial>
using NewtonianEuler::Tags::KineticEnergyDensityCompute< DataType, Dim, Fr >::argument_tags
Initial value:
tmpl::list<hydro::Tags::RestMassDensity<DataType>,
The spatial velocity of the fluid, where . Here is the spatial part of the 4-velocity of the fluid,...
Definition Tags.hpp:257

Member Data Documentation

◆ function

template<typename DataType, size_t Dim, typename Fr = Frame::Inertial>
auto NewtonianEuler::Tags::KineticEnergyDensityCompute< DataType, Dim, Fr >::function
staticconstexpr
Initial value:
= static_cast<void (*)(
const tnsr::I<DataType, Dim, Fr>&)>(
Require a pointer to not be a nullptr
Definition Gsl.hpp:197
Tensor< T, Symmetry<>, index_list<> > Scalar
Scalar type.
Definition TypeAliases.hpp:21
void kinetic_energy_density(gsl::not_null< Scalar< DataType > * > result, const Scalar< DataType > &mass_density, const tnsr::I< DataType, Dim, Fr > &velocity)

The documentation for this struct was generated from the following file:
  • src/Evolution/Systems/NewtonianEuler/KineticEnergyDensity.hpp