LCOV - code coverage report
Current view: top level - include/materials - PorousFlowTemperature.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-17 17:48:31 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 POROUSFLOWTEMPERATURE_H
       9             : #define POROUSFLOWTEMPERATURE_H
      10             : 
      11             : #include "DerivativeMaterialInterface.h"
      12             : #include "PorousFlowMaterial.h"
      13             : 
      14             : class PorousFlowTemperature;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowTemperature>();
      18             : 
      19             : /**
      20             :  * Creates temperature Materials
      21             :  */
      22        1422 : class PorousFlowTemperature : public DerivativeMaterialInterface<PorousFlowMaterial>
      23             : {
      24             : public:
      25             :   PorousFlowTemperature(const InputParameters & parameters);
      26             : 
      27             : protected:
      28             :   virtual void initQpStatefulProperties() override;
      29             :   virtual void computeQpProperties() override;
      30             : 
      31             :   /// Number of PorousFlow variables
      32             :   const unsigned int _num_pf_vars;
      33             : 
      34             :   /// Variable value of temperature at quadpoints or nodes
      35             :   const VariableValue & _temperature_var;
      36             : 
      37             :   /// Gradient(_temperature at quadpoints)
      38             :   const VariableGradient * const _grad_temperature_var;
      39             : 
      40             :   /// Whether the temperature coupled variable is a PorousFlow variable
      41             :   const bool _temperature_is_PF;
      42             : 
      43             :   /// the PorousFlow variable number of the temperature
      44             :   const unsigned int _t_var_num;
      45             : 
      46             :   /// Computed temperature at quadpoints or nodes
      47             :   MaterialProperty<Real> & _temperature;
      48             : 
      49             :   /// d(computed temperature)/d(PorousFlow variable)
      50             :   MaterialProperty<std::vector<Real>> & _dtemperature_dvar;
      51             : 
      52             :   /// Grad(temperature) at the quadpoints (not needed for nodal_materials)
      53             :   MaterialProperty<RealGradient> * const _grad_temperature;
      54             : 
      55             :   /// d(grad temperature)/d(grad PorousFlow variable) at the quadpoints
      56             :   MaterialProperty<std::vector<Real>> * const _dgrad_temperature_dgradv;
      57             : 
      58             :   /// d(grad temperature)/d(PorousFlow variable) at the quadpoints
      59             :   MaterialProperty<std::vector<RealGradient>> * const _dgrad_temperature_dv;
      60             : };
      61             : 
      62             : #endif // POROUSFLOWTEMPERATURE_H

Generated by: LCOV version 1.11