# PorousFlowHeatEnergy

Calculates the sum of heat energy of fluid phase(s) and/or the porous skeleton in a region

This Postprocessor calculates the heat energy of fluid phase(s) using where all variables are defined in nomenclature.

The phases that the heat energy is summed over can be entered in the phase input parameter. Multiple indices can be entered.

By default, the additional heat energy due to the porous material is added to the heat energy of the fluid phase(s). This contribution can be ignored by setting include_porous_skeleton = false.

## 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.

### Required Parameters

• phaseThe index(es) of the fluid phase that this Postprocessor is restricted to. Multiple indices can be entered.

C++ Type:std::vector

Options:

Description:The index(es) of the fluid phase that this Postprocessor is restricted to. Multiple indices can be entered.

• execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM.

Default:TIMESTEP_END

C++ Type:ExecFlagEnum

Options:NONE INITIAL LINEAR NONLINEAR TIMESTEP_END TIMESTEP_BEGIN FINAL CUSTOM

Description:The list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM.

• include_porous_skeletonTrueInclude the heat energy of the porous skeleton

Default:True

C++ Type:bool

Options:

Description:Include the heat energy of the porous skeleton

• kernel_variable_number0The PorousFlow variable number (according to the dictatory) of the heat-energy kernel. This is required only in the unusual situation where a variety of different finite-element interpolation schemes are employed in the simulation

Default:0

C++ Type:unsigned int

Options:

Description:The PorousFlow variable number (according to the dictatory) of the heat-energy kernel. This is required only in the unusual situation where a variety of different finite-element interpolation schemes are employed in the simulation

• 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.

• allow_duplicate_execution_on_initialFalseIn the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

Default:False

C++ Type:bool

Options:

Description:In the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

• use_displaced_meshTrueWhether 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:True

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.

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

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

• 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