https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13
20{
21public:
23
24 PorousFlowPorosityLinear(const InputParameters & parameters);
25
26 virtual void initialSetup() override;
27
28protected:
29 virtual void initQpStatefulProperties() override;
30 virtual void computeQpProperties() override;
31
37 virtual void computeUnboundedPorosityQp();
38
41
44
47
50
53
55 const Real _P_coeff;
56
58 const Real _T_coeff;
59
61 const Real _epv_coeff;
62
64 const bool _uses_volstrain;
65
68
71
73 const bool _uses_pf;
74
79
84
86 const bool _uses_T;
87
92
97};
Base class Material designed to provide the porosity.
Material designed to provide the porosity in PorousFlow simulations porosity_ref + P_coeff * (P - P_r...
virtual void initQpStatefulProperties() override
const OptionalMaterialProperty< Real > & _pf_nodal
Effective porepressure at the quadpoints or nodes.
const Real _P_coeff
coefficient of effective porepressure
const OptionalMaterialProperty< Real > & _pf_qp
const VariableValue & _P_ref
Reference effective porepressure.
const bool _uses_T
whether T_coeff has been set
const OptionalMaterialProperty< std::vector< RealGradient > > & _dvol_strain_qp_dvar
d(strain)/(dvar) (first const means we never want to dereference and change the value,...
const bool _uses_volstrain
whether epv_coeff has been set
const Real _T_coeff
coefficient of temperature
static InputParameters validParams()
const OptionalMaterialProperty< std::vector< Real > > & _dtemperature_dvar_qp
const VariableValue & _phi_ref
Porosity at reference porepressure, temperature and volumetric strain.
const MaterialProperty< std::vector< Real > > * _dtemperature_dvar
virtual void computeQpProperties() override
const VariableValue & _epv_ref
Reference volumetric strain.
const OptionalMaterialProperty< std::vector< Real > > & _dtemperature_dvar_nodal
d(temperature)/(d porflow variable)
virtual void initialSetup() override
const OptionalMaterialProperty< std::vector< Real > > & _dpf_dvar_nodal
d(effective porepressure)/(d porflow variable)
const OptionalMaterialProperty< std::vector< Real > > & _dpf_dvar_qp
const bool _strain_at_nearest_qp
When calculating nodal porosity, use the strain at the nearest quadpoint to the node.
const OptionalMaterialProperty< Real > & _vol_strain_qp
Strain (first const means we never want to dereference and change the value, second means we'll alway...
const MaterialProperty< Real > * _pf
const bool _uses_pf
whether P_coeff has been set
virtual void computeUnboundedPorosityQp()
Computes porosity and its derivatives at the current node or quadrature point, without applying the p...
const MaterialProperty< std::vector< Real > > * _dpf_dvar
const MaterialProperty< Real > * _temperature
const VariableValue & _T_ref
Reference temperature.
const Real _epv_coeff
coefficient of volumetric strain
const OptionalMaterialProperty< Real > & _temperature_qp
const OptionalMaterialProperty< Real > & _temperature_nodal
Temperature at the quadpoints or nodes.
VariableValueTempl< false > VariableValue