Compute item for the kinetic energy density, \(\rho v^2/2\).
More...
#include <KineticEnergyDensity.hpp>
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
◆ argument_tags
template<typename DataType, size_t Dim, typename Fr = Frame::Inertial>
Initial value:
tmpl::list<hydro::Tags::RestMassDensity<DataType>,
◆ function
template<typename DataType, size_t Dim, typename Fr = Frame::Inertial>
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