MFEM v4.7.0
Finite element discretization library
|
Rusanov flux, also known as local Lax-Friedrichs, F̂ n = ½(F(u⁺,x)n + F(u⁻,x)n) - ½λ(u⁺ - u⁻) where λ is the maximum characteristic velocity. More...
#include <hyperbolic.hpp>
Public Member Functions | |
RusanovFlux (const FluxFunction &fluxFunction) | |
real_t | Eval (const Vector &state1, const Vector &state2, const Vector &nor, FaceElementTransformations &Tr, Vector &flux) const override |
hat(F)n = ½(F(u⁺,x)n + F(u⁻,x)n) - ½λ(u⁺ - u⁻) | |
Public Member Functions inherited from mfem::RiemannSolver | |
RiemannSolver (const FluxFunction &fluxFunction) | |
virtual | ~RiemannSolver ()=default |
const FluxFunction & | GetFluxFunction () const |
Get flux function F. | |
Protected Attributes | |
Vector | fluxN1 |
Vector | fluxN2 |
Protected Attributes inherited from mfem::RiemannSolver | |
const FluxFunction & | fluxFunction |
Rusanov flux, also known as local Lax-Friedrichs, F̂ n = ½(F(u⁺,x)n + F(u⁻,x)n) - ½λ(u⁺ - u⁻) where λ is the maximum characteristic velocity.
Definition at line 248 of file hyperbolic.hpp.
|
inline |
Definition at line 251 of file hyperbolic.hpp.
|
overridevirtual |
hat(F)n = ½(F(u⁺,x)n + F(u⁻,x)n) - ½λ(u⁺ - u⁻)
[in] | state1 | state value at a point from the first element (num_equations) |
[in] | state2 | state value at a point from the second element (num_equations) |
[in] | nor | normal vector (not a unit vector) (dim) |
[in] | Tr | face element transformation |
[out] | flux | ½(F(u⁺,x)n + F(u⁻,x)n) - ½λ(u⁺ - u⁻) |
Implements mfem::RiemannSolver.
Definition at line 204 of file hyperbolic.cpp.
|
mutableprotected |
Definition at line 277 of file hyperbolic.hpp.
|
protected |
Definition at line 277 of file hyperbolic.hpp.