3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager > Class Template Reference

A base class which provides some common methods used for Stokes-Darcy coupling. More...

#include <dumux/multidomain/boundary/freeflowporousmedium/couplingconditions.hh>

Inheritance diagram for Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >:

Description

template<class MDTraits, class CouplingManager>
class Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >

A base class which provides some common methods used for Stokes-Darcy coupling.

Static Public Member Functions

template<std::size_t i>
static constexpr auto couplingPhaseIdx (Dune::index_constant< i > id, int coupledPhaseIdx=0)
 Returns the corresponding phase index needed for coupling. More...
 
template<std::size_t i>
static constexpr auto couplingCompIdx (Dune::index_constant< i > id, int coupledCompIdx)
 Returns the corresponding component index needed for coupling. More...
 
template<class Context >
static auto darcyPermeability (const FVElementGeometry< freeFlowMomentumIndex > &fvGeometry, const SubControlVolumeFace< freeFlowMomentumIndex > &scvf, const Context &context)
 Returns the intrinsic permeability of the coupled Darcy element. More...
 
template<class Context >
static NumEqVector< freeFlowMomentumIndexmomentumCouplingCondition (const FVElementGeometry< freeFlowMomentumIndex > &fvGeometry, const SubControlVolumeFace< freeFlowMomentumIndex > &scvf, const ElementVolumeVariables< freeFlowMomentumIndex > &elemVolVars, const Context &context)
 Returns the momentum flux across the coupling boundary. More...
 
static Scalar advectiveFlux (const Scalar insideQuantity, const Scalar outsideQuantity, const Scalar volumeFlow, bool insideIsUpstream)
 Evaluate an advective flux across the interface and consider upwinding. More...
 

Static Public Attributes

static constexpr auto freeFlowMomentumIndex = CouplingManager::freeFlowMomentumIndex
 
static constexpr auto freeFlowMassIndex = CouplingManager::freeFlowMassIndex
 
static constexpr auto porousMediumIndex = CouplingManager::porousMediumIndex
 

Protected Member Functions

template<std::size_t i, std::size_t j>
Scalar transmissibility_ (Dune::index_constant< i > domainI, Dune::index_constant< j > domainJ, const Scalar insideDistance, const Scalar outsideDistance, const Scalar avgQuantityI, const Scalar avgQuantityJ, const DiffusionCoefficientAveragingType diffCoeffAvgType) const
 Returns the transmissibility used for either molecular diffusion or thermal conductivity. More...
 
template<class Scv , class Scvf >
Scalar getDistance_ (const Scv &scv, const Scvf &scvf) const
 Returns the distance between an scvf and the corresponding scv center. More...
 
template<std::size_t i, std::size_t j, bool isNI = enableEnergyBalance, typename std::enable_if_t< isNI, int > = 0>
Scalar conductiveEnergyFlux_ (Dune::index_constant< i > domainI, Dune::index_constant< j > domainJ, const FVElementGeometry< i > &fvGeometryI, const FVElementGeometry< j > &fvGeometryJ, const SubControlVolumeFace< i > &scvfI, const SubControlVolume< i > &scvI, const SubControlVolume< j > &scvJ, const VolumeVariables< i > &volVarsI, const VolumeVariables< j > &volVarsJ, const DiffusionCoefficientAveragingType diffCoeffAvgType) const
 Returns the conductive energy flux acorss the interface. More...
 

Static Protected Member Functions

template<class CouplingContext >
static Scalar pressureAtInterface_ (const FVElementGeometry< freeFlowMomentumIndex > &fvGeometry, const SubControlVolumeFace< freeFlowMomentumIndex > &scvf, const ElementVolumeVariables< freeFlowMomentumIndex > &elemVolVars, const CouplingContext &context)
 Returns the pressure at the interface. More...
 
static Scalar computeCouplingPhasePressureAtInterface_ (const FVElementGeometry< porousMediumIndex > &fvGeometry, const SubControlVolumeFace< porousMediumIndex > &scvf, const VolumeVariables< porousMediumIndex > &volVars, const typename Element< freeFlowMomentumIndex >::Geometry::GlobalCoordinate &couplingPhaseVelocity, ForchheimersLaw)
 Returns the pressure at the interface using Forchheimers's law for reconstruction. More...
 
static Scalar computeCouplingPhasePressureAtInterface_ (const FVElementGeometry< porousMediumIndex > &fvGeometry, const SubControlVolumeFace< porousMediumIndex > &scvf, const VolumeVariables< porousMediumIndex > &volVars, const typename Element< freeFlowMomentumIndex >::Geometry::GlobalCoordinate &gravity, const typename Element< freeFlowMomentumIndex >::Geometry::GlobalCoordinate &couplingPhaseVelocity, DarcysLaw)
 Returns the pressure at the interface using Darcy's law for reconstruction. More...
 

Member Function Documentation

◆ advectiveFlux()

template<class MDTraits , class CouplingManager >
static Scalar Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::advectiveFlux ( const Scalar  insideQuantity,
const Scalar  outsideQuantity,
const Scalar  volumeFlow,
bool  insideIsUpstream 
)
inlinestatic

Evaluate an advective flux across the interface and consider upwinding.

◆ computeCouplingPhasePressureAtInterface_() [1/2]

template<class MDTraits , class CouplingManager >
static Scalar Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::computeCouplingPhasePressureAtInterface_ ( const FVElementGeometry< porousMediumIndex > &  fvGeometry,
const SubControlVolumeFace< porousMediumIndex > &  scvf,
const VolumeVariables< porousMediumIndex > &  volVars,
const typename Element< freeFlowMomentumIndex >::Geometry::GlobalCoordinate &  couplingPhaseVelocity,
ForchheimersLaw   
)
inlinestaticprotected

