LCOV - code coverage report
Current view: top level - include/materials - PorousFlow1PhaseMD_Gaussian.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-21 14:47:27 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 POROUSFLOW1PHASEMD_GAUSSIAN_H
       9             : #define POROUSFLOW1PHASEMD_GAUSSIAN_H
      10             : 
      11             : #include "PorousFlowVariableBase.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlow1PhaseMD_Gaussian;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlow1PhaseMD_Gaussian>();
      18             : 
      19             : /**
      20             :  * Material designed to calculate fluid-phase porepressure and saturation
      21             :  * for the single-phase situation, assuming a Gaussian capillary suction
      22             :  * function and assuming the independent variable is log(mass density) and
      23             :  * assuming the fluid has a constant bulk modulus
      24             :  */
      25          12 : class PorousFlow1PhaseMD_Gaussian : public PorousFlowVariableBase
      26             : {
      27             : public:
      28             :   PorousFlow1PhaseMD_Gaussian(const InputParameters & parameters);
      29             : 
      30             : protected:
      31             :   virtual void initQpStatefulProperties() override;
      32             :   virtual void computeQpProperties() override;
      33             : 
      34             :   /// Gaussian parameter: saturation = exp(-(al*p)^2)
      35             :   const Real _al;
      36             : 
      37             :   /// _al2 = al*al
      38             :   const Real _al2;
      39             : 
      40             :   /// fluid density = _dens0*exp(P/_bulk)
      41             :   const Real _logdens0;
      42             : 
      43             :   /// fluid density = _dens0*exp(P/_bulk)
      44             :   const Real _bulk;
      45             : 
      46             :   /// 1/_bulk/_al
      47             :   const Real _recip_bulk;
      48             : 
      49             :   /// (1/_bulk)^2
      50             :   const Real _recip_bulk2;
      51             : 
      52             :   /// Nodal or quadpoint value of mass-density of the fluid phase
      53             :   const VariableValue & _md_var;
      54             : 
      55             :   /// Gradient(_mass-density at quadpoints)
      56             :   const VariableGradient & _gradmd_qp_var;
      57             : 
      58             :   /// Moose variable number of the mass-density
      59             :   const unsigned int _md_varnum;
      60             : 
      61             :   /// PorousFlow variable number of the mass-density
      62             :   const unsigned int _pvar;
      63             : 
      64             :   virtual void buildPS();
      65             : };
      66             : 
      67             : #endif // POROUSFLOW1PHASEMD_GAUSSIAN_H

Generated by: LCOV version 1.11