MFEM v4.7.0
Finite element discretization library
|
#include <hyperbolic.hpp>
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 |
Definition at line 317 of file hyperbolic.hpp.
|
inline |
Construct a new Burgers Flux Function with given spatial dimension.
dim | spatial dimension |
Definition at line 326 of file hyperbolic.hpp.
|
overridevirtual |
Compute F(u)
state | state (u) at current integration point |
Tr | current element transformation with integration point |
flux | F(u) = ½u²*1ᵀ where 1 is (dim) vector |
Implements mfem::FluxFunction.
Definition at line 238 of file hyperbolic.cpp.