https://mooseframework.inl.gov
PorousFlowHystereticRelativePermeabilityBase.h
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 #pragma once
11 
12 #include "PorousFlowMaterialBase.h"
13 #include "PorousFlowConstants.h"
14 
19 {
20 public:
22 
24 
25 protected:
27  const Real _s_lr;
28 
30  const Real _s_gr_max;
31 
33  const Real _m;
34 
37 
40 
43 
47 
50 
53 
56 
57  virtual void initQpStatefulProperties() override;
58  virtual void computeQpProperties() override;
59 
65  virtual void computeRelPermQp() = 0;
66 
72  virtual void computeTurningPoint0Info(Real tp_sat);
73 
74 private:
80  Real landSat(Real slDel) const;
81 };
const Real _s_lr
Liquid saturation at which the liquid relperm is zero and the gas relperm is k_rg_max.
Base material for computing relative permeability for 1-phase and 2-phase hysteretic models...
virtual void computeRelPermQp()=0
Compute the relative permeability and its derivative wrt the _phase_num saturation, at the quadpoints, and store the result in _relative_permeability[_qp] and _drelative_permeability_ds[_qp].
MaterialProperty< Real > & _s_gr_tp0
Computed nodal or quadpoint values the Land expression, at the turning point from primary drying to f...
Base class for all PorousFlow materials that provide phase-dependent properties.
const MaterialProperty< unsigned > & _hys_order
Hysteresis order, as computed by PorousFlowHysteresisOrder.
const MaterialProperty< unsigned > & _hys_order_old
Old value of hysteresis order, as computed by PorousFlowHysteresisOrder.
const MaterialProperty< std::vector< Real > > & _saturation
Saturation material property.
virtual void computeTurningPoint0Info(Real tp_sat)
Compute all relevant quantities at the zeroth turning point (the transition from primary drying to fi...
MaterialProperty< Real > & _relative_permeability
Computed relative permeability.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MaterialProperty< Real > & _drelative_permeability_ds
Derivative of relative permeability wrt the saturation of _phase_num (which is not necessarily the li...
const MaterialProperty< std::array< Real, PorousFlowConstants::MAX_HYSTERESIS_ORDER > > & _hys_sat_tps
Saturation values at the turning points, as computed by PorousFlowHysteresisOrder.