A multidomain wrapper for multiple problems. More...
#include <dumux/multidomain/fvproblem.hh>
A multidomain wrapper for multiple problems.
MDTraits | The multidomain traits |
Public Types | |
template<std::size_t i> | |
using | Type = typename MDTraits::template SubDomain< i >::Problem |
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 | |
MultiDomainFVProblem ()=default | |
The default constructor. More... | |
MultiDomainFVProblem (MultiDomainFVGridGeometry< MDTraits > gridGeometries) | |
Contruct the problem. More... | |
MultiDomainFVProblem (TupleType problemTuple) | |
Construct wrapper from a tuple of problems. More... | |
void | applyInitialSolution (SolutionVector &sol) const |
Applies the initial solution for all degrees of freedom of the grid. More... | |
template<std::size_t i> | |
const Type< i > & | operator[] (Dune::index_constant< i > id) const |
return the problem for domain with index i More... | |
template<std::size_t i> | |
Type< i > & | operator[] (Dune::index_constant< i > id) |
return the problem 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 problem ptr for domain with index i More... | |
template<std::size_t i> | |
PtrType< i > & | get (Dune::index_constant< i > id=Dune::index_constant< i >{}) |
access the problem ptr for domain with index i More... | |
template<std::size_t i> | |
void | set (PtrType< i > p, Dune::index_constant< i > id=Dune::index_constant< i >{}) |
set the pointer for sub domain i More... | |
TupleType | getTuple () |
return the grid variables tuple we are wrapping More... | |
TupleType & | asTuple () |
Access the underlying tuple representation. More... | |
const TupleType & | asTuple () const |
Access the underlying tuple representation. More... | |
using Dumux::MultiDomainFVProblem< MDTraits >::PtrType = std::shared_ptr<Type<i> > |
export pointer types the stored type
using Dumux::MultiDomainFVProblem< MDTraits >::TupleType = typename MDTraits::template Tuple<PtrType> |
export type of tuple of pointers
using Dumux::MultiDomainFVProblem< MDTraits >::Type = typename MDTraits::template SubDomain<i>::Problem |
export base types of the stored type
|
default |
The default constructor.
|
inline |
Contruct the problem.
gridGeometries | a tuple of grid geometry shared pointers |
|
inline |
Construct wrapper from a tuple of problems.
problemTuple | a tuple of shared_ptrs to the problems |
|
inline |
Applies the initial solution for all degrees of freedom of the grid.
sol | the initial solution vector |
|
inline |
Access the underlying tuple representation.
|
inline |
Access the underlying tuple representation.
|
inline |
access the problem ptr for domain with index i
|
inline |
access the problem ptr for domain with index i
|
inline |
return the grid variables tuple we are wrapping
|
inline |
return the problem for domain with index i
|
inline |
return the problem for domain with index i
|
inline |
set the pointer for sub domain i