LCOV - code coverage report
Current view: top level - include/materials - PorousFlowSingleComponentFluid.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 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 POROUSFLOWSINGLECOMPONENTFLUID_H
       9             : #define POROUSFLOWSINGLECOMPONENTFLUID_H
      10             : 
      11             : #include "PorousFlowFluidPropertiesBase.h"
      12             : #include "SinglePhaseFluidPropertiesPT.h"
      13             : 
      14             : class PorousFlowSingleComponentFluid;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowSingleComponentFluid>();
      18             : 
      19             : /**
      20             :  * General single component fluid material. Provides quadpoint density, viscosity,
      21             :  * internal energy, enthalpy and derivatives wrt pressure and temperature
      22             :  * for a fluid defined in the FluidProperties module
      23             :  */
      24         678 : class PorousFlowSingleComponentFluid : public PorousFlowFluidPropertiesBase
      25             : {
      26             : public:
      27             :   PorousFlowSingleComponentFluid(const InputParameters & parameters);
      28             : 
      29             : protected:
      30             :   virtual void initQpStatefulProperties() override;
      31             :   virtual void computeQpProperties() override;
      32             : 
      33             :   /// If true, this Material will compute density and viscosity, and their derivatives
      34             :   const bool _compute_rho_mu;
      35             : 
      36             :   /// If true, this Material will compute internal energy and its derivatives
      37             :   const bool _compute_internal_energy;
      38             : 
      39             :   /// If true, this Material will compute enthalpy and its derivatives
      40             :   const bool _compute_enthalpy;
      41             : 
      42             :   /// Fluid phase density at the qps or nodes
      43             :   MaterialProperty<Real> * const _density;
      44             : 
      45             :   /// Derivative of fluid density wrt phase pore pressure at the qps or nodes
      46             :   MaterialProperty<Real> * const _ddensity_dp;
      47             : 
      48             :   /// Derivative of fluid density wrt temperature at the qps or nodes
      49             :   MaterialProperty<Real> * const _ddensity_dT;
      50             : 
      51             :   /// Fluid phase viscosity at the nodes
      52             :   MaterialProperty<Real> * const _viscosity;
      53             : 
      54             :   /// Derivative of fluid phase viscosity wrt pressure at the nodes
      55             :   MaterialProperty<Real> * const _dviscosity_dp;
      56             : 
      57             :   /// Derivative of fluid phase viscosity wrt temperature at the nodes
      58             :   MaterialProperty<Real> * const _dviscosity_dT;
      59             : 
      60             :   /// Fluid phase internal_energy at the qps or nodes
      61             :   MaterialProperty<Real> * const _internal_energy;
      62             : 
      63             :   /// Derivative of fluid internal_energy wrt phase pore pressure at the qps or nodes
      64             :   MaterialProperty<Real> * const _dinternal_energy_dp;
      65             : 
      66             :   /// Derivative of fluid internal_energy wrt temperature at the qps or nodes
      67             :   MaterialProperty<Real> * const _dinternal_energy_dT;
      68             : 
      69             :   /// Fluid phase enthalpy at the qps or nodes
      70             :   MaterialProperty<Real> * const _enthalpy;
      71             : 
      72             :   /// Derivative of fluid enthalpy wrt phase pore pressure at the qps or nodes
      73             :   MaterialProperty<Real> * const _denthalpy_dp;
      74             : 
      75             :   /// Derivative of fluid enthalpy wrt temperature at the qps or nodes
      76             :   MaterialProperty<Real> * const _denthalpy_dT;
      77             : 
      78             :   /// Fluid properties UserObject
      79             :   const SinglePhaseFluidPropertiesPT & _fp;
      80             : };
      81             : 
      82             : #endif // POROUSFLOWSINGLECOMPONENTFLUID_H

Generated by: LCOV version 1.11