https://mooseframework.inl.gov
PorousFlowPorosityLinear.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 "PorousFlowPorosityBase.h"
13 
20 {
21 public:
23 
24  PorousFlowPorosityLinear(const InputParameters & parameters);
25 
26  virtual void initialSetup() override;
27 
28 protected:
29  virtual void initQpStatefulProperties() override;
30  virtual void computeQpProperties() override;
31 
34 
37 
40 
43 
46 
49 
51  const Real _P_coeff;
52 
54  const Real _T_coeff;
55 
58 
60  const bool _uses_volstrain;
61 
64 
67 
69  const bool _uses_pf;
70 
75 
80 
82  const bool _uses_T;
83 
88 
93 
96 };
const bool _strain_at_nearest_qp
When calculating nodal porosity, use the strain at the nearest quadpoint to the node.
Material designed to provide the porosity in PorousFlow simulations porosity_ref + P_coeff * (P - P_r...
const OptionalMaterialProperty< Real > & _temperature_nodal
Temperature at the quadpoints or nodes.
const VariableValue & _T_ref
Reference temperature.
const OptionalMaterialProperty< std::vector< Real > > & _dpf_dvar_nodal
d(effective porepressure)/(d porflow variable)
virtual void initialSetup() override
const Real _P_coeff
coefficient of effective porepressure
const Real _T_coeff
coefficient of temperature
const VariableValue & _epv_ref
Reference volumetric strain.
const OptionalMaterialProperty< Real > & _vol_strain_qp
Strain (first const means we never want to dereference and change the value, second means we&#39;ll alway...
const MaterialProperty< std::vector< Real > > * _dtemperature_dvar
const OptionalMaterialProperty< std::vector< Real > > & _dtemperature_dvar_qp
PorousFlowPorosityLinear(const InputParameters &parameters)
static InputParameters validParams()
const OptionalMaterialProperty< Real > & _pf_qp
const bool _uses_pf
whether P_coeff has been set
const OptionalMaterialProperty< std::vector< Real > > & _dpf_dvar_qp
Base class Material designed to provide the porosity.
const MaterialProperty< Real > * _temperature
const bool _uses_T
whether T_coeff has been set
const Real _epv_coeff
coefficient of volumetric strain
const bool _uses_volstrain
whether epv_coeff has been set
const Real _porosity_min
If the linear relationship produces porosity < _porosity_min, then porosity is set to _porosity_min...
OutputTools< Real >::VariableValue VariableValue
const MaterialProperty< std::vector< Real > > * _dpf_dvar
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void initQpStatefulProperties() override
const Real _zero_modifier
If the linear relationship produces porosity < _porosity_min, then porosity is set to _porosity_min...
const VariableValue & _P_ref
Reference effective porepressure.
const VariableValue & _phi_ref
Porosity at reference porepressure, temperature and volumetric strain.
const OptionalMaterialProperty< Real > & _pf_nodal
Effective porepressure at the quadpoints or nodes.
const OptionalMaterialProperty< std::vector< Real > > & _dtemperature_dvar_nodal
d(temperature)/(d porflow variable)
const OptionalMaterialProperty< std::vector< RealGradient > > & _dvol_strain_qp_dvar
d(strain)/(dvar) (first const means we never want to dereference and change the value, second means we&#39;ll always be pointing to the same address after initialization (like a reference))
virtual void computeQpProperties() override
const MaterialProperty< Real > * _pf
const OptionalMaterialProperty< Real > & _temperature_qp