LCOV - code coverage report
Current view: top level - include/materials - PorousFlowConstantThermalExpansionCoefficient.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 POROUSFLOWCONSTANTTHERMALEXPANSIONCOEFFICIENT_H
       9             : #define POROUSFLOWCONSTANTTHERMALEXPANSIONCOEFFICIENT_H
      10             : 
      11             : #include "PorousFlowMaterialVectorBase.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlowConstantThermalExpansionCoefficient;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowConstantThermalExpansionCoefficient>();
      18             : 
      19             : /**
      20             :  * Material designed to provide a time-invariant
      21             :  * volumetric thermal expansion coefficient
      22             :  * A = * (alpha - phi) * alT + phi * alF .
      23             :  * Here
      24             :  * alpha = Biot coefficient (assumed constant)
      25             :  * phi = initial value of porosity
      26             :  * alT = drained volumetric thermal expansion coefficient (assumed constant)
      27             :  * alF = fluid volumetric thermal expansion coefficient (assumed constant)
      28             :  */
      29          18 : class PorousFlowConstantThermalExpansionCoefficient : public PorousFlowMaterialVectorBase
      30             : {
      31             : public:
      32             :   PorousFlowConstantThermalExpansionCoefficient(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 volumetric thermal expansion coefficient
      42             :   const Real _fluid_coefficient;
      43             : 
      44             :   /// Drained porous-skeleton volumetric thermal expansion coefficient
      45             :   const Real _drained_coefficient;
      46             : 
      47             :   /// porosity at the nodes or quadpoints.  Only the initial value is ever used
      48             :   const MaterialProperty<Real> & _porosity;
      49             : 
      50             :   /// Computed volumetric thermal expansion coefficient
      51             :   MaterialProperty<Real> & _coeff;
      52             : 
      53             :   /// Old value of the volumetric thermal expansion coefficient.  This variable is necessary in order to keep the thermal expansion coefficient constant even if porosity is changing.
      54             :   const MaterialProperty<Real> & _coeff_old;
      55             : };
      56             : 
      57             : #endif // POROUSFLOWCONSTANTTHERMALEXPANSIONCOEFFICIENT_H

Generated by: LCOV version 1.11