10 #include "gtest/gtest.h" 17 TEST(PorousFlowBrooksCoreyTest, sat)
27 TEST(PorousFlowBrooksCoreyTest, dsat)
40 TEST(PorousFlowBrooksCoreyTest, d2sat)
53 TEST(PorousFlowBrooksCoreyTest, cap)
62 TEST(PorousFlowBrooksCoreyTest, dcap)
73 TEST(PorousFlowBrooksCoreyTest, d2cap)
84 TEST(PorousFlowBrooksCoreyTest, relpermw)
88 const Real relperm =
std::pow(0.3, (2.0 + 3.0 * 2.5) / 2.5);
92 TEST(PorousFlowBrooksCoreyTest, drelpermw)
103 TEST(PorousFlowBrooksCoreyTest, relpermnw)
107 const Real relperm = 0.3 * 0.3 * (1.0 -
std::pow(1.0 - 0.3, (2.0 + 2.5) / 2.5));
111 TEST(PorousFlowBrooksCoreyTest, drelpermnw)
122 TEST(PorousFlowBrooksCoreyTest, adrelpermw)
132 EXPECT_NEAR(adrelperm.value(), relperm,
tol);
133 EXPECT_NEAR(adrelperm.derivatives()[0], drelperm,
tol);
136 TEST(PorousFlowBrooksCoreyTest, adrelpermnw)
146 EXPECT_NEAR(adrelperm.value(), relperm,
tol);
147 EXPECT_NEAR(adrelperm.derivatives()[0], drelperm,
tol);
Real capillaryPressure(Real seff, Real pe, Real lambda, Real pc_max)
Capillary pressure as a function of effective saturation.
Real dRelativePermeabilityNW(Real seff, Real lambda)
Derivative of relative permeability of the non-wetting phase wrt to effective saturation.
Real effectiveSaturation(Real pc, Real pe, Real lambda)
Effective saturation as a function of capillary pressure Note: seff = 1 for p >= 0.
T relativePermeabilityW(const T &seff, Real lambda)
Relative permeability of the wetting phase as a function of effective saturation. ...
Real dCapillaryPressure(Real seff, Real pe, Real lambda, Real pc_max)
Derivative of capillary pressure wrt effective saturation.
T relativePermeabilityNW(const T &seff, Real lambda)
Relative permeability of the non-wetting phase as a function of effective saturation.
DualNumber< Real, DNDerivativeType, true > ADReal
TEST(PorousFlowBrooksCoreyTest, sat)
Real d2CapillaryPressure(Real seff, Real pe, Real lambda, Real pc_max)
Second derivative of capillary pressure wrt effective saturation.
Real dEffectiveSaturation(Real pc, Real pe, Real lambda)
Derivative of effective saturation wrt porepressure.
Real dRelativePermeabilityW(Real seff, Real lambda)
Derivative of relative permeability of the wetting phase wrt to effective saturation.
Real d2EffectiveSaturation(Real pc, Real pe, Real lambda)
Second derivative of effective saturation wrt porepressure.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void derivInsert(SemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< N >> &derivs, libMesh::dof_id_type index, Real value)
MooseUnits pow(const MooseUnits &, int)