template<class MDTraits>
class Dumux::MultiDomainFVGridGeometry< MDTraits >
A multidomain wrapper for multiple grid geometries.
- Template Parameters
-
| MDTraits | The multidomain traits |
|
| | MultiDomainFVGridGeometry ()=default |
| | The default constructor.
|
| template<typename... Args> |
| | MultiDomainFVGridGeometry (Args &&... args) |
| | Construct grid geometries for all subdomains.
|
| | MultiDomainFVGridGeometry (TupleType ggTuple) |
| | Construct wrapper from a tuple of grid geometries.
|
| | MultiDomainFVGridGeometry (GVTuple gvTuple) |
| | Construct wrapper from a tuple of grid views.
|
| template<typename... Args> |
| void | update (Args &&... args) |
| | Update all grid geometries (do this e.g. after grid adaption).
|
| void | update () |
| | Update all grid geometries (do this again after grid adaption).
|
| template<std::size_t i> |
| const Type< i > & | operator[] (Dune::index_constant< i >) const |
| | return the grid geometry for domain with index i
|
| template<std::size_t i> |
| Type< i > & | operator[] (Dune::index_constant< i >) |
| | return the grid geometry for domain with index i
|
| template<std::size_t i> |
| const PtrType< i > & | get (Dune::index_constant< i > id=Dune::index_constant< i >{}) const |
| | ! access the grid geometry pointer for domain with index i
|
| template<std::size_t i> |
| PtrType< i > & | get (Dune::index_constant< i > id=Dune::index_constant< i >{}) |
| | ! access the the grid geometry pointer for domain with index i
|
| 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
|
| TupleType | getTuple () |
| | return the grid variables tuple we are wrapping
|
| TupleType & | asTuple () |
| | Access the underlying tuple representation.
|
| const TupleType & | asTuple () const |
| | Access the underlying tuple representation.
|
template<class MDTraits>
template<typename... Args>
Construct grid geometries for all subdomains.
- Parameters
-
| args | a list of arguments to pass to the constructors |
The number of arguments has to match the number of subdomains. In case a constructor needs multiple arguments, they have to be wrapped in a std::tuple. Use std::make_tuple and possible wrap arguments using std::ref / std::cref or use std::forward_as_tuple. If an argument is a tuple, it will be unpacked and its members will be passed to the constructor. In the corner case where you need to pass a tuple to the constructor, you therefore need to additionally wrap the tuple in a tuple before passing.
template<class MDTraits>
template<typename... Args>
Update all grid geometries (do this e.g. after grid adaption).
- Parameters
-
| args | a list of arguments to pass to the update functions |
The number of arguments has to match the number of subdomains. In case the update function needs multiple arguments, they have to be wrapped in a std::tuple. Use std::make_tuple and possible wrap arguments using std::ref / std::cref or use std::forward_as_tuple. If an argument is a tuple, it will be unpacked and its members will be passed to the constructor. In the corner case where you need to pass a tuple to the constructor, you therefore need to additionally wrap the tuple in a tuple before passing.