www.mooseframework.org
PorousFlowFluidStateSingleComponentBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
15 
16 template <>
18 
24 {
25 public:
26  PorousFlowFluidStateSingleComponentBase(const InputParameters & parameters);
27 
38  virtual void thermophysicalProperties(Real pressure,
39  Real enthalpy,
40  unsigned int qp,
41  FluidStatePhaseEnum & phase_state,
42  std::vector<FluidStateProperties> & fsp) const = 0;
43 
44  unsigned int getPressureIndex() const { return _pidx; };
45  unsigned int getEnthalpyIndex() const { return _hidx; };
46 
47 protected:
49  const unsigned int _pidx;
51  const unsigned int _hidx;
53  const Real dT;
54 };
PorousFlowFluidStateSingleComponentBase::PorousFlowFluidStateSingleComponentBase
PorousFlowFluidStateSingleComponentBase(const InputParameters &parameters)
Definition: PorousFlowFluidStateSingleComponentBase.C:21
PorousFlowFluidStateBase
Base class for fluid states for miscible multiphase flow in porous media.
Definition: PorousFlowFluidStateBase.h:55
FluidStatePhaseEnum
FluidStatePhaseEnum
Phase state enum.
Definition: PorousFlowFluidStateBase.h:18
PorousFlowFluidStateSingleComponentBase
Base class for miscible multiphase flow classes with a single fluid component using a pressure and en...
Definition: PorousFlowFluidStateSingleComponentBase.h:23
PorousFlowFluidStateSingleComponentBase::getEnthalpyIndex
unsigned int getEnthalpyIndex() const
Definition: PorousFlowFluidStateSingleComponentBase.h:45
PorousFlowFluidStateSingleComponentBase::thermophysicalProperties
virtual void thermophysicalProperties(Real pressure, Real enthalpy, unsigned int qp, FluidStatePhaseEnum &phase_state, std::vector< FluidStateProperties > &fsp) const =0
Determines the complete thermophysical state of the system for a given set of primary variables.
NS::enthalpy
const std::string enthalpy
Definition: NS.h:27
validParams< PorousFlowFluidStateSingleComponentBase >
InputParameters validParams< PorousFlowFluidStateSingleComponentBase >()
Definition: PorousFlowFluidStateSingleComponentBase.C:14
PorousFlowFluidStateBase.h
PorousFlowFluidStateSingleComponentBase::_hidx
const unsigned int _hidx
Index of derivative wrt enthalpy.
Definition: PorousFlowFluidStateSingleComponentBase.h:51
PorousFlowFluidStateSingleComponentBase::dT
const Real dT
Perturbation applied to saturation temperature to move to gas/liquid phase.
Definition: PorousFlowFluidStateSingleComponentBase.h:53
PorousFlowFluidStateSingleComponentBase::getPressureIndex
unsigned int getPressureIndex() const
Definition: PorousFlowFluidStateSingleComponentBase.h:44
PorousFlowFluidStateSingleComponentBase::_pidx
const unsigned int _pidx
Index of derivative wrt pressure.
Definition: PorousFlowFluidStateSingleComponentBase.h:45
NS::pressure
const std::string pressure
Definition: NS.h:25