14#ifndef DUMUX_MATERIAL_FLUIDMATRIX_INTERACTIONS_FLUIDMATRIX_INTERACTION_HH
15#define DUMUX_MATERIAL_FLUIDMATRIX_INTERACTIONS_FLUIDMATRIX_INTERACTION_HH
27template<
class... Laws>
39template<
class... Laws>
54template<
class A,
template<
class>
class Wrapper>
57 template<
class T, std::enable_if_t<std::is_same_v<A, std::decay_t<T>>,
int> = 0>
58 friend auto wrap(T&& t) {
return Wrapper(std::forward<T>(t)); }
69 using Scalar =
typename std::decay_t<T>::Scalar;
73 explicit PcKrSw(T&& impl) : impl_(std::forward<T>(impl)) {}
109 using Scalar =
typename std::decay_t<T>::Scalar;
140 using Scalar =
typename std::decay_t<T>::Scalar;
252 explicit Adsorption(T&& impl) : impl_(std::forward<T>(impl)) {}
Wrapper type for adsorption laws.
Definition: fluidmatrixinteraction.hh:248
T value_type
Definition: fluidmatrixinteraction.hh:250
Adsorption(T &&impl)
Definition: fluidmatrixinteraction.hh:252
const T & adsorptionModel() const
Definition: fluidmatrixinteraction.hh:253
Wrapper type for multiphase interface laws providing pc-S and kr-S rules.
Definition: fluidmatrixinteraction.hh:107
auto relativePermeabilities(const FS &fs, int wp) const
Definition: fluidmatrixinteraction.hh:116
MultiPhasePcKrSw(T &&impl)
Definition: fluidmatrixinteraction.hh:111
const T & multiPhasePcKrS() const
Definition: fluidmatrixinteraction.hh:118
auto capillaryPressures(const FS &fs, int wp) const
Definition: fluidmatrixinteraction.hh:114
typename std::decay_t< T >::Scalar Scalar
Definition: fluidmatrixinteraction.hh:109
Wrapper type for laws providing rules for the nonwetting-solid interfacial area.
Definition: fluidmatrixinteraction.hh:224
const T & nonwettingSolidInterface() const
Definition: fluidmatrixinteraction.hh:227
NonwettingSolidInterfacialAreaPcSw(T &&impl)
Definition: fluidmatrixinteraction.hh:226
Wrapper type for laws providing pc-Sw and kr-Sw rules.
Definition: fluidmatrixinteraction.hh:67
const T & krSwCurve() const
Definition: fluidmatrixinteraction.hh:86
Scalar krn(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:82
Scalar pc(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:75
PcKrSw(T &&impl)
Definition: fluidmatrixinteraction.hh:73
Scalar dsw_dpc(const Scalar pc) const
Definition: fluidmatrixinteraction.hh:79
Scalar sw(const Scalar pc) const
Definition: fluidmatrixinteraction.hh:78
Scalar dpc_dsw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:76
Scalar krw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:80
T PcKrSwType
Definition: fluidmatrixinteraction.hh:71
typename std::decay_t< T >::Scalar Scalar
Definition: fluidmatrixinteraction.hh:69
Scalar dkrn_dsw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:83
const T & pcSwCurve() const
Definition: fluidmatrixinteraction.hh:85
Scalar dkrw_dsw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:81
Scalar endPointPc() const
Definition: fluidmatrixinteraction.hh:77
Wrapper type for laws providing rules for the wetting-nonwetting interfacial area.
Definition: fluidmatrixinteraction.hh:178
const T & wettingNonwettingInterface() const
Definition: fluidmatrixinteraction.hh:181
WettingNonwettingInterfacialAreaPcSw(T &&impl)
Definition: fluidmatrixinteraction.hh:180
Wrapper type for laws providing rules for the wetting-solid interfacial area.
Definition: fluidmatrixinteraction.hh:201
WettingSolidInterfacialAreaPcSw(T &&impl)
Definition: fluidmatrixinteraction.hh:203
const T & wettingSolidInterface() const
Definition: fluidmatrixinteraction.hh:204
PcKrSw(T &&) -> PcKrSw< T >
Deduction guide for the PcKrSw class. Makes sure that PcKrSw stores a copy of T if the constructor is...
NonwettingSolidInterfacialAreaPcSw(T &&) -> NonwettingSolidInterfacialAreaPcSw< T >
Deduction guide for the NonwettingSolidInterfacialAreaPcSw class. Makes sure that NonwettingSolidInte...
WettingSolidInterfacialAreaPcSw(T &&) -> WettingSolidInterfacialAreaPcSw< T >
Deduction guide for the WettingSolidInterfacialAreaPcSw class. Makes sure that WettingSolidInterfacia...
ThreePhasePcKrSw(T &&) -> ThreePhasePcKrSw< T >
Deduction guide for the ThreePhasePcKrSw class. Makes sure that ThreePhasePcKrSw stores a copy of T i...
Adsorption(T &&) -> Adsorption< T >
Deduction guide for the Adsorption class. Makes sure that Adsorption stores a copy of T if the constr...
auto makeFluidMatrixInteraction(Laws &&... laws)
Helper function to create an FluidMatrixInteraction object containing an arbitrary number of fluid ma...
Definition: fluidmatrixinteraction.hh:40
MultiPhasePcKrSw(T &&) -> MultiPhasePcKrSw< T >
Deduction guide for the MultiPhasePcKrSw class. Makes sure that MultiPhasePcKrSw stores a copy of T i...
WettingNonwettingInterfacialAreaPcSw(T &&) -> WettingNonwettingInterfacialAreaPcSw< T >
Deduction guide for the WettingNonwettingInterfacialAreaPcSw class. Makes sure that WettingNonwetting...
Definition: brookscorey.hh:23
Adapter to inherit from, allowing the inheriting class to be wrapped by the makeFluidMatrixInteractio...
Definition: fluidmatrixinteraction.hh:56
friend auto wrap(T &&t)
Definition: fluidmatrixinteraction.hh:58
Wrapper type for 3p interface laws providing pc-S and kr-S rules.
Definition: fluidmatrixinteraction.hh:139
Scalar kr(const int phaseIdx, const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:155
Scalar krw(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:152
Scalar krg(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:154
const T & krSwCurve() const
Definition: fluidmatrixinteraction.hh:158
T value_type
Definition: fluidmatrixinteraction.hh:141
ThreePhasePcKrSw(T &&impl)
Definition: fluidmatrixinteraction.hh:145
T PcKrSwType
Definition: fluidmatrixinteraction.hh:143
Scalar pcgn(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:149
typename std::decay_t< T >::Scalar Scalar
Definition: fluidmatrixinteraction.hh:140
Scalar krn(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:153
Scalar pcgw(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:147
Scalar pcnw(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:148
Scalar pcAlpha(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:150
const T & pcSwCurve() const
Definition: fluidmatrixinteraction.hh:157
Wrapper type to combine an arbitrary number of different laws for fluid-matrix interaction (e....
Definition: fluidmatrixinteraction.hh:29
FluidMatrixInteraction(Laws &&... laws)
Definition: fluidmatrixinteraction.hh:30