www.mooseframework.org
PorousFlowHeatEnergy.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef POROUSFLOWHEATENERGY_H
9 #define POROUSFLOWHEATENERGY_H
10 
11 #include "ElementIntegralVariablePostprocessor.h"
12 #include "PorousFlowDictator.h"
13 
14 // Forward Declarations
16 
17 template <>
18 InputParameters validParams<PorousFlowHeatEnergy>();
19 
24 class PorousFlowHeatEnergy : public ElementIntegralPostprocessor
25 {
26 public:
27  PorousFlowHeatEnergy(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeIntegral() override;
31  virtual Real computeQpIntegral() override;
32 
35 
37  const unsigned int _num_phases;
38 
40  const bool _fluid_present;
41 
44 
46  std::vector<unsigned int> _phase_index;
47 
49  const MaterialProperty<Real> & _porosity;
50 
52  const MaterialProperty<Real> & _rock_energy_nodal;
53 
55  const MaterialProperty<std::vector<Real>> * const _fluid_density;
56 
58  const MaterialProperty<std::vector<Real>> * const _fluid_saturation_nodal;
59 
61  const MaterialProperty<std::vector<Real>> * const _energy_nodal;
62 
64  MooseVariable * const _var;
65 };
66 
67 #endif // POROUSFLOWHEATENERGY_H
const MaterialProperty< std::vector< Real > > *const _fluid_density
nodal fluid density
InputParameters validParams< PorousFlowHeatEnergy >()
virtual Real computeQpIntegral() override
const bool _fluid_present
Whether fluid is present.
const MaterialProperty< Real > & _porosity
Porosity.
const MaterialProperty< Real > & _rock_energy_nodal
nodal rock energy density
Postprocessor produces the sum of heat energy of the porous skeleton and/or fluid components in a reg...
const PorousFlowDictator & _dictator
Holds info on the PorousFlow variables.
const unsigned int _num_phases
Number of fluid phases.
MooseVariable *const _var
the variable for the corresponding PorousFlowEnergyTimeDerivative Kernel: this provides test function...
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const MaterialProperty< std::vector< Real > > *const _energy_nodal
internal energy of the phases, evaluated at the nodes
std::vector< unsigned int > _phase_index
The phase indices that this Postprocessor is restricted to.
const bool _include_porous_skeleton
Whether to include the heat energy of the porous skeleton in the calculations.
virtual Real computeIntegral() override
PorousFlowHeatEnergy(const InputParameters &parameters)
const MaterialProperty< std::vector< Real > > *const _fluid_saturation_nodal
nodal fluid saturation