www.mooseframework.org
PorousFlowHeatEnergy.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "ElementIntegralVariablePostprocessor.h"
13 #include "PorousFlowDictator.h"
14 
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 
PorousFlowHeatEnergy
Postprocessor produces the sum of heat energy of the porous skeleton and/or fluid components in a reg...
Definition: PorousFlowHeatEnergy.h:24
PorousFlowHeatEnergy::PorousFlowHeatEnergy
PorousFlowHeatEnergy(const InputParameters &parameters)
Definition: PorousFlowHeatEnergy.C:43
PorousFlowDictator.h
PorousFlowHeatEnergy::_var
MooseVariable *const _var
The variable for the corresponding PorousFlowEnergyTimeDerivative Kernel: this provides test function...
Definition: PorousFlowHeatEnergy.h:64
PorousFlowHeatEnergy::_phase_index
std::vector< unsigned int > _phase_index
The phase indices that this Postprocessor is restricted to.
Definition: PorousFlowHeatEnergy.h:46
PorousFlowHeatEnergy::_energy_nodal
const MaterialProperty< std::vector< Real > > *const _energy_nodal
Internal energy of the phases, evaluated at the nodes.
Definition: PorousFlowHeatEnergy.h:61
validParams< PorousFlowHeatEnergy >
InputParameters validParams< PorousFlowHeatEnergy >()
Definition: PorousFlowHeatEnergy.C:20
PorousFlowHeatEnergy::_dictator
const PorousFlowDictator & _dictator
PorousFlowDictator UserObject.
Definition: PorousFlowHeatEnergy.h:34
PorousFlowHeatEnergy::_num_phases
const unsigned int _num_phases
Number of fluid phases.
Definition: PorousFlowHeatEnergy.h:37
PorousFlowHeatEnergy::_include_porous_skeleton
const bool _include_porous_skeleton
Whether to include the heat energy of the porous skeleton in the calculations.
Definition: PorousFlowHeatEnergy.h:43
PorousFlowHeatEnergy::computeQpIntegral
virtual Real computeQpIntegral() override
Definition: PorousFlowHeatEnergy.C:129
PorousFlowHeatEnergy::_porosity
const MaterialProperty< Real > & _porosity
Porosity.
Definition: PorousFlowHeatEnergy.h:49
PorousFlowDictator
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
Definition: PorousFlowDictator.h:71
PorousFlowHeatEnergy::_fluid_present
const bool _fluid_present
Whether fluid is present.
Definition: PorousFlowHeatEnergy.h:40
PorousFlowHeatEnergy::_fluid_density
const MaterialProperty< std::vector< Real > > *const _fluid_density
Nodal fluid density.
Definition: PorousFlowHeatEnergy.h:55
PorousFlowHeatEnergy::computeIntegral
virtual Real computeIntegral() override
Definition: PorousFlowHeatEnergy.C:96
PorousFlowHeatEnergy::_rock_energy_nodal
const MaterialProperty< Real > & _rock_energy_nodal
Nodal rock energy density.
Definition: PorousFlowHeatEnergy.h:52
PorousFlowHeatEnergy::_fluid_saturation_nodal
const MaterialProperty< std::vector< Real > > *const _fluid_saturation_nodal
Nodal fluid saturation.
Definition: PorousFlowHeatEnergy.h:58