https://mooseframework.inl.gov
PorousFlowRogersStallybrassClementsTest.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "gtest/gtest.h"
11 
13 
14 const double eps = 1.0E-8;
15 
17 {
18  EXPECT_NEAR(0.0, PorousFlowRogersStallybrassClements::effectiveSaturation(50, 0.7, 0.5), 1.0E-5);
19  EXPECT_NEAR(std::pow(2.0, -0.5),
21  1.0E-5);
22  EXPECT_NEAR(std::pow(1.0 + std::exp(1.0), -0.5),
24  1.0E-5);
25  EXPECT_NEAR(1.0, PorousFlowRogersStallybrassClements::effectiveSaturation(-50, 0.7, 0.5), 1.0E-5);
26 }
27 
29 {
30  Real fd;
31  EXPECT_NEAR(0.0, PorousFlowRogersStallybrassClements::dEffectiveSaturation(50, 0.7, 0.5), 1.0E-5);
34  eps;
35  EXPECT_NEAR(fd, PorousFlowRogersStallybrassClements::dEffectiveSaturation(1.1, 1.1, 4.4), 1.0E-5);
38  eps;
39  EXPECT_NEAR(fd, PorousFlowRogersStallybrassClements::dEffectiveSaturation(5.5, 1.1, 4.4), 1.0E-5);
40  EXPECT_NEAR(
42 }
43 
45 {
46  Real fd;
47  EXPECT_NEAR(
51  eps;
52  EXPECT_NEAR(
56  eps;
57  EXPECT_NEAR(
59  EXPECT_NEAR(
61 }
Real dEffectiveSaturation(Real pc, Real shift, Real scale)
Derivative of effective saturation wrt capillary pressure.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Rogers-Stallybrass-Clements version of effective saturation as a function of capillary pressure...
Real d2EffectiveSaturation(Real pc, Real shift, Real scale)
Second derivative of effective saturation wrt capillary pressure.
Real effectiveSaturation(Real pc, Real shift, Real scale)
Effective saturation as a function of capillary pressure.
MooseUnits pow(const MooseUnits &, int)
TEST(PorousFlowRogersStallybrassClements, sat)