version 3.8
Dumux::Experimental::GridVariables< GG, X > Class Template Reference

Base class for grid variables. More...

#include <dumux/experimental/discretization/gridvariables.hh>

Inheritance diagram for Dumux::Experimental::GridVariables< GG, X >:

Description

template<class GG, class X>
class Dumux::Experimental::GridVariables< GG, X >
Template Parameters
GGThe grid geometry type
XThe type used for solution vectors

Public Types

using GridGeometry = GG
 export the grid geometry type 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

template<class... Args>
 GridVariables (std::shared_ptr< const GridGeometry > gridGeometry, Args &&... args)
 Constructor from a grid geometry. The remaining arguments must be valid arguments for the construction of the Variables class. More...
 
const GridGeometrygridGeometry () const
 Return a reference to the grid geometry. More...
 
const TimeLeveltimeLevel () const
 Return the time level. More...
 
const SolutionVectordofs () const
 Return reference to the solution. More...
 
SolutionVectordofs ()
 Non-const access still required for privar switch (TODO: Remove dependency) More...
 
void update (const SolutionVector &x)
 Update the state to a new solution. 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...
 

Member Typedef Documentation

◆ GridGeometry

template<class GG , class X >
using Dumux::Experimental::GridVariables< GG, X >::GridGeometry = GG

◆ Scalar

template<class X >
using Dumux::Experimental::Variables< X >::Scalar = typename ScalarT<X>::type
inherited

◆ SolutionVector

template<class X >
using Dumux::Experimental::Variables< X >::SolutionVector = X
inherited

◆ TimeLevel

template<class X >
using Dumux::Experimental::Variables< X >::TimeLevel = Dumux::Experimental::TimeLevel<Scalar>
inherited

Constructor & Destructor Documentation

◆ GridVariables()

template<class GG , class X >
template<class... Args>
Dumux::Experimental::GridVariables< GG, X >::GridVariables ( std::shared_ptr< const GridGeometry gridGeometry,
Args &&...  args 
)
inline

Member Function Documentation

◆ dofs() [1/2]

template<class X >
SolutionVector & Dumux::Experimental::Variables< X >::dofs ( )
inlineinherited

◆ dofs() [2/2]

template<class X >
const SolutionVector & Dumux::Experimental::Variables< X >::dofs ( ) const
inlineinherited

◆ gridGeometry()

template<class GG , class X >
const GridGeometry & Dumux::Experimental::GridVariables< GG, X >::gridGeometry ( ) const
inline

◆ timeLevel()

template<class X >
const TimeLevel & Dumux::Experimental::Variables< X >::timeLevel ( ) const
inlineinherited

◆ update() [1/2]

template<class X >
void Dumux::Experimental::Variables< X >::update ( const SolutionVector x)
inlineinherited

◆ update() [2/2]

template<class X >
void Dumux::Experimental::Variables< X >::update ( const SolutionVector x,
const TimeLevel t 
)
inlineinherited

◆ updateTime()

template<class X >
void Dumux::Experimental::Variables< X >::updateTime ( const TimeLevel t)
inlineinherited

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