LCOV - code coverage report
Current view: top level - include/materials - PorousFlow2PhasePS.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 POROUSFLOW2PHASEPS_H
       9             : #define POROUSFLOW2PHASEPS_H
      10             : 
      11             : #include "PorousFlowVariableBase.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlowCapillaryPressure;
      15             : class PorousFlow2PhasePS;
      16             : 
      17             : template <>
      18             : InputParameters validParams<PorousFlow2PhasePS>();
      19             : 
      20             : /**
      21             :  * Material designed to calculate fluid-phase porepressures and saturations at nodes
      22             :  * and qps using a specified capillary pressure formulation
      23             :  */
      24         204 : class PorousFlow2PhasePS : public PorousFlowVariableBase
      25             : {
      26             : public:
      27             :   PorousFlow2PhasePS(const InputParameters & parameters);
      28             : 
      29             : protected:
      30             :   /**
      31             :    * Assemble std::vectors of porepressure and saturation at the nodes
      32             :    * and quadpoints
      33             :    */
      34             :   void buildQpPPSS();
      35             : 
      36             :   /**
      37             :    * Effective saturation of liquid phase
      38             :    * @param saturation true saturation
      39             :    * @return effective saturation
      40             :    */
      41             :   virtual Real effectiveSaturation(Real saturation) const;
      42             : 
      43             :   /**
      44             :    * Capillary pressure as a function of saturation.
      45             :    * Default is constant capillary pressure = 0.0.
      46             :    * Override in derived classes to implement other capillary pressure forulations
      47             :    *
      48             :    * @param saturation true saturation
      49             :    * @return capillary pressure (Pa)
      50             :    */
      51             :   virtual Real capillaryPressure(Real saturation) const;
      52             : 
      53             :   /**
      54             :    * Derivative of capillary pressure wrt to saturation.
      55             :    * Override in derived classes to implement other capillary pressure forulations
      56             :    *
      57             :    * @param saturation true saturation
      58             :    * @return derivative of capillary pressure wrt saturation
      59             :    */
      60             :   virtual Real dCapillaryPressure_dS(Real seff) const;
      61             : 
      62             :   /**
      63             :    * Second derivative of capillary pressure wrt to saturation.
      64             :    * Override in derived classes to implement other capillary pressure forulations
      65             :    *
      66             :    * @param saturation true saturation
      67             :    * @return second derivative of capillary pressure wrt saturation
      68             :    */
      69             :   virtual Real d2CapillaryPressure_dS2(Real saturation) const;
      70             : 
      71             :   virtual void initQpStatefulProperties() override;
      72             :   virtual void computeQpProperties() override;
      73             : 
      74             :   /// Nodal or quadpoint value of porepressure of the zero phase (eg, the gas phase)
      75             :   const VariableValue & _phase0_porepressure;
      76             :   /// Gradient(phase0_porepressure) at the qps
      77             :   const VariableGradient & _phase0_gradp_qp;
      78             :   /// Moose variable number of the phase0 porepressure
      79             :   const unsigned int _phase0_porepressure_varnum;
      80             :   /// PorousFlow variable number of the phase0 porepressure
      81             :   const unsigned int _pvar;
      82             :   /// Nodal or quadpoint value of saturation of the one phase (eg, the water phase)
      83             :   const VariableValue & _phase1_saturation;
      84             :   /// Gradient(phase1_saturation) at the qps
      85             :   const VariableGradient & _phase1_grads_qp;
      86             :   /// Moose variable number of the phase1 saturation
      87             :   const unsigned int _phase1_saturation_varnum;
      88             :   /// PorousFlow variable number of the phase1 saturation
      89             :   const unsigned int _svar;
      90             :   /// Liquid residual saturation
      91             :   const Real _sat_lr;
      92             :   /// Derivative of effective saturation with respect to saturation
      93             :   const Real _dseff_ds;
      94             :   /// Capillary pressure UserObject
      95             :   /// Note: This pointer can be replaced with a reference once the deprecated PS
      96             :   /// materials have been removed
      97             :   const PorousFlowCapillaryPressure * _pc_uo;
      98             : };
      99             : 
     100             : #endif // POROUSFLOW2PHASEPS_H

Generated by: LCOV version 1.11