The grid variable class for finite volume schemes storing variables on scv and scvf (volume and flux variables) More...
#include <dumux/discretization/fvgridvariables.hh>
| the | type of the grid geometry |
| the | type of the grid volume variables |
| the | type of the grid flux variables cache |
Public Types | |
| using | GridGeometry = GG |
| export type of the finite volume grid geometry | |
| using | GridVolumeVariables = GVV |
| export type of the finite volume grid geometry | |
| using | VolumeVariables = typename GridVolumeVariables::VolumeVariables |
| export type of the volume variables | |
| using | PrimaryVariables = typename VolumeVariables::PrimaryVariables |
| export primary variable type | |
| using | Scalar = std::decay_t<decltype(std::declval<PrimaryVariables>()[0])> |
| export scalar type (TODO get it directly from the volvars) | |
| using | GridFluxVariablesCache = GFVC |
| export type of the finite volume grid geometry | |
Public Member Functions | |
| template<class Problem> | |
| FVGridVariables (std::shared_ptr< Problem > problem, std::shared_ptr< const GridGeometry > gridGeometry) | |
| template<class SolutionVector> | |
| void | init (const SolutionVector &curSol) |
| initialize all variables (stationary case) | |
| template<class SolutionVector> | |
| void | update (const SolutionVector &curSol, bool forceFluxCacheUpdate=false) |
| update all variables | |
| template<class SolutionVector> | |
| void | updateAfterGridAdaption (const SolutionVector &curSol) |
| update all variables after grid adaption | |
| void | advanceTimeStep () |
| Sets the current state as the previous for next time step. | |
| template<class SolutionVector> | |
| void | resetTimeStep (const SolutionVector &solution) |
| resets state to the one before time integration | |
| const GridFluxVariablesCache & | gridFluxVarsCache () const |
| return the flux variables cache | |
| GridFluxVariablesCache & | gridFluxVarsCache () |
| return the flux variables cache | |
| const GridVolumeVariables & | curGridVolVars () const |
| return the current volume variables | |
| GridVolumeVariables & | curGridVolVars () |
| return the current volume variables | |
| const GridVolumeVariables & | prevGridVolVars () const |
| return the volume variables of the previous time step (for instationary problems) | |
| GridVolumeVariables & | prevGridVolVars () |
| return the volume variables of the previous time step (for instationary problems) | |
| const GridGeometry & | gridGeometry () const |
| return the finite volume grid geometry | |
Protected Attributes | |
| std::shared_ptr< const GridGeometry > | gridGeometry_ |
| pointer to the constant grid geometry | |
| using Dumux::FVGridVariables< GG, GVV, GFVC >::GridFluxVariablesCache = GFVC |
| using Dumux::FVGridVariables< GG, GVV, GFVC >::GridGeometry = GG |
| using Dumux::FVGridVariables< GG, GVV, GFVC >::GridVolumeVariables = GVV |
| using Dumux::FVGridVariables< GG, GVV, GFVC >::PrimaryVariables = typename VolumeVariables::PrimaryVariables |
| using Dumux::FVGridVariables< GG, GVV, GFVC >::Scalar = std::decay_t<decltype(std::declval<PrimaryVariables>()[0])> |
| using Dumux::FVGridVariables< GG, GVV, GFVC >::VolumeVariables = typename GridVolumeVariables::VolumeVariables |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |