ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
|
#include <source/scalar_conservation/flux_function.h>
Public Member Functions | |
Function (const std::string &subsection) | |
double | value (const double state, const unsigned int direction) const override |
double | gradient (const double state, const unsigned int direction) const override |
Public Member Functions inherited from ryujin::FluxLibrary::Flux | |
Flux (const std::string &name, const std::string &subsection) | |
virtual double | value (double state, unsigned int direction) const =0 |
virtual double | gradient (double state, unsigned int direction) const =0 |
ACCESSOR_READ_ONLY (name) | |
ACCESSOR_READ_ONLY (flux_formula) | |
Additional Inherited Members | |
Protected Attributes inherited from ryujin::FluxLibrary::Flux | |
double | derivative_approximation_delta_ |
std::string | flux_formula_ |
A generic flux description parsed from a user-provided string
Definition at line 26 of file flux_function.h.
|
inline |
Definition at line 29 of file flux_function.h.
References ryujin::FluxLibrary::Flux::derivative_approximation_delta_, and ryujin::FluxLibrary::Flux::flux_formula_.
|
inlineoverridevirtual |
Return the flux f(u) for the given state U
and direction direction
.
Implements ryujin::FluxLibrary::Flux.
Definition at line 72 of file flux_function.h.
|
inlineoverridevirtual |
Return the gradient f'(u) of the flux for the given state u
and direction direction
.
Implements ryujin::FluxLibrary::Flux.
Definition at line 79 of file flux_function.h.