![]() |
MFEM v4.8.0
Finite element discretization library
|
Euler flux. More...
#include <hyperbolic.hpp>
Public Member Functions | |
EulerFlux (const int dim, const real_t specific_heat_ratio) | |
Construct a new EulerFlux FluxFunction with given spatial dimension and specific heat ratio. | |
real_t | ComputeFlux (const Vector &state, ElementTransformation &Tr, DenseMatrix &flux) const override |
Compute F(ρ, ρu, E) | |
real_t | ComputeFluxDotN (const Vector &x, const Vector &normal, FaceElementTransformations &Tr, Vector &fluxN) const override |
Compute normal flux, F(ρ, ρu, E)n. | |
![]() | |
FluxFunction (const int num_equations, const int dim) | |
virtual | ~FluxFunction () |
virtual real_t | ComputeAvgFlux (const Vector &state1, const Vector &state2, ElementTransformation &Tr, DenseMatrix &flux_) const |
Compute average flux over the given interval of states. Optionally overloaded in a derived class. | |
virtual real_t | ComputeAvgFluxDotN (const Vector &state1, const Vector &state2, const Vector &normal, FaceElementTransformations &Tr, Vector &fluxDotN) const |
Compute average normal flux over the given interval of states. Optionally overloaded in a derived class. | |
virtual void | ComputeFluxJacobian (const Vector &state, ElementTransformation &Tr, DenseTensor &J_) const |
Compute flux Jacobian J(u, x). Optionally overloaded in a derived class when Jacobian is necessary (e.g. Newton iteration, flux limiter) | |
virtual void | ComputeFluxJacobianDotN (const Vector &state, const Vector &normal, ElementTransformation &Tr, DenseMatrix &JDotN) const |
Compute normal flux Jacobian J(u, x)⋅n. Optionally overloaded in a derived class to avoid creating a full dense tensor for Jacobian. | |
Additional Inherited Members | |
![]() | |
const int | num_equations |
const int | dim |
Euler flux.
Definition at line 873 of file hyperbolic.hpp.
|
inline |
Construct a new EulerFlux FluxFunction with given spatial dimension and specific heat ratio.
dim | spatial dimension |
specific_heat_ratio | specific heat ratio, γ |
Definition at line 887 of file hyperbolic.hpp.
|
overridevirtual |
Compute F(ρ, ρu, E)
state | state (ρ, ρu, E) at current integration point |
Tr | current element transformation with the integration point |
flux | F(ρ, ρu, E) = [ρuᵀ; ρuuᵀ + pI; uᵀ(E + p)] |
Implements mfem::FluxFunction.
Definition at line 964 of file hyperbolic.cpp.
|
overridevirtual |
Compute normal flux, F(ρ, ρu, E)n.
x | x (ρ, ρu, E) at current integration point |
normal | normal vector, usually not a unit vector |
Tr | current element transformation with the integration point |
fluxN | F(ρ, ρu, E)n = [ρu⋅n; ρu(u⋅n) + pn; (u⋅n)(E + p)] |
Reimplemented from mfem::FluxFunction.
Definition at line 1013 of file hyperbolic.cpp.