Class storing data associated to scvs and scvfs. More...
#include <dumux/discretization/staggered/gridvariables.hh>
Class storing data associated to scvs and scvfs.
GG | the type of the grid geometry |
GVV | the type of the grid volume variables |
GFVC | the type of the grid flux variables cache |
GFV | the type of the grid face variables |
Public Types | |
using | CellCenterGridVariablesType = CellCenterGridVariablesView< ThisType > |
using | FaceGridVariablesType = FaceGridVariablesView< ThisType > |
using | GridVolumeVariables = GVV |
export the type of the grid volume variables More... | |
using | GridFluxVariablesCache = GFVC |
export the type of the grid flux variables cache More... | |
using | GridFaceVariables = GFV |
export the type of the grid face variables More... | |
using | GridGeometry = GG |
export the type of the grid geometry More... | |
using | VolumeVariables = typename GridVolumeVariables::VolumeVariables |
export type of the volume variables More... | |
using | PrimaryVariables = typename VolumeVariables::PrimaryVariables |
export primary variable type More... | |
using | Scalar = std::decay_t< decltype(std::declval< PrimaryVariables >()[0])> |
export scalar type (TODO get it directly from the volvars) More... | |
Public Member Functions | |
template<class Problem > | |
StaggeredGridVariables (std::shared_ptr< Problem > problem, std::shared_ptr< GridGeometry > gridGeometry) | |
Constructor. More... | |
template<class SolutionVector > | |
void | update (const SolutionVector &curSol) |
update all variables More... | |
template<class SolutionVector > | |
void | init (const SolutionVector &curSol) |
initialize all variables (stationary case) More... | |
void | advanceTimeStep () |
template<class SolutionVector > | |
void | resetTimeStep (const SolutionVector &solution) |
resets state to the one before time integration More... | |
const GridFaceVariables & | curGridFaceVars () const |
return the current face variables More... | |
const GridFaceVariables & | prevGridFaceVars () const |
return the previous face variables More... | |
GridFaceVariables & | curGridFaceVars () |
return the current face variables More... | |
GridFaceVariables & | prevGridFaceVars () |
return the previous face variables More... | |
std::unique_ptr< CellCenterGridVariablesView< ThisType > > | cellCenterGridVariablesPtr () |
Returns a pointer the cell center specific auxiliary class. Required for the multi-domain FVAssembler's ctor. More... | |
std::unique_ptr< FaceGridVariablesView< ThisType > > | faceGridVariablesPtr () |
Returns a pointer the face specific auxiliary class. Required for the multi-domain FVAssembler's ctor. More... | |
CellCenterGridVariablesView< ThisType > | cellCenterGridVariables () const |
Return a copy of the cell center specific auxiliary class. More... | |
FaceGridVariablesView< ThisType > | faceGridVariables () const |
Return a copy of the face specific auxiliary class. More... | |
template<class SolutionVector > | |
void | update (const SolutionVector &curSol, bool forceFluxCacheUpdate=false) |
update all variables More... | |
template<class SolutionVector > | |
void | updateAfterGridAdaption (const SolutionVector &curSol) |
update all variables after grid adaption More... | |
const GridFluxVariablesCache & | gridFluxVarsCache () const |
return the flux variables cache More... | |
GridFluxVariablesCache & | gridFluxVarsCache () |
return the flux variables cache More... | |
const GridVolumeVariables & | curGridVolVars () const |
return the current volume variables More... | |
GridVolumeVariables & | curGridVolVars () |
return the current volume variables More... | |
const GridVolumeVariables & | prevGridVolVars () const |
return the volume variables of the previous time step (for instationary problems) More... | |
GridVolumeVariables & | prevGridVolVars () |
return the volume variables of the previous time step (for instationary problems) More... | |
const GridGeometry & | gridGeometry () const |
return the finite volume grid geometry More... | |
Protected Attributes | |
std::shared_ptr< const GridGeometry > | gridGeometry_ |
pointer to the constant grid geometry More... | |
using Dumux::StaggeredGridVariables< GG, GVV, GFVC, GFV >::CellCenterGridVariablesType = CellCenterGridVariablesView<ThisType> |
using Dumux::StaggeredGridVariables< GG, GVV, GFVC, GFV >::FaceGridVariablesType = FaceGridVariablesView<ThisType> |
using Dumux::StaggeredGridVariables< GG, GVV, GFVC, GFV >::GridFaceVariables = GFV |
export the type of the grid face variables
using Dumux::StaggeredGridVariables< GG, GVV, GFVC, GFV >::GridFluxVariablesCache = GFVC |
export the type of the grid flux variables cache
using Dumux::StaggeredGridVariables< GG, GVV, GFVC, GFV >::GridGeometry = GG |
export the type of the grid geometry
using Dumux::StaggeredGridVariables< GG, GVV, GFVC, GFV >::GridVolumeVariables = GVV |
export the type of the grid volume variables
|
inherited |
export primary variable type
|
inherited |
export scalar type (TODO get it directly from the volvars)
|
inherited |
export type of the volume variables
|
inline |
Constructor.
|
inline |
Sets the current state as the previous for next time step this has to be called at the end of each time step
|
inline |
Return a copy of the cell center specific auxiliary class.
|
inline |
Returns a pointer the cell center specific auxiliary class. Required for the multi-domain FVAssembler's ctor.
|
inline |
return the current face variables
|
inline |
return the current face variables
|
inlineinherited |
return the current volume variables
|
inlineinherited |
return the current volume variables
|
inline |
Return a copy of the face specific auxiliary class.
|
inline |
Returns a pointer the face specific auxiliary class. Required for the multi-domain FVAssembler's ctor.
|
inlineinherited |
return the flux variables cache
|
inlineinherited |
return the flux variables cache
|
inlineinherited |
return the finite volume grid geometry
|
inline |
initialize all variables (stationary case)
|
inline |
return the previous face variables
|
inline |
return the previous face variables
|
inlineinherited |
return the volume variables of the previous time step (for instationary problems)
|
inlineinherited |
return the volume variables of the previous time step (for instationary problems)
|
inline |
resets state to the one before time integration
|
inline |
update all variables
|
inlineinherited |
update all variables
|
inlineinherited |
update all variables after grid adaption
|
protectedinherited |
pointer to the constant grid geometry