3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | List of all members
Dumux::FreeFlowPorousMediumCoupling::IndexHelper< freeFlowIdx, porousMediumIndex, 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/freeflowporousmedium/indexhelper.hh>

Description

template<std::size_t freeFlowIdx, std::size_t porousMediumIndex, class FFFS>
struct Dumux::FreeFlowPorousMediumCoupling::IndexHelper< freeFlowIdx, porousMediumIndex, FFFS, true >

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.

Template Parameters
freeFlowIdxThe domain index of the free-flow model.
porousMediumIndexThe domain index of the porous-medium-flow model.
FFFSThe free-flow fluidsystem.

Static Public Member Functions

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

Member Function Documentation

◆ couplingCompIdx() [1/2]

template<std::size_t freeFlowIdx, std::size_t porousMediumIndex, class FFFS >
static constexpr auto Dumux::FreeFlowPorousMediumCoupling::IndexHelper< freeFlowIdx, porousMediumIndex, FFFS, true >::couplingCompIdx ( Dune::index_constant< freeFlowIdx >  ,
int  coupledCompIdx 
)
inlinestaticconstexpr

The free-flow model does not need any change of the component index.

◆ couplingCompIdx() [2/2]

template<std::size_t freeFlowIdx, std::size_t porousMediumIndex, class FFFS >
static constexpr auto Dumux::FreeFlowPorousMediumCoupling::IndexHelper< freeFlowIdx, porousMediumIndex, FFFS, true >::couplingCompIdx ( Dune::index_constant< porousMediumIndex >  ,
int  coupledCompIdx 
)
inlinestaticconstexpr

The component index of the porous-medium-flow model is mapped by the adapter fluidsystem.

◆ couplingPhaseIdx() [1/2]

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

The free-flow model always uses phase index 0.

◆ couplingPhaseIdx() [2/2]

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

The phase index of the porous-medium-flow model is given by the adapter fluidsystem (i.e., user input).


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