https://mooseframework.inl.gov
PorousFlowFluidMass.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
13 #include "PorousFlowDictator.h"
14 
26 template <bool is_ad>
28 {
29 public:
31 
33 
34 protected:
35  virtual Real computeIntegral() override;
36  virtual Real computeQpIntegral() override;
37 
41  const unsigned int _fluid_component;
43  std::vector<unsigned int> _phase_index;
45  const std::string _base_name;
47  const bool _has_total_strain;
62 };
63 
virtual Real computeIntegral() override
virtual Real computeQpIntegral() override
PorousFlowFluidMassTempl< true > ADPorousFlowFluidMass
const unsigned int _fluid_component
The fluid component index that this Postprocessor applies to.
Postprocessor produces the mass of a given fluid component in a region.
const GenericMaterialProperty< std::vector< Real >, is_ad > & _fluid_density
Phase density (kg/m^3)
const GenericMaterialProperty< Real, is_ad > & _porosity
Porosity.
MooseVariable *const _var
The variable for the corresponding PorousFlowMassTimeDerivative Kernel: this provides test functions...
PorousFlowFluidMassTempl(const InputParameters &parameters)
const GenericMaterialProperty< std::vector< std::vector< Real > >, is_ad > & _mass_fraction
Mass fraction of each fluid component in each phase.
const MaterialProperty< RankTwoTensor > *const _total_strain
Value of total strain calculated by a Tensor Mechanics strain calculator, if it exists, otherwise nullptr.
std::vector< unsigned int > _phase_index
The phase indices that this Postprocessor is restricted to.
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
const std::string _base_name
base name used in the Tensor Mechanics strain calculator
const GenericMaterialProperty< std::vector< Real >, is_ad > & _fluid_saturation
Phase saturation (-)
const PorousFlowDictator & _dictator
PorousFlowDictator UserObject.
const Real _saturation_threshold
Saturation threshold - only fluid mass at saturations below this are calculated.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const bool _has_total_strain
Whether there is a Material called _base_name_total_strain.
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const InputParameters & parameters() const
PorousFlowFluidMassTempl< false > PorousFlowFluidMass
static InputParameters validParams()