# PorousFlowPorosity

This Material calculates the porosity PorousFlow simulations

This Material computes porosity (at the nodes or quadpoints, depending on the at_nodes flag): (1) A full description is provided in the porosity documentation

Flags provided to PorousFlowPorosity control its evolution.

• If mechanical = true then the porosity will depend on . Otherwise that term in Eq. (1) is ignored.

• If fluid = true then the porosity will depend on . Otherwise that term in Eq. (1) is ignored.

• If thermal = true then the porosity will depend on . Otherwise that term in Eq. (1) is ignored.

• If chemical = true then porosity will depend on . Otherwise that term in Eq. (1) is ignored.

## Input Parameters

• PorousFlowDictatorThe UserObject that holds the list of PorousFlow variable names

C++ Type:UserObjectName

Options:

Description:The UserObject that holds the list of PorousFlow variable names

• porosity_zeroThe porosity at zero volumetric strain and reference temperature and reference effective porepressure and reference chemistry. This must be a real number or a constant monomial variable (not a linear lagrange or other type of variable)

C++ Type:std::vector

Options:

Description:The porosity at zero volumetric strain and reference temperature and reference effective porepressure and reference chemistry. This must be a real number or a constant monomial variable (not a linear lagrange or other type of variable)

### Required Parameters

Default:False

C++ Type:bool

Options:

• computeTrueWhen false, MOOSE will not call compute methods on this material. The user must call computeProperties() after retrieving the Material via MaterialPropertyInterface::getMaterial(). Non-computed Materials are not sorted for dependencies.

Default:True

C++ Type:bool

Options:

Description:When false, MOOSE will not call compute methods on this material. The user must call computeProperties() after retrieving the Material via MaterialPropertyInterface::getMaterial(). Non-computed Materials are not sorted for dependencies.

• solid_bulkBulk modulus of the drained porous solid skeleton (only used if fluid=true)

C++ Type:double

Options:

Description:Bulk modulus of the drained porous solid skeleton (only used if fluid=true)

• reference_chemistryReference values of the solid mineral concentrations (m^3(precipitate)/m^3(porous material)), entered as a vector (one value per mineral). (Only used if chemical=true)

C++ Type:std::vector

Options:

Description:Reference values of the solid mineral concentrations (m^3(precipitate)/m^3(porous material)), entered as a vector (one value per mineral). (Only used if chemical=true)

• strain_at_nearest_qpFalseWhen calculating nodal porosity that depends on strain, use the strain at the nearest quadpoint. This adds a small extra computational burden, and is not necessary for simulations involving only linear lagrange elements. If you set this to true, you will also want to set the same parameter to true for related Kernels and Materials

Default:False

C++ Type:bool

Options:

Description:When calculating nodal porosity that depends on strain, use the strain at the nearest quadpoint. This adds a small extra computational burden, and is not necessary for simulations involving only linear lagrange elements. If you set this to true, you will also want to set the same parameter to true for related Kernels and Materials

• initial_mineral_concentrationsInitial mineral concentrations (m^3(precipitate)/m^3(porous material)), entered as a vector (one value per mineral). (Only used if chemical=true)

C++ Type:std::vector

Options:

Description:Initial mineral concentrations (m^3(precipitate)/m^3(porous material)), entered as a vector (one value per mineral). (Only used if chemical=true)

• ensure_positiveTrueModify the usual exponential relationships that governs porosity so that porosity is always positive

Default:True

C++ Type:bool

Options:

Description:Modify the usual exponential relationships that governs porosity so that porosity is always positive

• thermal_expansion_coeffVolumetric thermal expansion coefficient of the drained porous solid skeleton (only used if thermal=true)

C++ Type:double

Options:

Description:Volumetric thermal expansion coefficient of the drained porous solid skeleton (only used if thermal=true)

• fluidFalseIf true, porosity will be a function of effective porepressure

Default:False

C++ Type:bool

Options:

Description:If true, porosity will be a function of effective porepressure

• reference_temperatureReference temperature (only used if thermal=true)

C++ Type:std::vector

Options:

Description:Reference temperature (only used if thermal=true)

• chemicalFalseIf true, porosity will be a function of precipitate

Default:False

C++ Type:bool

Options:

Description:If true, porosity will be a function of precipitate

• thermalFalseIf true, porosity will be a function of temperature

Default:False

C++ Type:bool

Options:

Description:If true, porosity will be a function of temperature

• mechanicalFalseIf true, porosity will be a function of total volumetric strain

Default:False

C++ Type:bool

Options:

Description:If true, porosity will be a function of total volumetric strain

• boundaryThe list of boundary IDs from the mesh where this boundary condition applies

C++ Type:std::vector

Options:

Description:The list of boundary IDs from the mesh where this boundary condition applies

• chemical_weightsWhen chemical=true, porosity is a linear combination of the solid mineral concentrations multiplied by these weights. Default=1 for all minerals.

C++ Type:std::vector

Options:

Description:When chemical=true, porosity is a linear combination of the solid mineral concentrations multiplied by these weights. Default=1 for all minerals.

• biot_coefficient1Biot coefficient

Default:1

C++ Type:double

Options:

Description:Biot coefficient

• reference_porepressureReference porepressure (only used if fluid=true)

C++ Type:std::vector

Options:

Description:Reference porepressure (only used if fluid=true)

• blockThe list of block ids (SubdomainID) that this object will be applied

C++ Type:std::vector

Options:

Description:The list of block ids (SubdomainID) that this object will be applied

### Optional Parameters

• enableTrueSet the enabled status of the MooseObject.

Default:True

C++ Type:bool

Options:

Description:Set the enabled status of the MooseObject.

• use_displaced_meshFalseWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

Default:False

C++ Type:bool

Options:

Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

• control_tagsAdds user-defined labels for accessing object parameters via control logic.

C++ Type:std::vector

Options:

Description:Adds user-defined labels for accessing object parameters via control logic.

• seed0The seed for the master random number generator

Default:0

C++ Type:unsigned int

Options:

Description:The seed for the master random number generator

• implicitTrueDetermines whether this object is calculated using an implicit or explicit form

Default:True

C++ Type:bool

Options:

Description:Determines whether this object is calculated using an implicit or explicit form

• constant_onNONEWhen ELEMENT, MOOSE will only call computeQpProperties() for the 0th quadrature point, and then copy that value to the other qps.When SUBDOMAIN, MOOSE will only call computeSubdomainProperties() for the 0th quadrature point, and then copy that value to the other qps. Evaluations on element qps will be skipped

Default:NONE

C++ Type:MooseEnum

Options:NONE ELEMENT SUBDOMAIN

Description:When ELEMENT, MOOSE will only call computeQpProperties() for the 0th quadrature point, and then copy that value to the other qps.When SUBDOMAIN, MOOSE will only call computeSubdomainProperties() for the 0th quadrature point, and then copy that value to the other qps. Evaluations on element qps will be skipped

• output_propertiesList of material properties, from this material, to output (outputs must also be defined to an output type)

C++ Type:std::vector

Options:

Description:List of material properties, from this material, to output (outputs must also be defined to an output type)

• outputsnone Vector of output names were you would like to restrict the output of variables(s) associated with this object

Default:none

C++ Type:std::vector

Options:

Description:Vector of output names were you would like to restrict the output of variables(s) associated with this object