LCOV - code coverage report
Current view: top level - include/materials - PorousFlowBrine.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 POROUSFLOWBRINE_H
       9             : #define POROUSFLOWBRINE_H
      10             : 
      11             : #include "PorousFlowFluidPropertiesBase.h"
      12             : #include "BrineFluidProperties.h"
      13             : 
      14             : class PorousFlowBrine;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowBrine>();
      18             : 
      19             : /**
      20             :  * Fluid properties of Brine.
      21             :  * Provides density, viscosity, derivatives wrt pressure and temperature at the quadpoints or nodes
      22             :  */
      23           9 : class PorousFlowBrine : public PorousFlowFluidPropertiesBase
      24             : {
      25             : public:
      26             :   PorousFlowBrine(const InputParameters & parameters);
      27             : 
      28             : protected:
      29             :   virtual void initQpStatefulProperties() override;
      30             :   virtual void computeQpProperties() override;
      31             : 
      32             :   /// If true, this Material will compute density and viscosity, and their derivatives
      33             :   const bool _compute_rho_mu;
      34             : 
      35             :   /// If true, this Material will compute internal energy and its derivatives
      36             :   const bool _compute_internal_energy;
      37             : 
      38             :   /// If true, this Material will compute enthalpy and its derivatives
      39             :   const bool _compute_enthalpy;
      40             : 
      41             :   /// Fluid phase density at the qps or nodes
      42             :   MaterialProperty<Real> * const _density;
      43             : 
      44             :   /// Derivative of fluid density wrt phase pore pressure at the qps or nodes
      45             :   MaterialProperty<Real> * const _ddensity_dp;
      46             : 
      47             :   /// Derivative of fluid density wrt temperature at the qps or nodes
      48             :   MaterialProperty<Real> * const _ddensity_dT;
      49             : 
      50             :   /// Fluid phase viscosity at the nodes or qps
      51             :   MaterialProperty<Real> * const _viscosity;
      52             : 
      53             :   /// Derivative of fluid phase viscosity wrt pressure at the nodes or qps
      54             :   MaterialProperty<Real> * const _dviscosity_dp;
      55             : 
      56             :   /// Derivative of fluid phase viscosity wrt temperature at the nodes or qps
      57             :   MaterialProperty<Real> * const _dviscosity_dT;
      58             : 
      59             :   /// Fluid phase internal_energy at the qps or nodes
      60             :   MaterialProperty<Real> * const _internal_energy;
      61             : 
      62             :   /// Derivative of fluid internal_energy wrt phase pore pressure at the qps or nodes
      63             :   MaterialProperty<Real> * const _dinternal_energy_dp;
      64             : 
      65             :   /// Derivative of fluid internal_energy wrt temperature at the qps or nodes
      66             :   MaterialProperty<Real> * const _dinternal_energy_dT;
      67             : 
      68             :   /// Fluid phase enthalpy at the qps or nodes
      69             :   MaterialProperty<Real> * const _enthalpy;
      70             : 
      71             :   /// Derivative of fluid enthalpy wrt phase pore pressure at the qps or nodes
      72             :   MaterialProperty<Real> * const _denthalpy_dp;
      73             : 
      74             :   /// Derivative of fluid enthalpy wrt temperature at the qps or nodes
      75             :   MaterialProperty<Real> * const _denthalpy_dT;
      76             : 
      77             :   /// Brine Fluid properties UserObject
      78             :   const BrineFluidProperties * _brine_fp;
      79             : 
      80             :   /// Water Fluid properties UserObject
      81             :   const SinglePhaseFluidPropertiesPT * _water_fp;
      82             : 
      83             :   /// NaCl mass fraction at the qps or nodes
      84             :   const VariableValue & _xnacl;
      85             : };
      86             : 
      87             : #endif // POROUSFLOWBRINE_H

Generated by: LCOV version 1.11