MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::AdvectionFlux Class Reference

#include <hyperbolic.hpp>

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

Public Member Functions

 AdvectionFlux (VectorCoefficient &b)
 Construct a new Advection Flux Function with given spatial dimension.
 
real_t ComputeFlux (const Vector &state, ElementTransformation &Tr, DenseMatrix &flux) const override
 Compute F(u)
 
- Public Member Functions inherited from mfem::FluxFunction
 FluxFunction (const int num_equations, const int dim)
 
virtual real_t ComputeFluxDotN (const Vector &state, const Vector &normal, FaceElementTransformations &Tr, Vector &fluxDotN) const
 Compute normal flux. Optionally overloaded in the derived class to avoid creating full dense matrix for flux.
 
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
 

Detailed Description

Definition at line 281 of file hyperbolic.hpp.

Constructor & Destructor Documentation

◆ AdvectionFlux()

mfem::AdvectionFlux::AdvectionFlux ( VectorCoefficient & b)
inline

Construct a new Advection Flux Function with given spatial dimension.

Parameters
bvelocity coefficient, possibly depends on space

Definition at line 297 of file hyperbolic.hpp.

Member Function Documentation

◆ ComputeFlux()

real_t mfem::AdvectionFlux::ComputeFlux ( const Vector & state,
ElementTransformation & Tr,
DenseMatrix & flux ) const
overridevirtual

Compute F(u)

Parameters
statestate (u) at current integration point
Trcurrent element transformation with integration point
fluxF(u) = ubáµ€
Returns
real_t maximum characteristic speed, |b|

Implements mfem::FluxFunction.

Definition at line 225 of file hyperbolic.cpp.


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