LCOV - code coverage report
Current view: top level - include/materials - PorousFlowPorosityTM.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-16 18:50:22 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 POROUSFLOWPOROSITYTM_H
       9             : #define POROUSFLOWPOROSITYTM_H
      10             : 
      11             : #include "PorousFlowPorosityExponentialBase.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlowPorosityTM;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowPorosityTM>();
      18             : 
      19             : /**
      20             :  * Material designed to provide the porosity in thermo-mechanical simulations
      21             :  * biot + (phi0 - biot)*exp(-vol_strain + thermal_exp_coeff * (temperature - reference_temperature))
      22             :  */
      23           9 : class PorousFlowPorosityTM : public PorousFlowPorosityExponentialBase
      24             : {
      25             : public:
      26             :   PorousFlowPorosityTM(const InputParameters & parameters);
      27             : 
      28             : protected:
      29             :   virtual Real atNegInfinityQp() const override;
      30             :   virtual Real atZeroQp() const override;
      31             :   virtual Real decayQp() const override;
      32             :   virtual Real ddecayQp_dvar(unsigned pvar) const override;
      33             :   virtual RealGradient ddecayQp_dgradvar(unsigned pvar) const override;
      34             : 
      35             :   /// porosity at zero strain and zero temperature
      36             :   const VariableValue & _phi0;
      37             : 
      38             :   /// thermal expansion coefficient of the solid porous skeleton
      39             :   const Real _exp_coeff;
      40             : 
      41             :   /// reference temperature
      42             :   const VariableValue & _t_reference;
      43             : 
      44             :   /// number of displacement variables
      45             :   const unsigned int _ndisp;
      46             : 
      47             :   /// variable number of the displacements variables
      48             :   std::vector<unsigned int> _disp_var_num;
      49             : 
      50             :   /// strain
      51             :   const MaterialProperty<Real> & _vol_strain_qp;
      52             : 
      53             :   /// d(strain)/(dvar)
      54             :   const MaterialProperty<std::vector<RealGradient>> & _dvol_strain_qp_dvar;
      55             : 
      56             :   /// temperature at quadpoints or nodes
      57             :   const MaterialProperty<Real> & _temperature;
      58             : 
      59             :   /// d(temperature)/(d porflow variable)
      60             :   const MaterialProperty<std::vector<Real>> & _dtemperature_dvar;
      61             : };
      62             : 
      63             : #endif // POROUSFLOWPOROSITYTM_H

Generated by: LCOV version 1.11