LCOV - code coverage report
Current view: top level - include/postprocessors - PorousFlowFluidMass.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-20 14:50:56 Functions: 2 2 100.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 POROUSFLOWFLUIDMASS_H
       9             : #define POROUSFLOWFLUIDMASS_H
      10             : 
      11             : #include "ElementIntegralVariablePostprocessor.h"
      12             : #include "PorousFlowDictator.h"
      13             : 
      14             : // Forward Declarations
      15             : class PorousFlowFluidMass;
      16             : 
      17             : template <>
      18             : InputParameters validParams<PorousFlowFluidMass>();
      19             : 
      20             : /**
      21             :  * Postprocessor produces the mass of a given fluid component in a region
      22             :  */
      23         264 : class PorousFlowFluidMass : public ElementIntegralPostprocessor
      24             : {
      25             : public:
      26             :   PorousFlowFluidMass(const InputParameters & parameters);
      27             : 
      28             : protected:
      29             :   virtual Real computeIntegral() override;
      30             :   virtual Real computeQpIntegral() override;
      31             : 
      32             :   /// Holds info on the PorousFlow variables
      33             :   const PorousFlowDictator & _dictator;
      34             :   /// The fluid component index that this Postprocessor applies to
      35             :   const unsigned int _fluid_component;
      36             :   /// The phase indices that this Postprocessor is restricted to
      37             :   std::vector<unsigned int> _phase_index;
      38             :   /// Porosity
      39             :   const MaterialProperty<Real> & _porosity;
      40             :   /// Phase density (kg/m^3)
      41             :   const MaterialProperty<std::vector<Real>> & _fluid_density;
      42             :   /// Phase saturation (-)
      43             :   const MaterialProperty<std::vector<Real>> & _fluid_saturation;
      44             :   /// Mass fraction of each fluid component in each phase
      45             :   const MaterialProperty<std::vector<std::vector<Real>>> & _mass_fraction;
      46             :   /// Saturation threshold - only fluid mass at saturations below this are calculated
      47             :   const Real _saturation_threshold;
      48             :   /// the variable for the corresponding PorousFlowMassTimeDerivative Kernel: this provides test functions
      49             :   MooseVariable * const _var;
      50             : };
      51             : 
      52             : #endif // POROUSFLOWFLUIDMASS_H

Generated by: LCOV version 1.11