https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
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
59protected:
61 const unsigned int _fluid_component;
63 const unsigned int _pidx;
65 const unsigned int _hidx;
67 const Real _dT;
68};
DualNumber< Real, DNDerivativeType, true > ADReal
const InputParameters & parameters() const
Base class for fluid states for miscible multiphase flow in porous media.
Base class for miscible multiphase flow classes with a single fluid component using a pressure and en...
const Real _dT
Perturbation applied to saturation temperature to move to gas/liquid phase.
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.
virtual void thermophysicalProperties(const ADReal &pressure, const ADReal &enthalpy, unsigned int qp, std::vector< FluidStateProperties > &fsp) const =0
const unsigned int _fluid_component
Fluid component number (only one fluid component in all phases)
unsigned int aqueousComponentIndex() const
The index of the aqueous fluid component.
unsigned int gasComponentIndex() const
The index of the gas fluid component.
const unsigned int _hidx
Index of derivative wrt enthalpy.
const unsigned int _pidx
Index of derivative wrt pressure.