10#include "gtest/gtest.h"
14const double eps = 1.0E-8;
16TEST(PorousFlowFLACrelpermTest, relperm)
24TEST(PorousFlowFLACrelpermTest, drelperm)
39TEST(PorousFlowFLACrelpermTest, d2relperm)
54TEST(PorousFlowFLACrelpermTest, adrelperm)
57 sat.derivatives() = {};
65 EXPECT_NEAR(adrelperm.value(), relperm, 1.0E-5);
66 EXPECT_NEAR(adrelperm.derivatives()[0], drelperm, 1.0E-5);
DualNumber< Real, DNDerivativeType, true > ADReal
TEST(PorousFlowFLACrelpermTest, relperm)
void derivInsert(SemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< N > > &derivs, libMesh::dof_id_type index, Real value)
Real d2RelativePermeability(Real seff, Real m)
Second derivative of relative permeability with respect to effective saturation.
Real dRelativePermeability(Real seff, Real m)
Derivative of relative permeability with respect to effective saturation.
T relativePermeability(const T &seff, Real m)
Relative permeability as a function of effective saturation.