MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::RiemannSolver Class Referenceabstract

Abstract class for numerical flux for a system of hyperbolic conservation laws on a face with states, fluxes and characteristic speed. More...

#include <hyperbolic.hpp>

Inheritance diagram for mfem::RiemannSolver:
[legend]
Collaboration diagram for mfem::RiemannSolver:
[legend]

Public Member Functions

 RiemannSolver (const FluxFunction &fluxFunction)
 
virtual real_t Eval (const Vector &state1, const Vector &state2, const Vector &nor, FaceElementTransformations &Tr, Vector &flux) const =0
 Evaluates numerical flux for given states and fluxes. Must be overloaded in a derived class.
 
virtual ~RiemannSolver ()=default
 
const FluxFunctionGetFluxFunction () const
 Get flux function F.
 

Protected Attributes

const FluxFunctionfluxFunction
 

Detailed Description

Abstract class for numerical flux for a system of hyperbolic conservation laws on a face with states, fluxes and characteristic speed.

Definition at line 125 of file hyperbolic.hpp.

Constructor & Destructor Documentation

◆ RiemannSolver()

mfem::RiemannSolver::RiemannSolver ( const FluxFunction & fluxFunction)
inline

Definition at line 128 of file hyperbolic.hpp.

◆ ~RiemannSolver()

virtual mfem::RiemannSolver::~RiemannSolver ( )
virtualdefault

Member Function Documentation

◆ Eval()

virtual real_t mfem::RiemannSolver::Eval ( const Vector & state1,
const Vector & state2,
const Vector & nor,
FaceElementTransformations & Tr,
Vector & flux ) const
pure virtual

Evaluates numerical flux for given states and fluxes. Must be overloaded in a derived class.

Parameters
[in]state1state value at a point from the first element (num_equations)
[in]state2state value at a point from the second element (num_equations)
[in]norscaled normal vector, see mfem::CalcOrtho() (dim)
[in]Trface information
[out]fluxnumerical flux (num_equations)

Implemented in mfem::RusanovFlux.

◆ GetFluxFunction()

const FluxFunction & mfem::RiemannSolver::GetFluxFunction ( ) const
inline

Get flux function F.

Returns
constant reference to the flux function.

Definition at line 151 of file hyperbolic.hpp.

Member Data Documentation

◆ fluxFunction

const FluxFunction& mfem::RiemannSolver::fluxFunction
protected

Definition at line 154 of file hyperbolic.hpp.


The documentation for this class was generated from the following file: