Peano
Loading...
Searching...
No Matches
exagrype::euler Namespace Reference

Namespaces

namespace  initialvalues
 Analytical initial conditions for the Euler equations.

Functions

double pressure (const double *const Q, const double gamma)
 Pressure of an ideal gas.
void flux (const double *const Q, const double *const ccz4Fields, const int normal, const double gamma, double *const F)
 Flux of the Euler equations along one coordinate axis.
double maxEigenvalue (const double *const Q, const double *const ccz4Fields, const int normal, const double gamma)
 Maximum eigenvalue of the flux Jacobian along one coordinate axis.
void source (const double *const Q, const double *const ccz4Fields, const double gamma, double *const S)
 Volumetric source of the Euler equations.

Function Documentation

◆ flux()

void exagrype::euler::flux ( const double *const Q,
const double *const ccz4Fields,
const int normal,
const double gamma,
double *const F )

Flux of the Euler equations along one coordinate axis.

Overwrites all five entries of F. The caller may modify the result afterwards, e.g. scale it by the lapse of a spacetime.

Parameters
QThe five conserved quantities.
ccz4FieldsThe 58 entries of first-order CCZ4 in this volume (exagrype.api.FOCCZ4Solver.Unknowns), i.e. the auxiliary variables through which the spacetime enters. The Euler equations do not use them yet; the argument is the hook through which the coupling does.
normalAxis along which the flux is evaluated (0, 1 or 2).
gammaAdiabatic index.
FFlux, five entries.

◆ maxEigenvalue()

double exagrype::euler::maxEigenvalue ( const double *const Q,
const double *const ccz4Fields,
const int normal,
const double gamma )

Maximum eigenvalue of the flux Jacobian along one coordinate axis.

This is the modulus of the fluid velocity along the axis plus the speed of sound.

Parameters
QThe five conserved quantities.
ccz4FieldsThe 58 entries of first-order CCZ4 in this volume (exagrype.api.FOCCZ4Solver.Unknowns), i.e. the auxiliary variables through which the spacetime enters. The Euler equations do not use them yet; the argument is the hook through which the coupling does.
normalAxis along which the eigenvalue is evaluated (0, 1 or 2).
gammaAdiabatic index.
Returns
Maximum eigenvalue.

◆ pressure()

double exagrype::euler::pressure ( const double *const Q,
const double gamma )

Pressure of an ideal gas.

The five conserved quantities are ordered density, the three momentum components and the total energy (exagrype.api.euler.Euler.Unknowns), and the pressure is \( p = (\gamma-1) ( E - |j|^2 / (2 \rho) ) \).

Parameters
QThe five conserved quantities.
gammaAdiabatic index.

Referenced by exagrype::euler::initialvalues::smoothWave().

Here is the caller graph for this function:

◆ source()

void exagrype::euler::source ( const double *const Q,
const double *const ccz4Fields,
const double gamma,
double *const S )

Volumetric source of the Euler equations.

The source is zero at the moment. It accepts the solution and the auxiliary variables already, so that a coupling can fill it without changing the interface.

Parameters
QThe five conserved quantities.
ccz4FieldsThe 58 entries of first-order CCZ4 in this volume (exagrype.api.FOCCZ4Solver.Unknowns), i.e. the auxiliary variables through which the spacetime enters. The Euler equations do not use them yet; the argument is the hook through which the coupling does.
gammaAdiabatic index.
SSource, five entries (output).