UpwindFlux¶
-
class
UpwindFlux: public NumericalFluxBase¶ Public Functions
-
UpwindFlux()¶ UpwindFlux constructor.
-
~UpwindFlux()¶ UpwindFlux destructor.
-
double
Flux(const Vector &Omega, double psiL, double psiR, const Vector &n) const override¶ Flux computes flux on edge for fixed ordinate at a given edge using x and y axis.
- Return
numerical flux value
- Parameters
Omega: fixed ordinate for flux computationpsiL: left solution statepsiR: right solution staten: scaled normal vector of given edge
-
double
FluxXZ(const Vector &Omega, double psiL, double psiR, const Vector &n) const override¶ FluxXZ computes flux on edge for fixed ordinate at a given edge using x and z axis.
- Return
numerical flux value
- Parameters
Omega: fixed ordinate for flux computationpsiL: left solution statepsiR: right solution staten: scaled normal vector of given edge
-
double
Flux1D(const Vector &Omega, double psiL, double psiR, const Vector &n) const override¶ Flux1D computes flux on edge for fixed ordinate at a given edge for pseudo 1D case.
- Return
numerical flux value
- Parameters
Omega: fixed ordinate for flux computationpsiL: left solution statepsiR: right solution staten: scaled normal vector of given edge
-
Vector
Flux1D(const Matrix AxPlus, const Matrix AxMinus, const Vector psiL, const Vector psiR, const Vector n) const override¶ Flux Computes “Steger Warming” upwinding scheme for given flux jacobians of the PN Solver at a given edge and stores it in resultFlux.
- Return
Vector with resulting flux
- Parameters
AxPlus: Positive part of the flux jacobian in x directionAxMinus: Negative part of the flux jacobian in x directionAyPlus: Positive part of the flux jacobian in y directionAyMinus: Negative part of the flux jacobian in y directionAzPlus: Positive part of the flux jacobian in z directionAzMinus: Negative part of the flux jacobian in z directionpsiL: Solution state of left hand side control volumepsiR: Solution state of right hand side control volumen: Normal vector at the edge between left and right control volume
-
Vector
Flux(const Matrix AxPlus, const Matrix AxMinus, const Matrix AyPlus, const Matrix AyMinus, const Matrix AzPlus, const Matrix AzMinus, const Vector psiL, const Vector psiR, const Vector n) const override¶ Flux Computes “Steger Warming” upwinding scheme for given flux jacobians of the PN Solver at a given edge and stores it in resultFlux.
- Return
Vector with resulting flux
- Parameters
AxPlus: Positive part of the flux jacobian in x directionAxMinus: Negative part of the flux jacobian in x directionAyPlus: Positive part of the flux jacobian in y directionAyMinus: Negative part of the flux jacobian in y directionAzPlus: Positive part of the flux jacobian in z directionAzMinus: Negative part of the flux jacobian in z directionpsiL: Solution state of left hand side control volumepsiR: Solution state of right hand side control volumen: Normal vector at the edge between left and right control volume
-
Vector
FluxXZ(const Matrix AxPlus, const Matrix AxMinus, const Matrix AyPlus, const Matrix AyMinus, const Matrix AzPlus, const Matrix AzMinus, const Vector psiL, const Vector psiR, const Vector n) const override¶ Flux Computes “Steger Warming” upwinding scheme for given flux jacobians of the PN Solver at a given edge and stores it in resultFlux in 2D, X and Z direction.
- Return
Vector with resulting flux
- Parameters
AxPlus: Positive part of the flux jacobian in x directionAxMinus: Negative part of the flux jacobian in x directionAyPlus: Positive part of the flux jacobian in y directionAyMinus: Negative part of the flux jacobian in y directionAzPlus: Positive part of the flux jacobian in z directionAzMinus: Negative part of the flux jacobian in z directionpsiL: Solution state of left hand side control volumepsiR: Solution state of right hand side control volumen: Normal vector at the edge between left and right control volume
-
void
FluxVanLeer(const Matrix &Ax, const Matrix &AxAbs, const Matrix &Ay, const Matrix &AyAbs, const Matrix &Az, const Matrix &AzAbs, const Vector &psiL, const Vector &psiR, const Vector &n, Vector &resultFlux) const override¶ Flux Computes “VanLeer” upwinding scheme for given flux jacobians of the PN Solver at a given edge and stores it in resultFlux.
- Return
void
- Parameters
Ax: Flux jacobian in x directionAxAbs: Absolute value of the flux jacobian in x directionAy: Flux jacobian in y directionAyAbs: Absolute value of the flux jacobian in y directionAz: Flux jacobian in z directionAzAbs: Absolute value of the flux jacobian in z directionpsiL: Solution state of left hand side control volumepsiR: Solution state of right hand side control volumen: Normal vector at the edge between left and right control volumeresultFlux: Vector with resulting flux.
-