LCOV - code coverage report
Current view: top level - include/materials - PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity.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 POROUSFLOWTOTALGRAVITATIONALDENSITYFULLYSATURATEDFROMPOROSITY_H
       9             : #define POROUSFLOWTOTALGRAVITATIONALDENSITYFULLYSATURATEDFROMPOROSITY_H
      10             : 
      11             : #include "PorousFlowTotalGravitationalDensityBase.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity>();
      18             : 
      19             : /**
      20             :  * Material designed to provide the density of the porous medium for the
      21             :  * fully-saturated case. Density is calculated as a
      22             :  * weighted average of the fluid and solid densities:
      23             :  * density = phi * rho_f + (1 - phi) * rho_s
      24             :  * where phi is porosity, rho_f is fluid density and rho_s is solid
      25             :  * density (assumed constant).
      26             :  */
      27           6 : class PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity
      28             :     : public PorousFlowTotalGravitationalDensityBase
      29             : {
      30             : public:
      31             :   PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity(const InputParameters & parameters);
      32             : 
      33             : protected:
      34             :   void initQpStatefulProperties() override;
      35             :   void computeQpProperties() override;
      36             : 
      37             :   /// Solid density
      38             :   const Real _rho_s;
      39             : 
      40             :   /// fluid density at qps
      41             :   const MaterialProperty<std::vector<Real>> & _rho_f_qp;
      42             : 
      43             :   /// porosity at qps
      44             :   const MaterialProperty<Real> & _porosity_qp;
      45             : 
      46             :   /// d(rho_f)/d(PorousFlow variable)
      47             :   const MaterialProperty<std::vector<std::vector<Real>>> & _drho_f_qp_dvar;
      48             : 
      49             :   /// d(porosity)/d(PorousFlow variable)
      50             :   const MaterialProperty<std::vector<Real>> & _dporosity_qp_dvar;
      51             : };
      52             : 
      53             : #endif // POROUSFLOWTOTALGRAVITATIONALDENSITYFULLYSATURATEDFROMPOROSITY_H

Generated by: LCOV version 1.11