LCOV - code coverage report
Current view: top level - include/materials - PorousFlowThermalConductivityFromPorosity.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 POROUSFLOWTHERMALCONDUCTIVITYFROMPOROSITY_H
       9             : #define POROUSFLOWTHERMALCONDUCTIVITYFROMPOROSITY_H
      10             : 
      11             : #include "PorousFlowMaterialVectorBase.h"
      12             : 
      13             : class PorousFlowThermalConductivityFromPorosity;
      14             : 
      15             : template <>
      16             : InputParameters validParams<PorousFlowThermalConductivityFromPorosity>();
      17             : 
      18             : /**
      19             :  * This Material calculates rock-fluid combined thermal conductivity
      20             :  * for the single phase, fully saturated case by using a linear
      21             :  * weighted average.
      22             :  * Thermal conductivity = phi * lambda_f + (1 - phi) * lambda_s,
      23             :  * where phi is porosity, and lambda_f, lambda_s are
      24             :  * thermal conductivities of the fluid and solid (assumed constant)
      25             : */
      26           6 : class PorousFlowThermalConductivityFromPorosity : public PorousFlowMaterialVectorBase
      27             : {
      28             : public:
      29             :   PorousFlowThermalConductivityFromPorosity(const InputParameters & parameters);
      30             : 
      31             : protected:
      32             :   virtual void computeQpProperties() override;
      33             : 
      34             :   /// Thermal conductivity of the solid phase
      35             :   const RealTensorValue _la_s;
      36             : 
      37             :   /// Thermal conductivity of the single fluid phase
      38             :   const RealTensorValue _la_f;
      39             : 
      40             :   /// quadpoint porosity
      41             :   const MaterialProperty<Real> & _porosity_qp;
      42             : 
      43             :   /// d(quadpoint porosity)/d(PorousFlow variable)
      44             :   const MaterialProperty<std::vector<Real>> & _dporosity_qp_dvar;
      45             : 
      46             :   /// Thermal conducitivity at the qps
      47             :   MaterialProperty<RealTensorValue> & _la_qp;
      48             : 
      49             :   /// d(thermal conductivity at the qps)/d(PorousFlow variable)
      50             :   MaterialProperty<std::vector<RealTensorValue>> & _dla_qp_dvar;
      51             : };
      52             : 
      53             : #endif // POROUSFLOWTHERMALCONDUCTIVITYFROMPOROSITY_H

Generated by: LCOV version 1.11