https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14const 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
43
TEST(PorousFlowRogersStallybrassClements, sat)
Rogers-Stallybrass-Clements version of effective saturation as a function of capillary pressure.
Real dEffectiveSaturation(Real pc, Real shift, Real scale)
Derivative of effective saturation wrt 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.