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

Generated by: LCOV version 1.11