A multidomain wrapper for multiple grid variables. More...
#include <dumux/multidomain/fvgridvariables.hh>
A multidomain wrapper for multiple grid variables.
MDTraits | the multidomain traits |
Public Types | |
template<std::size_t i> | |
using | Type = typename MDTraits::template SubDomain< i >::GridVariables |
export base types of the stored type More... | |
template<std::size_t i> | |
using | PtrType = std::shared_ptr< Type< i > > |
export pointer types the stored type More... | |
using | TupleType = typename MDTraits::template Tuple< PtrType > |
export type of tuple of pointers More... | |
Public Member Functions | |
MultiDomainFVGridVariables (MultiDomainFVGridGeometry< MDTraits > gridGeometries, MultiDomainFVProblem< MDTraits > problems) | |
Construct the grid variables. More... | |
MultiDomainFVGridVariables (TupleType ggTuple) | |
Construct wrapper from a tuple of grid variables. More... | |
void | init (const SolutionVector &sol) |
initialize all variables More... | |
void | update (const SolutionVector &sol, bool forceFluxCacheUpdate=false) |
update all variables More... | |
void | updateAfterGridAdaption (const SolutionVector &sol) |
update all variables after grid adaption More... | |
void | advanceTimeStep () |
Sets the current state as the previous for next time step. More... | |
void | resetTimeStep (const SolutionVector &sol) |
resets state to the one before time integration More... | |
template<std::size_t i> | |
const Type< i > & | operator[] (Dune::index_constant< i > id) const |
return the grid variables for domain with index i More... | |
template<std::size_t i> | |
Type< i > & | operator[] (Dune::index_constant< i > id) |
return the grid variables for domain with index i More... | |
template<std::size_t i> | |
const PtrType< i > & | get (Dune::index_constant< i > id=Dune::index_constant< i >{}) const |
access the ith grid variables pointer we are wrapping More... | |
template<std::size_t i> | |
PtrType< i > & | get (Dune::index_constant< i > id=Dune::index_constant< i >{}) |
access the ith grid variables pointer we are wrapping More... | |
TupleType & | asTuple () |
Access the underlying tuple representation. More... | |
const TupleType & | asTuple () const |
Access the underlying tuple representation. More... | |
using Dumux::MultiDomainFVGridVariables< MDTraits >::PtrType = std::shared_ptr<Type<i> > |
export pointer types the stored type
using Dumux::MultiDomainFVGridVariables< MDTraits >::TupleType = typename MDTraits::template Tuple<PtrType> |
export type of tuple of pointers
using Dumux::MultiDomainFVGridVariables< MDTraits >::Type = typename MDTraits::template SubDomain<i>::GridVariables |
export base types of the stored type
|
inline |
Construct the grid variables.
gridGeometries | a multidomain wrapper of a grid geometry tuple |
problems | a multidomain wrapper of a problem tuple |
|
inline |
Construct wrapper from a tuple of grid variables.
ggTuple | a tuple of shared_ptrs to the grid variables |
|
inline |
Sets the current state as the previous for next time step.
|
inline |
Access the underlying tuple representation.
|
inline |
Access the underlying tuple representation.
|
inline |
access the ith grid variables pointer we are wrapping
|
inline |
access the ith grid variables pointer we are wrapping
|
inline |
initialize all variables
|
inline |
return the grid variables for domain with index i
|
inline |
return the grid variables for domain with index i
|
inline |
resets state to the one before time integration
|
inline |
update all variables
|
inline |
update all variables after grid adaption