Returns the pressure at the interface using Forchheimers's law for reconstruction.

◆ computeCouplingPhasePressureAtInterface_() [2/2]

template<class MDTraits , class CouplingManager >
static Scalar Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::computeCouplingPhasePressureAtInterface_ ( const FVElementGeometry< porousMediumIndex > &  fvGeometry,
const SubControlVolumeFace< porousMediumIndex > &  scvf,
const VolumeVariables< porousMediumIndex > &  volVars,
const typename Element< freeFlowMomentumIndex >::Geometry::GlobalCoordinate &  gravity,
const typename Element< freeFlowMomentumIndex >::Geometry::GlobalCoordinate &  couplingPhaseVelocity,
DarcysLaw   
)
inlinestaticprotected

Returns the pressure at the interface using Darcy's law for reconstruction.

◆ conductiveEnergyFlux_()

template<class MDTraits , class CouplingManager >
template<std::size_t i, std::size_t j, bool isNI = enableEnergyBalance, typename std::enable_if_t< isNI, int > = 0>
Scalar Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::conductiveEnergyFlux_ ( Dune::index_constant< i >  domainI,
Dune::index_constant< j >  domainJ,
const FVElementGeometry< i > &  fvGeometryI,
const FVElementGeometry< j > &  fvGeometryJ,
const SubControlVolumeFace< i > &  scvfI,
const SubControlVolume< i > &  scvI,
const SubControlVolume< j > &  scvJ,
const VolumeVariables< i > &  volVarsI,
const VolumeVariables< j > &  volVarsJ,
const DiffusionCoefficientAveragingType  diffCoeffAvgType 
) const
inlineprotected

Returns the conductive energy flux acorss the interface.

◆ couplingCompIdx()

template<class MDTraits , class CouplingManager >
template<std::size_t i>
static constexpr auto Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::couplingCompIdx ( Dune::index_constant< i >  id,
int  coupledCompIdx 
)
inlinestaticconstexpr

Returns the corresponding component index needed for coupling.

◆ couplingPhaseIdx()

template<class MDTraits , class CouplingManager >
template<std::size_t i>
static constexpr auto Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::couplingPhaseIdx ( Dune::index_constant< i >  id,
int  coupledPhaseIdx = 0 
)
inlinestaticconstexpr

Returns the corresponding phase index needed for coupling.

◆ darcyPermeability()

template<class MDTraits , class CouplingManager >
template<class Context >
static auto Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::darcyPermeability ( const FVElementGeometry< freeFlowMomentumIndex > &  fvGeometry,
const SubControlVolumeFace< freeFlowMomentumIndex > &  scvf,
const Context &  context 
)
inlinestatic

Returns the intrinsic permeability of the coupled Darcy element.

◆ getDistance_()

template<class MDTraits , class CouplingManager >
template<class Scv , class Scvf >
Scalar Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::getDistance_ ( const Scv &  scv,
const Scvf &  scvf 
) const
inlineprotected

Returns the distance between an scvf and the corresponding scv center.

◆ momentumCouplingCondition()

template<class MDTraits , class CouplingManager >
template<class Context >
static NumEqVector< freeFlowMomentumIndex > Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::momentumCouplingCondition ( const FVElementGeometry< freeFlowMomentumIndex > &  fvGeometry,
const SubControlVolumeFace< freeFlowMomentumIndex > &  scvf,
const ElementVolumeVariables< freeFlowMomentumIndex > &  elemVolVars,
const Context &  context 
)
inlinestatic

Returns the momentum flux across the coupling boundary.

For the normal momentum coupling, the porous medium side of the coupling condition is evaluated, i.e. -[p n]^pm.

◆ pressureAtInterface_()

template<class MDTraits , class CouplingManager >
template<class CouplingContext >
static Scalar Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::pressureAtInterface_ ( const FVElementGeometry< freeFlowMomentumIndex > &  fvGeometry,
const SubControlVolumeFace< freeFlowMomentumIndex > &  scvf,
const ElementVolumeVariables< freeFlowMomentumIndex > &  elemVolVars,
const CouplingContext &  context 
)
inlinestaticprotected

Returns the pressure at the interface.

◆ transmissibility_()

template<class MDTraits , class CouplingManager >
template<std::size_t i, std::size_t j>
Scalar Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::transmissibility_ ( Dune::index_constant< i >  domainI,
Dune::index_constant< j >  domainJ,
const Scalar  insideDistance,
const Scalar  outsideDistance,
const Scalar  avgQuantityI,
const Scalar  avgQuantityJ,
const DiffusionCoefficientAveragingType  diffCoeffAvgType 
) const
inlineprotected

Returns the transmissibility used for either molecular diffusion or thermal conductivity.

Member Data Documentation

◆ freeFlowMassIndex

template<class MDTraits , class CouplingManager >
constexpr auto Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::freeFlowMassIndex = CouplingManager::freeFlowMassIndex
staticconstexpr

◆ freeFlowMomentumIndex

template<class MDTraits , class CouplingManager >
constexpr auto Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::freeFlowMomentumIndex = CouplingManager::freeFlowMomentumIndex
staticconstexpr

◆ porousMediumIndex

template<class MDTraits , class CouplingManager >
constexpr auto Dumux::FreeFlowPorousMediumCouplingConditionsImplementationBase< MDTraits, CouplingManager >::porousMediumIndex = CouplingManager::porousMediumIndex
staticconstexpr

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