LCOV - code coverage report
Current view: top level - include/materials - PorousFlowFluidStateWaterNCG.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-20 14:50:56 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 POROUSFLOWFLUIDSTATEWATERNCG_H
       9             : #define POROUSFLOWFLUIDSTATEWATERNCG_H
      10             : 
      11             : #include "PorousFlowFluidStateFlashBase.h"
      12             : #include "Water97FluidProperties.h"
      13             : 
      14             : class PorousFlowFluidStateWaterNCG;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowFluidStateWaterNCG>();
      18             : 
      19             : /**
      20             :  * Fluid state class for water and a non-condensable gas. Calculates the solubility
      21             :  * of the gas phase in the water using Henry's law, and provides density, viscosity
      22             :  * and mass fractions for use in Kernels.
      23             :  */
      24          30 : class PorousFlowFluidStateWaterNCG : public PorousFlowFluidStateFlashBase
      25             : {
      26             : public:
      27             :   PorousFlowFluidStateWaterNCG(const InputParameters & parameters);
      28             : 
      29             : protected:
      30             :   virtual void thermophysicalProperties() override;
      31             : 
      32             :   /**
      33             :    * Enthalpy of dissolution of NCG in water calculated using Henry's constant
      34             :    * From Himmelblau, Partial molal heats and entropies of solution for gases dissolved
      35             :    * in water from the freezing to the near critical point, J. Phys. Chem. 63 (1959)
      36             :    *
      37             :    * @param temperature fluid temperature (K)
      38             :    * @param Kh Henry's constant (Pa)
      39             :    * @param dKh_dT derivative of Henry's constant wrt temperature
      40             :    * @return enthalpy of dissolution (kJ/kg)
      41             :    */
      42             :   Real enthalpyOfDissolution(Real temperature, Real Kh, Real dKh_dT) const;
      43             : 
      44             :   /**
      45             :    * Convert mole fraction to mass fraction
      46             :    *
      47             :    * @param xmol mole fraction
      48             :    * @return mass fraction
      49             :    */
      50             :   Real moleFractionToMassFraction(Real xmol) const;
      51             : 
      52             :   /// Fluid properties UserObject for water
      53             :   const Water97FluidProperties & _water_fp;
      54             :   /// Fluid properties UserObject for the NCG
      55             :   const SinglePhaseFluidPropertiesPT & _ncg_fp;
      56             :   /// Molar mass of water (kg/mol)
      57             :   const Real _Mh2o;
      58             :   /// Molar mass of non-condensable gas (kg/mol)
      59             :   const Real _Mncg;
      60             :   /// Triple point temperature of water (K)
      61             :   const Real _water_triple_temperature;
      62             :   /// Critical temperature of water (K)
      63             :   const Real _water_critical_temperature;
      64             : };
      65             : 
      66             : #endif // POROUSFLOWFLUIDSTATEWATERNCG_H

Generated by: LCOV version 1.11