LCOV - code coverage report
Current view: top level - include/materials - PorousFlowEffectiveFluidPressure.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 POROUSFLOWEFFECTIVEFLUIDPRESSURE_H
       9             : #define POROUSFLOWEFFECTIVEFLUIDPRESSURE_H
      10             : 
      11             : #include "PorousFlowMaterialVectorBase.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlowEffectiveFluidPressure;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowEffectiveFluidPressure>();
      18             : 
      19             : /**
      20             :  * Material designed to calculate the effective fluid pressure
      21             :  * that can be used in the mechanical effective-stress calculations
      22             :  * and other similar places.  This class computes
      23             :  * effective fluid pressure = sum_{phases}Saturation_{phase}*Porepressure_{phase}
      24             :  */
      25         348 : class PorousFlowEffectiveFluidPressure : public PorousFlowMaterialVectorBase
      26             : {
      27             : public:
      28             :   PorousFlowEffectiveFluidPressure(const InputParameters & parameters);
      29             : 
      30             : protected:
      31             :   virtual void initQpStatefulProperties() override;
      32             :   virtual void computeQpProperties() override;
      33             : 
      34             :   /// quadpoint or nodal porepressure of each phase
      35             :   const MaterialProperty<std::vector<Real>> & _porepressure;
      36             : 
      37             :   /// old value of quadpoint or nodal porepressure of each phase
      38             :   const MaterialProperty<std::vector<Real>> & _porepressure_old;
      39             : 
      40             :   /// d(porepressure)/d(PorousFlow variable)
      41             :   const MaterialProperty<std::vector<std::vector<Real>>> & _dporepressure_dvar;
      42             : 
      43             :   /// quadpoint or nodal saturation of each phase
      44             :   const MaterialProperty<std::vector<Real>> & _saturation;
      45             : 
      46             :   /// old value of quadpoint or nodal saturation of each phase
      47             :   const MaterialProperty<std::vector<Real>> & _saturation_old;
      48             : 
      49             :   /// d(saturation)/d(PorousFlow variable)
      50             :   const MaterialProperty<std::vector<std::vector<Real>>> & _dsaturation_dvar;
      51             : 
      52             :   /// computed effective fluid pressure (at quadpoints or nodes)
      53             :   MaterialProperty<Real> & _pf;
      54             : 
      55             :   /// d(_pf)/d(PorousFlow variable)
      56             :   MaterialProperty<std::vector<Real>> & _dpf_dvar;
      57             : };
      58             : 
      59             : #endif // POROUSFLOWEFFECTIVEFLUIDPRESSURE_H

Generated by: LCOV version 1.11