ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
Public Member Functions | List of all members
ryujin::FluxLibrary::KPP Class Reference

#include <source/scalar_conservation/flux_kpp.h>

Inheritance diagram for ryujin::FluxLibrary::KPP:
Inheritance graph
[legend]
Collaboration diagram for ryujin::FluxLibrary::KPP:
Collaboration graph
[legend]

Public Member Functions

 KPP (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_
 

Detailed Description

A generic flux description parsed from a user-provided string

Definition at line 19 of file flux_kpp.h.

Constructor & Destructor Documentation

◆ KPP()

ryujin::FluxLibrary::KPP::KPP ( const std::string &  subsection)
inline

Definition at line 22 of file flux_kpp.h.

References ryujin::FluxLibrary::Flux::flux_formula_.

Member Function Documentation

◆ value()

double ryujin::FluxLibrary::KPP::value ( const double  state,
const unsigned int  direction 
) const
inlineoverridevirtual

Return the flux f(u) for the given state U and direction direction.

Implements ryujin::FluxLibrary::Flux.

Definition at line 29 of file flux_kpp.h.

◆ gradient()

double ryujin::FluxLibrary::KPP::gradient ( const double  state,
const unsigned int  direction 
) const
inlineoverridevirtual

Return the gradient f'(u) of the flux for the given state u and direction direction.

Implements ryujin::FluxLibrary::Flux.

Definition at line 46 of file flux_kpp.h.


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