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

#include <hyperbolic.hpp>

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

Public Member Functions

 BurgersFlux (const int dim)
 Construct a new Burgers 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 317 of file hyperbolic.hpp.

Constructor & Destructor Documentation

◆ BurgersFlux()

mfem::BurgersFlux::BurgersFlux ( const int dim)
inline

Construct a new Burgers Flux Function with given spatial dimension.

Parameters
dimspatial dimension

Definition at line 326 of file hyperbolic.hpp.

Member Function Documentation

◆ ComputeFlux()

real_t mfem::BurgersFlux::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) = ½u²*1ᵀ where 1 is (dim) vector
Returns
real_t maximum characteristic speed, |u|

Implements mfem::FluxFunction.

Definition at line 238 of file hyperbolic.cpp.


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