https://mooseframework.inl.gov
PorousFlowFluidStateSingleComponentBase.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 
19 {
20 public:
22 
24 
29  unsigned int aqueousComponentIndex() const { return _fluid_component; };
30 
35  unsigned int gasComponentIndex() const { return _fluid_component; };
36 
46  virtual void thermophysicalProperties(Real pressure,
47  Real enthalpy,
48  unsigned int qp,
49  std::vector<FluidStateProperties> & fsp) const = 0;
50 
51  virtual void thermophysicalProperties(const ADReal & pressure,
52  const ADReal & enthalpy,
53  unsigned int qp,
54  std::vector<FluidStateProperties> & fsp) const = 0;
55 
56  unsigned int getPressureIndex() const { return _pidx; };
57  unsigned int getEnthalpyIndex() const { return _hidx; };
58 
59 protected:
61  const unsigned int _fluid_component;
63  const unsigned int _pidx;
65  const unsigned int _hidx;
67  const Real _dT;
68 };
unsigned int aqueousComponentIndex() const
The index of the aqueous fluid component.
const unsigned int _pidx
Index of derivative wrt pressure.
const unsigned int _hidx
Index of derivative wrt enthalpy.
PorousFlowFluidStateSingleComponentBase(const InputParameters &parameters)
Base class for fluid states for miscible multiphase flow in porous media.
DualNumber< Real, DNDerivativeType, true > ADReal
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _dT
Perturbation applied to saturation temperature to move to gas/liquid phase.
static const std::string pressure
Definition: NS.h:56
const InputParameters & parameters() const
virtual void thermophysicalProperties(Real pressure, Real enthalpy, unsigned int qp, std::vector< FluidStateProperties > &fsp) const =0
Determines the complete thermophysical state of the system for a given set of primary variables...
const unsigned int _fluid_component
Fluid component number (only one fluid component in all phases)
unsigned int gasComponentIndex() const
The index of the gas fluid component.
Base class for miscible multiphase flow classes with a single fluid component using a pressure and en...