SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
NewtonianEuler::ComputeFluxes< Dim > Struct Template Reference

Compute the fluxes of the conservative variables of the Newtonian Euler system. More...

#include <Fluxes.hpp>

Public Types

using return_tags = implementation defined
 
using argument_tags = implementation defined
 

Static Public Member Functions

static void apply (gsl::not_null< tnsr::I< DataVector, Dim > * > mass_density_cons_flux, gsl::not_null< tnsr::IJ< DataVector, Dim > * > momentum_density_flux, gsl::not_null< tnsr::I< DataVector, Dim > * > energy_density_flux, const tnsr::I< DataVector, Dim > &momentum_density, const Scalar< DataVector > &energy_density, const tnsr::I< DataVector, Dim > &velocity, const Scalar< DataVector > &pressure)
 

Detailed Description

template<size_t Dim>
struct NewtonianEuler::ComputeFluxes< Dim >

Compute the fluxes of the conservative variables of the Newtonian Euler system.

The fluxes are (Dim+2) vectors of dimension Dim. Denoting the flux of the conservative variable u as F(u), one has

Fi(ρ)=SiFi(Sj)=Sivj+δijpFi(e)=(e+p)vi

where Si is the momentum density, e is the energy density, vi is the velocity, p is the pressure, and δij is the Kronecker delta. This form of the fluxes combines conservative and primitive variables (while the velocity appears explicitly, the pressure implicitly depends, for instance, on the mass density and the specific internal energy), so the conversion from one variable set to the other must be known prior to calling this function.


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