13#ifndef DUMUX_MATERIAL_FLUIDMATRIX_INTERACTIONS_FLUIDMATRIX_INTERACTION_HH
14#define DUMUX_MATERIAL_FLUIDMATRIX_INTERACTIONS_FLUIDMATRIX_INTERACTION_HH
26template<
class... Laws>
38template<
class... Laws>
53template<
class A,
template<
class>
class Wrapper>
56 template<
class T, std::enable_if_t<std::is_same_v<A, std::decay_t<T>>,
int> = 0>
57 friend auto wrap(T&& t) {
return Wrapper(std::forward<T>(t)); }
68 using Scalar =
typename std::decay_t<T>::Scalar;
72 PcKrSw(T&& impl) : impl_(std::forward<T>(impl)) {}
108 using Scalar =
typename std::decay_t<T>::Scalar;
139 using Scalar =
typename std::decay_t<T>::Scalar;
Wrapper type for adsorption laws.
Definition: fluidmatrixinteraction.hh:247
T value_type
Definition: fluidmatrixinteraction.hh:249
Adsorption(T &&impl)
Definition: fluidmatrixinteraction.hh:251
const T & adsorptionModel() const
Definition: fluidmatrixinteraction.hh:252
Wrapper type for multiphase interface laws providing pc-S and kr-S rules.
Definition: fluidmatrixinteraction.hh:106
auto relativePermeabilities(const FS &fs, int wp) const
Definition: fluidmatrixinteraction.hh:115
MultiPhasePcKrSw(T &&impl)
Definition: fluidmatrixinteraction.hh:110
const T & multiPhasePcKrS() const
Definition: fluidmatrixinteraction.hh:117
auto capillaryPressures(const FS &fs, int wp) const
Definition: fluidmatrixinteraction.hh:113
typename std::decay_t< T >::Scalar Scalar
Definition: fluidmatrixinteraction.hh:108
Wrapper type for laws providing rules for the nonwetting-solid interfacial area.
Definition: fluidmatrixinteraction.hh:223
const T & nonwettingSolidInterface() const
Definition: fluidmatrixinteraction.hh:226
NonwettingSolidInterfacialAreaPcSw(T &&impl)
Definition: fluidmatrixinteraction.hh:225
Wrapper type for laws providing pc-Sw and kr-Sw rules.
Definition: fluidmatrixinteraction.hh:66
const T & krSwCurve() const
Definition: fluidmatrixinteraction.hh:85
Scalar krn(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:81
Scalar pc(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:74
PcKrSw(T &&impl)
Definition: fluidmatrixinteraction.hh:72
Scalar dsw_dpc(const Scalar pc) const
Definition: fluidmatrixinteraction.hh:78
Scalar sw(const Scalar pc) const
Definition: fluidmatrixinteraction.hh:77
Scalar dpc_dsw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:75
Scalar krw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:79
T PcKrSwType
Definition: fluidmatrixinteraction.hh:70
typename std::decay_t< T >::Scalar Scalar
Definition: fluidmatrixinteraction.hh:68
Scalar dkrn_dsw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:82
const T & pcSwCurve() const
Definition: fluidmatrixinteraction.hh:84
Scalar dkrw_dsw(const Scalar sw) const
Definition: fluidmatrixinteraction.hh:80
Scalar endPointPc() const
Definition: fluidmatrixinteraction.hh:76
Wrapper type for laws providing rules for the wetting-nonwetting interfacial area.
Definition: fluidmatrixinteraction.hh:177
const T & wettingNonwettingInterface() const
Definition: fluidmatrixinteraction.hh:180
WettingNonwettingInterfacialAreaPcSw(T &&impl)
Definition: fluidmatrixinteraction.hh:179
Wrapper type for laws providing rules for the wetting-solid interfacial area.
Definition: fluidmatrixinteraction.hh:200
WettingSolidInterfacialAreaPcSw(T &&impl)
Definition: fluidmatrixinteraction.hh:202
const T & wettingSolidInterface() const
Definition: fluidmatrixinteraction.hh:203
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:39
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:55
friend auto wrap(T &&t)
Definition: fluidmatrixinteraction.hh:57
Wrapper type for 3p interface laws providing pc-S and kr-S rules.
Definition: fluidmatrixinteraction.hh:138
Scalar kr(const int phaseIdx, const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:154
Scalar krw(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:151
Scalar krg(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:153
const T & krSwCurve() const
Definition: fluidmatrixinteraction.hh:157
T value_type
Definition: fluidmatrixinteraction.hh:140
ThreePhasePcKrSw(T &&impl)
Definition: fluidmatrixinteraction.hh:144
T PcKrSwType
Definition: fluidmatrixinteraction.hh:142
Scalar pcgn(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:148
typename std::decay_t< T >::Scalar Scalar
Definition: fluidmatrixinteraction.hh:139
Scalar krn(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:152
Scalar pcgw(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:146
Scalar pcnw(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:147
Scalar pcAlpha(const Scalar sw, const Scalar sn) const
Definition: fluidmatrixinteraction.hh:149
const T & pcSwCurve() const
Definition: fluidmatrixinteraction.hh:156
Wrapper type to combine an arbitrary number of different laws for fluid-matrix interaction (e....
Definition: fluidmatrixinteraction.hh:28
FluidMatrixInteraction(Laws &&... laws)
Definition: fluidmatrixinteraction.hh:29