LCOV - code coverage report
Current view: top level - include/postprocessors - PorousFlowHeatEnergy.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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
      15             : class PorousFlowHeatEnergy;
      16             : 
      17             : template <>
      18             : InputParameters validParams<PorousFlowHeatEnergy>();
      19             : 
      20             : /**
      21             :  * Postprocessor produces the sum of heat energy of the porous skeleton and/or fluid components in a
      22             :  * region
      23             :  */
      24          30 : 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             : 
      33             :   /// Holds info on the PorousFlow variables
      34             :   const PorousFlowDictator & _dictator;
      35             : 
      36             :   /// Number of fluid phases
      37             :   const unsigned int _num_phases;
      38             : 
      39             :   /// Whether fluid is present
      40             :   const bool _fluid_present;
      41             : 
      42             :   /// Whether to include the heat energy of the porous skeleton in the calculations
      43             :   const bool _include_porous_skeleton;
      44             : 
      45             :   /// The phase indices that this Postprocessor is restricted to
      46             :   std::vector<unsigned int> _phase_index;
      47             : 
      48             :   /// Porosity
      49             :   const MaterialProperty<Real> & _porosity;
      50             : 
      51             :   /// nodal rock energy density
      52             :   const MaterialProperty<Real> & _rock_energy_nodal;
      53             : 
      54             :   /// nodal fluid density
      55             :   const MaterialProperty<std::vector<Real>> * const _fluid_density;
      56             : 
      57             :   /// nodal fluid saturation
      58             :   const MaterialProperty<std::vector<Real>> * const _fluid_saturation_nodal;
      59             : 
      60             :   /// internal energy of the phases, evaluated at the nodes
      61             :   const MaterialProperty<std::vector<Real>> * const _energy_nodal;
      62             : 
      63             :   /// the variable for the corresponding PorousFlowEnergyTimeDerivative Kernel: this provides test functions
      64             :   MooseVariable * const _var;
      65             : };
      66             : 
      67             : #endif // POROUSFLOWHEATENERGY_H

Generated by: LCOV version 1.11