LCOV - code coverage report
Current view: top level - include/materials - PorousFlowVolumetricStrain.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 Functions: 2 2 100.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 POROUSFLOWVOLUMETRICSTRAIN_H
       9             : #define POROUSFLOWVOLUMETRICSTRAIN_H
      10             : 
      11             : #include "PorousFlowMaterialVectorBase.h"
      12             : #include "RankTwoTensor.h"
      13             : 
      14             : /**
      15             :  * PorousFlowVolumetricStrain computes volumetric strains, and derivatives thereof
      16             :  */
      17         261 : class PorousFlowVolumetricStrain : public PorousFlowMaterialVectorBase
      18             : {
      19             : public:
      20             :   PorousFlowVolumetricStrain(const InputParameters & parameters);
      21             : 
      22             : protected:
      23             :   virtual void initQpStatefulProperties() override;
      24             :   virtual void computeQpProperties() override;
      25             : 
      26             :   /// If true then the strain rate will include terms that ensure mass is conserved when doing integrals over the displaced mesh
      27             :   const bool _consistent;
      28             : 
      29             :   /// number of displacements supplied (1 in 1D, 2 in 2D, 3 in 3D)
      30             :   const unsigned int _ndisp;
      31             : 
      32             :   /// displacement variable values at the quad point
      33             :   std::vector<const VariableValue *> _disp;
      34             : 
      35             :   /// moose variable number of the displacements variables provided
      36             :   std::vector<unsigned int> _disp_var_num;
      37             : 
      38             :   /// gradient of the displacements
      39             :   std::vector<const VariableGradient *> _grad_disp;
      40             : 
      41             :   /// old value of gradient of the displacements
      42             :   std::vector<const VariableGradient *> _grad_disp_old;
      43             : 
      44             :   /// The volumetric strain rate at the quadpoints
      45             :   MaterialProperty<Real> & _vol_strain_rate_qp;
      46             : 
      47             :   /**
      48             :    * The derivative of the volumetric strain rate with respect to the porous flow variables.
      49             :    * Since the volumetric strain rate depends on derivatives of the displacement variables,
      50             :    * this should be multiplied by _grad_phi in kernels
      51             :    */
      52             :   MaterialProperty<std::vector<RealGradient>> & _dvol_strain_rate_qp_dvar;
      53             : 
      54             :   /// The total volumetric strain at the quadpoints
      55             :   MaterialProperty<Real> & _vol_total_strain_qp;
      56             : 
      57             :   /**
      58             :    * The derivative of the total volumetric strain with respect to the porous flow variables.
      59             :    * Since the total volumetric strain depends on derivatives of the displacement variables,
      60             :    * this should be multiplied by _grad_phi in kernels
      61             :    */
      62             :   MaterialProperty<std::vector<RealGradient>> & _dvol_total_strain_qp_dvar;
      63             : };
      64             : 
      65             : #endif // POROUSFLOWVOLUMETRICSTRAIN_H

Generated by: LCOV version 1.11