version 3.9.0
Loading...
Searching...
No Matches
Dumux::FacetCouplingGridManager< Grids > Class Template Reference

Creates the grids in the context of hybrid-dimensional coupled models, where the (n-1)-dimensional domains live on the element facets of the n-dimensional domains. More...

#include <dumux/multidomain/facet/gridmanager.hh>

Description

template<typename... Grids>
class Dumux::FacetCouplingGridManager< Grids >
Template Parameters
Gridsthe types of the grid hierarchy
Note
Grids must be ordered in descending grid dimension

Public Types

template<std::size_t id>
using Grid = typename std::tuple_element_t<id, std::tuple<Grids...>>
 export the i-th grid type
 
template<std::size_t id>
using GridPtr = typename std::shared_ptr< Grid<id> >
 export the i-th grid pointer type
 
using GridData = GridDataWrapper
 export the grid data (wrapper) type, i.e. parameters/markers
 
using Embeddings = FacetCouplingEmbeddings<Grids...>
 export the type storing the embeddings
 

Public Member Functions

template<std::size_t id>
const Grid< id > & grid () const
 returns the i-th grid
 
std::shared_ptr< const GridDatagetGridData () const
 return a pointer to the grid data object
 
std::shared_ptr< const EmbeddingsgetEmbeddings () const
 return a pointer to the object containing embeddings
 
void init (const std::string &paramGroup="")
 creates the grids from a file given in parameter tree
 
void loadBalance ()
 Distributes the grid on all processes of a parallel computation.
 

Static Public Attributes

static constexpr std::size_t numGrids = sizeof...(Grids)
 export the number of created grids
 
static constexpr int bulkGridId = 0
 export the grid id of the bulk grid (descending grid dim -> always zero!)
 

Protected Member Functions

template<std::size_t id>
Grid< id > & grid_ ()
 return non-const reference to i-th grid
 
std::shared_ptr< EmbeddingsgetEmbeddings_ ()
 return non-const pointer to the object containing embeddings
 

Member Typedef Documentation

◆ Embeddings

template<typename... Grids>
using Dumux::FacetCouplingGridManager< Grids >::Embeddings = FacetCouplingEmbeddings<Grids...>

◆ Grid

template<typename... Grids>
template<std::size_t id>
using Dumux::FacetCouplingGridManager< Grids >::Grid = typename std::tuple_element_t<id, std::tuple<Grids...>>

◆ GridData

template<typename... Grids>
using Dumux::FacetCouplingGridManager< Grids >::GridData = GridDataWrapper

◆ GridPtr

template<typename... Grids>
template<std::size_t id>
using Dumux::FacetCouplingGridManager< Grids >::GridPtr = typename std::shared_ptr< Grid<id> >

Member Function Documentation

◆ getEmbeddings()

template<typename... Grids>
std::shared_ptr< const Embeddings > Dumux::FacetCouplingGridManager< Grids >::getEmbeddings ( ) const
inline

◆ getEmbeddings_()

template<typename... Grids>
std::shared_ptr< Embeddings > Dumux::FacetCouplingGridManager< Grids >::getEmbeddings_ ( )
inlineprotected

◆ getGridData()

template<typename... Grids>
std::shared_ptr< const GridData > Dumux::FacetCouplingGridManager< Grids >::getGridData ( ) const
inline

◆ grid()

template<typename... Grids>
template<std::size_t id>
const Grid< id > & Dumux::FacetCouplingGridManager< Grids >::grid ( ) const
inline

◆ grid_()

template<typename... Grids>
template<std::size_t id>
Grid< id > & Dumux::FacetCouplingGridManager< Grids >::grid_ ( )
inlineprotected

◆ init()

template<typename... Grids>
void Dumux::FacetCouplingGridManager< Grids >::init ( const std::string & paramGroup = "")
inline

◆ loadBalance()

template<typename... Grids>
void Dumux::FacetCouplingGridManager< Grids >::loadBalance ( )
inline

Member Data Documentation

◆ bulkGridId

template<typename... Grids>
int Dumux::FacetCouplingGridManager< Grids >::bulkGridId = 0
staticconstexpr

◆ numGrids

template<typename... Grids>
std::size_t Dumux::FacetCouplingGridManager< Grids >::numGrids = sizeof...(Grids)
staticconstexpr

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