Computes the energy density using ScalarWave::energy_density()
More...
#include <EnergyDensity.hpp>
template<size_t SpatialDim>
struct ScalarWave::Tags::EnergyDensityCompute< SpatialDim >
Computes the energy density using ScalarWave::energy_density()
◆ function
template<size_t SpatialDim>
Initial value:= static_cast<void (*)(
const tnsr::i<DataVector, SpatialDim, Frame::Inertial>&)>(
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 energy_density(gsl::not_null< Scalar< DataVector > * > result, const Scalar< DataVector > &pi, const tnsr::i< DataVector, SpatialDim, Frame::Inertial > &phi)
Computes the energy density of the scalar wave system.
The documentation for this struct was generated from the following file:
- src/Evolution/Systems/ScalarWave/EnergyDensity.hpp