LCOV - code coverage report
Current view: top level - include/materials - PorousFlowMatrixInternalEnergy.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 Functions: 1 2 50.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 POROUSFLOWMATRIXINTERNALENERGY_H
       9             : #define POROUSFLOWMATRIXINTERNALENERGY_H
      10             : 
      11             : #include "PorousFlowMaterialVectorBase.h"
      12             : 
      13             : class PorousFlowMatrixInternalEnergy;
      14             : 
      15             : template <>
      16             : InputParameters validParams<PorousFlowMatrixInternalEnergy>();
      17             : 
      18             : /**
      19             :  * This material computes internal energy (J/m^3) for a rock matrix
      20             :  * assuming constant grain density, specific heat capacity, and
      21             :  * a linear relationship with temperature.  To get the volumetric
      22             :  * heat capacity of the rock in a rock-fluid system, the result must
      23             :  * be multiplied by (1 - porosity).
      24             :  */
      25          96 : class PorousFlowMatrixInternalEnergy : public PorousFlowMaterialVectorBase
      26             : {
      27             : public:
      28             :   PorousFlowMatrixInternalEnergy(const InputParameters & parameters);
      29             : 
      30             : protected:
      31             :   virtual void initQpStatefulProperties() override;
      32             :   virtual void computeQpProperties() override;
      33             : 
      34             :   /// Specific heat capacity of rock grains
      35             :   const Real _cp;
      36             : 
      37             :   /// Density of rock grains (equals the density of the matrix if porosity=0)
      38             :   const Real _density;
      39             : 
      40             :   /// Heat capacity = _cp * _density
      41             :   const Real _heat_cap;
      42             : 
      43             :   /// temperature at the nodes
      44             :   const MaterialProperty<Real> & _temperature_nodal;
      45             : 
      46             :   /// d(temperature at the nodes)/d(PorousFlow variable)
      47             :   const MaterialProperty<std::vector<Real>> & _dtemperature_nodal_dvar;
      48             : 
      49             :   /// Matrix internal_energy at the nodes
      50             :   MaterialProperty<Real> & _en_nodal;
      51             : 
      52             :   /// d(matrix internal energy)/d(PorousFlow variable)
      53             :   MaterialProperty<std::vector<Real>> & _den_nodal_dvar;
      54             : };
      55             : 
      56             : #endif // POROUSFLOWMATRIXINTERNALENERGY_H

Generated by: LCOV version 1.11