LCOV - code coverage report
Current view: top level - include/materials - PorousFlowConstantBiotModulus.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 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 POROUSFLOWCONSTANTBIOTMODULUS_H
       9             : #define POROUSFLOWCONSTANTBIOTMODULUS_H
      10             : 
      11             : #include "PorousFlowMaterialVectorBase.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlowConstantBiotModulus;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowConstantBiotModulus>();
      18             : 
      19             : /**
      20             :  * Material designed to provide a time-invariant
      21             :  * Biot Modulus, M, where
      22             :  * 1 / M = (1 - alpha) * (alpha - phi) * C + phi / Kf .
      23             :  * Here
      24             :  * alpha = Biot coefficient (assumed constant)
      25             :  * phi = initial value of porosity
      26             :  * C = drained porous-solid bulk compliance (1 / bulk modulus)
      27             :  * Kf = fluid bulk modulus (assumed constant)
      28             :  */
      29          72 : class PorousFlowConstantBiotModulus : public PorousFlowMaterialVectorBase
      30             : {
      31             : public:
      32             :   PorousFlowConstantBiotModulus(const InputParameters & parameters);
      33             : 
      34             : protected:
      35             :   virtual void initQpStatefulProperties() override;
      36             :   virtual void computeQpProperties() override;
      37             : 
      38             :   /// Biot coefficient
      39             :   const Real _biot_coefficient;
      40             : 
      41             :   /// Fluid bulk modulus
      42             :   const Real _fluid_bulk_modulus;
      43             : 
      44             :   /// Solid bulk compliance
      45             :   const Real _solid_bulk_compliance;
      46             : 
      47             :   /// porosity at the nodes or quadpoints.  Only the initial value is ever used
      48             :   const MaterialProperty<Real> & _porosity;
      49             : 
      50             :   /// Computed Biot modulus
      51             :   MaterialProperty<Real> & _biot_modulus;
      52             : 
      53             :   /// Old value of Biot modulus.  This variable is necessary in order to keep Biot modulus constant even if porosity is changing.
      54             :   const MaterialProperty<Real> & _biot_modulus_old;
      55             : };
      56             : 
      57             : #endif // POROUSFLOWCONSTANTBIOTMODULUS_H

Generated by: LCOV version 1.11