version 3.8.0
Loading...
Searching...
No Matches
Dumux::IndexHelper< stokesIdx, darcyIdx, FFFS, true > Struct Template Reference

Helper struct to choose the correct index for phases and components. This is need if the porous-medium-flow model features more fluid phases than the free-flow model. Specialization for the case that a adapter is used. More...

#include <dumux/multidomain/boundary/stokesdarcy/couplingdata.hh>

Description

template<std::size_t stokesIdx, std::size_t darcyIdx, class FFFS>
struct Dumux::IndexHelper< stokesIdx, darcyIdx, FFFS, true >
Template Parameters
stokesIdxThe domain index of the free-flow model.
darcyIdxThe domain index of the porous-medium-flow model.
FFFSThe free-flow fluidsystem.

Static Public Member Functions

static constexpr auto couplingPhaseIdx (Dune::index_constant< stokesIdx >, int coupledPhaseIdx=0)
 The free-flow model always uses phase index 0.
 
static constexpr auto couplingPhaseIdx (Dune::index_constant< darcyIdx >, int coupledPhaseIdx=0)
 The phase index of the porous-medium-flow model is given by the adapter fluidsytem (i.e., user input).
 
static constexpr auto couplingCompIdx (Dune::index_constant< stokesIdx >, int coupledCompdIdx)
 The free-flow model does not need any change of the component index.
 
static constexpr auto couplingCompIdx (Dune::index_constant< darcyIdx >, int coupledCompdIdx)
 The component index of the porous-medium-flow model is mapped by the adapter fluidsytem.
 

Member Function Documentation

◆ couplingCompIdx() [1/2]

template<std::size_t stokesIdx, std::size_t darcyIdx, class FFFS >
static constexpr auto Dumux::IndexHelper< stokesIdx, darcyIdx, FFFS, true >::couplingCompIdx ( Dune::index_constant< darcyIdx > ,
int coupledCompdIdx )
inlinestaticconstexpr

◆ couplingCompIdx() [2/2]

template<std::size_t stokesIdx, std::size_t darcyIdx, class FFFS >
static constexpr auto Dumux::IndexHelper< stokesIdx, darcyIdx, FFFS, true >::couplingCompIdx ( Dune::index_constant< stokesIdx > ,
int coupledCompdIdx )
inlinestaticconstexpr

◆ couplingPhaseIdx() [1/2]

template<std::size_t stokesIdx, std::size_t darcyIdx, class FFFS >
static constexpr auto Dumux::IndexHelper< stokesIdx, darcyIdx, FFFS, true >::couplingPhaseIdx ( Dune::index_constant< darcyIdx > ,
int coupledPhaseIdx = 0 )
inlinestaticconstexpr

◆ couplingPhaseIdx() [2/2]

template<std::size_t stokesIdx, std::size_t darcyIdx, class FFFS >
static constexpr auto Dumux::IndexHelper< stokesIdx, darcyIdx, FFFS, true >::couplingPhaseIdx ( Dune::index_constant< stokesIdx > ,
int coupledPhaseIdx = 0 )
inlinestaticconstexpr

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