www.mooseframework.org
PorousFlowFluidMass.h
Go to the documentation of this file.
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
16 
17 template <>
18 InputParameters validParams<PorousFlowFluidMass>();
19 
23 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 
35  const unsigned int _fluid_component;
37  std::vector<unsigned int> _phase_index;
39  const MaterialProperty<Real> & _porosity;
41  const MaterialProperty<std::vector<Real>> & _fluid_density;
43  const MaterialProperty<std::vector<Real>> & _fluid_saturation;
45  const MaterialProperty<std::vector<std::vector<Real>>> & _mass_fraction;
49  MooseVariable * const _var;
50 };
51 
52 #endif // POROUSFLOWFLUIDMASS_H
Postprocessor produces the mass of a given fluid component in a region.
const MaterialProperty< std::vector< Real > > & _fluid_saturation
Phase saturation (-)
InputParameters validParams< PorousFlowFluidMass >()
PorousFlowFluidMass(const InputParameters &parameters)
std::vector< unsigned int > _phase_index
The phase indices that this Postprocessor is restricted to.
const Real _saturation_threshold
Saturation threshold - only fluid mass at saturations below this are calculated.
const MaterialProperty< Real > & _porosity
Porosity.
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const PorousFlowDictator & _dictator
Holds info on the PorousFlow variables.
const MaterialProperty< std::vector< Real > > & _fluid_density
Phase density (kg/m^3)
virtual Real computeIntegral() override
const unsigned int _fluid_component
The fluid component index that this Postprocessor applies to.
MooseVariable *const _var
the variable for the corresponding PorousFlowMassTimeDerivative Kernel: this provides test functions ...
const MaterialProperty< std::vector< std::vector< Real > > > & _mass_fraction
Mass fraction of each fluid component in each phase.
virtual Real computeQpIntegral() override