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 grid variable class for finite volume schemes, storing variables on scv and scvf (volume and flux variables).
GVV | the type of the grid volume variables |
GFVC | the type of the grid flux variables cache |
X | the type used for solution vectors |
Public Types | |
using | GridGeometry = GG |
export type of the finite volume grid geometry More... | |
using | GridVolumeVariables = GVV |
export type of the grid volume variables More... | |
using | VolumeVariables = typename GridVolumeVariables::VolumeVariables |
export type of the volume variables More... | |
using | PrimaryVariables = typename VolumeVariables::PrimaryVariables |
export primary variable type More... | |
using | GridFluxVariablesCache = GFVC |
export cache type for flux variables More... | |
using | LocalView = FVGridVariablesLocalView< ThisType > |
export the local view on this class More... | |
using | SolutionVector = X |
export the type of solution vector More... | |
using | Scalar = typename ScalarT< X >::type |
export the underlying scalar type More... | |
using | TimeLevel = Dumux::Experimental::TimeLevel< Scalar > |
export the time representation More... | |
Public Member Functions | |
FVGridVariables (std::shared_ptr< Problem > problem, std::shared_ptr< const GridGeometry > gridGeometry) | |
Constructor. More... | |
template<class SolOrInitializer > | |
FVGridVariables (std::shared_ptr< Problem > problem, std::shared_ptr< const GridGeometry > gridGeometry, SolOrInitializer &&solOrInitializer) | |
Constructor with custom initialization of the solution. More... | |
void | update (const SolutionVector &curSol) |
Update all variables that may be affected by a change in solution. More... | |
void | forceUpdateAll (const SolutionVector &curSol) |
Force the update of all variables. More... | |
const GridFluxVariablesCache & | gridFluxVarsCache () const |
return the flux variables cache More... | |
GridFluxVariablesCache & | gridFluxVarsCache () |
return the flux variables cache More... | |
const GridVolumeVariables & | gridVolVars () const |
return the current volume variables More... | |
GridVolumeVariables & | gridVolVars () |
return the current volume variables More... | |
const GridGeometry & | gridGeometry () const |
Return a reference to the grid geometry. More... | |
const TimeLevel & | timeLevel () const |
Return the time level. More... | |
const SolutionVector & | dofs () const |
Return reference to the solution. More... | |
SolutionVector & | dofs () |
Non-const access still required for privar switch (TODO: Remove dependency) More... | |
void | update (const SolutionVector &x, const TimeLevel &t) |
Update the state to a new solution & time level. More... | |
void | updateTime (const TimeLevel &t) |
Update the time level only. More... | |
using Dumux::Experimental::FVGridVariables< GVV, GFVC, X >::GridFluxVariablesCache = GFVC |
export cache type for flux variables
using Dumux::Experimental::FVGridVariables< GVV, GFVC, X >::GridGeometry = GG |
export type of the finite volume grid geometry
using Dumux::Experimental::FVGridVariables< GVV, GFVC, X >::GridVolumeVariables = GVV |
export type of the grid volume variables
using Dumux::Experimental::FVGridVariables< GVV, GFVC, X >::LocalView = FVGridVariablesLocalView<ThisType> |
export the local view on this class
using Dumux::Experimental::FVGridVariables< GVV, GFVC, X >::PrimaryVariables = typename VolumeVariables::PrimaryVariables |
export primary variable type
|
inherited |
export the underlying scalar type
|
inherited |
export the type of solution vector
|
inherited |
export the time representation
using Dumux::Experimental::FVGridVariables< GVV, GFVC, X >::VolumeVariables = typename GridVolumeVariables::VolumeVariables |
export type of the volume variables
|
inline |
Constructor.
problem | The problem to be solved |
gridGeometry | The geometry of the computational grid |
|
inline |
Constructor with custom initialization of the solution.
problem | The problem to be solved |
gridGeometry | The geometry of the computational grid |
solOrInitializer | This can be either a reference to a solution vector, or an initializer lambda. See Dumux::Experimental::Variables. |
|
inlineinherited |
Non-const access still required for privar switch (TODO: Remove dependency)
|
inlineinherited |
Return reference to the solution.
|
inline |
Force the update of all variables.
|
inline |
return the flux variables cache
|
inline |
return the flux variables cache
|
inlineinherited |
Return a reference to the grid geometry.
|
inline |
return the current volume variables
|
inline |
return the current volume variables
|
inlineinherited |
Return the time level.
|
inline |
Update all variables that may be affected by a change in solution.
|
inlineinherited |
Update the state to a new solution & time level.
|
inlineinherited |
Update the time level only.