MFEM v4.7.0
Finite element discretization library
|
#include <hyperbolic.hpp>
Public Member Functions | |
EulerFlux (const int dim, const real_t specific_heat_ratio) | |
Construct a new Euler Flux Function with given spatial dimension. | |
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. | |
Public Member Functions inherited from mfem::FluxFunction | |
FluxFunction (const int num_equations, const int dim) | |
virtual void | ComputeFluxJacobian (const Vector &state, ElementTransformation &Tr, DenseTensor &J) const |
Compute flux Jacobian. Optionally overloaded in the derived class when Jacobian is necessary (e.g. Newton iteration, flux limiter) | |
Additional Inherited Members | |
Public Attributes inherited from mfem::FluxFunction | |
const int | num_equations |
const int | dim |
Definition at line 382 of file hyperbolic.hpp.
|
inline |
Construct a new Euler Flux Function with given spatial dimension.
dim | spatial dimension |
specific_heat_ratio | specific heat ratio, γ |
Definition at line 396 of file hyperbolic.hpp.
|
overridevirtual |
Compute F(ρ, ρu, E)
state | state (ρ, ρu, E) at current integration point |
Tr | current element transformation with integration point |
flux | F(ρ, ρu, E) = [ρuᵀ; ρuuᵀ + pI; uᵀ(E + p)] |
Implements mfem::FluxFunction.
Definition at line 300 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 integration point |
fluxN | F(ρ, ρu, E)n = [ρu⋅n; ρu(u⋅n) + pn; (u⋅n)(E + p)] |
Reimplemented from mfem::FluxFunction.
Definition at line 349 of file hyperbolic.cpp.