www.mooseframework.org
PorousFlowRelativePermeabilityBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
19 template <bool is_ad>
21 {
22 public:
24 
26 
27 protected:
28  virtual void computeQpProperties() override;
29 
36 
43 
49  virtual Real dRelativePermeability(Real seff) const = 0;
50 
52  const Real _scaling;
53 
56 
59 
62 
64  const Real _s_res;
65 
68 
70  const Real _dseff_ds;
71 };
72 
virtual Real dRelativePermeability(Real seff) const =0
Derivative of relative permeability with respect to effective saturation.
const GenericMaterialProperty< std::vector< Real >, is_ad > & _saturation
Saturation material property.
virtual GenericReal< is_ad > relativePermeability(GenericReal< is_ad > seff) const =0
Relative permeability equation (must be overriden in derived class)
MaterialProperty< Real > *const _drelative_permeability_ds
Derivative of relative permeability wrt phase saturation.
const Real _sum_s_res
Sum of residual saturations over all phases.
PorousFlowRelativePermeabilityBaseTempl< true > ADPorousFlowRelativePermeabilityBase
const Real _scaling
Relative permeability is multiplied by this quantity.
const Real _s_res
Residual saturation of specified phase.
Base class for all PorousFlow materials that provide phase-dependent properties.
Base class for PorousFlow relative permeability materials.
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
virtual GenericReal< is_ad > effectiveSaturation(GenericReal< is_ad > saturation) const
Effective saturation of fluid phase.
PorousFlowRelativePermeabilityBaseTempl(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _dseff_ds
Derivative of effective saturation with respect to saturation.
PorousFlowRelativePermeabilityBaseTempl< false > PorousFlowRelativePermeabilityBase
typename Moose::GenericType< Real, is_ad > GenericReal
GenericMaterialProperty< Real, is_ad > & _relative_permeability
Relative permeability material property.