Computes the momentum density using ScalarWave::momentum_density()
More...
#include <MomentumDensity.hpp>
template<size_t SpatialDim>
struct ScalarWave::Tags::MomentumDensityCompute< SpatialDim >
Computes the momentum density using ScalarWave::momentum_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 momentum_density(gsl::not_null< tnsr::i< DataVector, SpatialDim, Frame::Inertial > * > result, const Scalar< DataVector > &pi, const tnsr::i< DataVector, SpatialDim, Frame::Inertial > &phi)
Computes the momentum density of the scalar wave system.
The documentation for this struct was generated from the following file:
- src/Evolution/Systems/ScalarWave/MomentumDensity.hpp