MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
Classes | Public Types | Static Private Member Functions | Static Private Attributes | Friends | List of all members
SteamSystemModelerTool Class Reference

Classes

struct  FluidProperties
 
struct  SaturatedPropertiesOutput
 
struct  SteamPropertiesOutput
 

Public Types

enum class  Key { ENTHALPY , ENTROPY }
 
enum class  Region { REGION1 , REGION2A , REGION2B , REGION2C }
 

Static Private Member Functions

static int regionSelect (double pressure, double temperature)
 
static SteamPropertiesOutput region1 (double temperature, double pressure)
 
static SteamPropertiesOutput region2 (double temperature, double pressure)
 
static SteamPropertiesOutput region3 (double temperature, double pressure)
 
static SteamPropertiesOutput region3Density (double density, double temperature)
 
static double region4 (double temperature)
 
static double backwardPressureEnthalpyRegion1 (double pressure, double enthalpy)
 
static double backwardPressureEnthalpyRegion2A (double pressure, double enthalpy)
 
static double backwardPressureEnthalpyRegion2B (double pressure, double enthalpy)
 
static double backwardPressureEnthalpyRegion2C (double pressure, double enthalpy)
 
static double backwardPressureEntropyRegion2A (double pressure, double entropy)
 
static double backwardPressureEntropyRegion2B (double pressure, double entropy)
 
static double backwardPressureEntropyRegion2C (double pressure, double entropy)
 
static double backwardPressureEntropyRegion1 (double pressure, double entropy)
 
static Point generatePoint (int region, SteamSystemModelerTool::Key key, double var1, double var2)
 
static double linearTestPoint (double X, Point point1, Point point2)
 
static double backwardRegion3Exact (double pressure, double X, SteamSystemModelerTool::Key key)
 
static double backwardPressureEnthalpyRegion3 (double pressure, double enthalpy)
 
static double backwardPressureEntropyRegion3 (double pressure, double entropy)
 
static double backwardPressureEnthalpyRegion1Exact (double pressure, double enthalpy)
 
static double backwardPressureEntropyRegion1Exact (double pressure, double entropy)
 
static double backwardPressureEnthalpyRegion2AExact (double pressure, double enthalpy)
 
static double backwardPressureEntropyRegion2AExact (double pressure, double entropy)
 
static double backwardPressureEnthalpyRegion2BExact (double pressure, double enthalpy)
 
static double backwardPressureEntropyRegion2BExact (double pressure, double entropy)
 
static double backwardPressureEnthalpyRegion2CExact (double pressure, double enthalpy)
 
static double backwardPressureEntropyRegion2CExact (double pressure, double entropy)
 
static double backwardExact (int region, SteamSystemModelerTool::Key key, SteamSystemModelerTool::Region regionFunction, double pressure, double var2)
 
static double boundaryByTemperatureRegion3to2 (const double t)
 
static double boundaryByPressureRegion3to2 (const double p)
 

Static Private Attributes

static constexpr double PRESSURE_MIN = 0.01
 
static constexpr double TEMPERATURE_MIN = 273.15
 
static constexpr double PRESSURE_Tp = 16.5291643
 
static constexpr double TEMPERATURE_Tp = 623.15
 
static constexpr double PRESSURE_CRIT = 22.064
 
static constexpr double TEMPERATURE_CRIT = 647.096
 
static constexpr double PRESSURE_MAX = 100
 
static constexpr double TEMPERATURE_MAX = 1073.15
 
static constexpr double TEMPERATURE_REGION3_MAX = 863.15
 

Friends

class SteamProperties
 
class SaturatedProperties
 

Detailed Description

Definition at line 21 of file SteamSystemModelerTool.h.

Member Enumeration Documentation

◆ Key

enum class SteamSystemModelerTool::Key
strong

Definition at line 119 of file SteamSystemModelerTool.h.

◆ Region

enum class SteamSystemModelerTool::Region
strong

Definition at line 121 of file SteamSystemModelerTool.h.

Member Function Documentation

◆ backwardExact()

static double SteamSystemModelerTool::backwardExact ( int  region,
SteamSystemModelerTool::Key  key,
SteamSystemModelerTool::Region  regionFunction,
double  pressure,
double  var2 
)
staticprivate

Uses linear extrapolation for estimate equation to determine much more accurate temperature

Parameters
regionint, region number
keyKey, value type like ENTROPY ot ENTHALPY
regionFunctionRegion, the region of which function to be used (REGION1, REGION2A, etc)
pressuredouble, pressure in MPa
var2double, value of either entropy (in kJ/kg/K) or enthalpy (in kJ/kg)
Returns
double, temperature in Kelvin

◆ backwardPressureEnthalpyRegion1()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion1 ( double  pressure,
double  enthalpy 
)
staticprivate

Calculates temperature based in pressure and enthalpy for region 1

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvins

◆ backwardPressureEnthalpyRegion2A()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion2A ( double  pressure,
double  enthalpy 
)
staticprivate

Calculates temperature based in pressure and enthalpy for region 2A

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvins

◆ backwardPressureEnthalpyRegion2AExact()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion2AExact ( double  pressure,
double  enthalpy 
)
staticprivate

Returns a more accurate temperature than backwardPressureEnthalpyRegion2A

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvin

◆ backwardPressureEnthalpyRegion2B()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion2B ( double  pressure,
double  enthalpy 
)
staticprivate

Calculates temperature based in pressure and enthalpy for region 2B

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvins

◆ backwardPressureEnthalpyRegion2BExact()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion2BExact ( double  pressure,
double  enthalpy 
)
staticprivate

Returns a more accurate temperature than backwardPressureEnthalpyRegion2B

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvin

◆ backwardPressureEnthalpyRegion2C()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion2C ( double  pressure,
double  enthalpy 
)
staticprivate

Calculates temperature based in pressure and enthalpy for region 2C

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvins

◆ backwardPressureEnthalpyRegion2CExact()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion2CExact ( double  pressure,
double  enthalpy 
)
staticprivate

Returns a more accurate temperature than backwardPressureEnthalpyRegion2C

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvin

◆ backwardPressureEnthalpyRegion3()

static double SteamSystemModelerTool::backwardPressureEnthalpyRegion3 ( double  pressure,
double  enthalpy 
)
staticprivate

Uses linear interpolation to goal seek region 3 using pressure and enthalpy

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
Returns
double, temperature in Kelvins

◆ backwardPressureEntropyRegion1()

static double SteamSystemModelerTool::backwardPressureEntropyRegion1 ( double  pressure,
double  entropy 
)
staticprivate

Calculates temperature based on pressure and entropy for region 1

Parameters
pressuredouble, pressure in MPa
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvins

◆ backwardPressureEntropyRegion2A()

static double SteamSystemModelerTool::backwardPressureEntropyRegion2A ( double  pressure,
double  entropy 
)
staticprivate

Calculates temperature based on pressure and entropy for region 2A

Parameters
pressuredouble, pressure in MPa
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvins

◆ backwardPressureEntropyRegion2AExact()

static double SteamSystemModelerTool::backwardPressureEntropyRegion2AExact ( double  pressure,
double  entropy 
)
staticprivate

Returns a more accurate temperature than backwardPressureEntropyRegion2A

Parameters
pressuredouble, pressure in MPa
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvin

◆ backwardPressureEntropyRegion2B()

static double SteamSystemModelerTool::backwardPressureEntropyRegion2B ( double  pressure,
double  entropy 
)
staticprivate

Calculates temperature based on pressure and entropy for region 2B

Parameters
pressuredouble, pressure in MPa
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvins

◆ backwardPressureEntropyRegion2BExact()

static double SteamSystemModelerTool::backwardPressureEntropyRegion2BExact ( double  pressure,
double  entropy 
)
staticprivate

Returns a more accurate temperature than backwardPressureEntropyRegion2B

Parameters
pressuredouble, pressure in MPa
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvin

◆ backwardPressureEntropyRegion2C()

static double SteamSystemModelerTool::backwardPressureEntropyRegion2C ( double  pressure,
double  entropy 
)
staticprivate

Calculates temperature based on pressure and entropy for region 2C

Parameters
pressuredouble, pressure in MPa
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvins

◆ backwardPressureEntropyRegion2CExact()

static double SteamSystemModelerTool::backwardPressureEntropyRegion2CExact ( double  pressure,
double  entropy 
)
staticprivate

Returns a more accurate temperature than backwardPressureEntropyRegion2C

Parameters
pressuredouble, pressure in MPa
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvin

◆ backwardPressureEntropyRegion3()

static double SteamSystemModelerTool::backwardPressureEntropyRegion3 ( double  pressure,
double  entropy 
)
staticprivate

Uses linear interpolation to goal seek region 3 using pressure and entropy

Parameters
pressuredouble, pressure in MPa
enthalpydouble, specific enthalpy in kJ/kg
entropydouble, specific entropy in kJ/kg/K
Returns
double, temperature in Kelvins

◆ boundaryByPressureRegion3to2()

static double SteamSystemModelerTool::boundaryByPressureRegion3to2 ( const double  p)
inlinestaticprivate

Calculates the boundary temperature associated with the given pressure

Parameters
pdouble, pressure in MPa
Returns
double, temperature in Kelvins

Definition at line 422 of file SteamSystemModelerTool.h.

◆ boundaryByTemperatureRegion3to2()

static double SteamSystemModelerTool::boundaryByTemperatureRegion3to2 ( const double  t)
inlinestaticprivate

Calculates the boundary pressure associated with the given temperature

Parameters
tdouble, temperature in Kelvins
Returns
double, pressure in MPa

Definition at line 411 of file SteamSystemModelerTool.h.

◆ generatePoint()

static Point SteamSystemModelerTool::generatePoint ( int  region,
SteamSystemModelerTool::Key  key,
double  var1,
double  var2 
)
staticprivate

Generates a data point

Parameters
regionint, region of substance
keystring, property such as specificEnthalpy or specificEntropy
var1double, first value
var2double, second value
Returns
Point, a point with x-value and y-value

◆ linearTestPoint()

static double SteamSystemModelerTool::linearTestPoint ( double  X,
Point  point1,
Point  point2 
)
staticprivate

Uses linear extrapolation to determine the location of X relative to both points

Parameters
Xdouble, x-value
point1Point, the first point
point2Point, the second point
Returns
double, y-value

◆ region1()

static SteamPropertiesOutput SteamSystemModelerTool::region1 ( double  temperature,
double  pressure 
)
staticprivate

Calculates the steam properties using region 1 equations

Parameters
temperaturedouble, temperature in Kelvin
pressuredouble, pressure in MPa
Returns
SteamPropertiesOutput, steam properties

◆ region2()

static SteamPropertiesOutput SteamSystemModelerTool::region2 ( double  temperature,
double  pressure 
)
staticprivate

Calculates the steam properties using region 2 equations

Parameters
temperaturedouble, temperature in Kelvin
pressuredouble, pressure in MPa
Returns
SteamProperties::Output, steam properties

◆ region3()

static SteamPropertiesOutput SteamSystemModelerTool::region3 ( double  temperature,
double  pressure 
)
staticprivate

Calculates the steam properties using region 3 equations

Parameters
temperaturedouble, temperature in Kelvin
pressuredouble, pressure in MPa
Returns
SteamProperties::Output, steam properties

◆ region4()

static double SteamSystemModelerTool::region4 ( double  temperature)
staticprivate

Calculates the steam properties using region 4 equations (saturated properties)

Parameters
temperaturedouble, temperature in Kelvin
pressuredouble, pressure in MPa
Returns
SteamProperties::Output, steam properties

◆ regionSelect()

static int SteamSystemModelerTool::regionSelect ( double  pressure,
double  temperature 
)
staticprivate

Determines the IAPWS region based on pressure and temperature

Parameters
pressuredouble, pressure in MPa
temperaturedouble, temperature in Kelvins
Returns
int, region number

Friends And Related Symbol Documentation

◆ SaturatedProperties

friend class SaturatedProperties
friend

Definition at line 427 of file SteamSystemModelerTool.h.

◆ SteamProperties

friend class SteamProperties
friend

Definition at line 426 of file SteamSystemModelerTool.h.

Member Data Documentation

◆ PRESSURE_CRIT

constexpr double SteamSystemModelerTool::PRESSURE_CRIT = 22.064
staticconstexprprivate

Critical Pressure of Water MPa

Definition at line 383 of file SteamSystemModelerTool.h.

◆ PRESSURE_MAX

constexpr double SteamSystemModelerTool::PRESSURE_MAX = 100
staticconstexprprivate

Maximum Pressure of Water MPa

Definition at line 393 of file SteamSystemModelerTool.h.

◆ PRESSURE_MIN

constexpr double SteamSystemModelerTool::PRESSURE_MIN = 0.01
staticconstexprprivate

Minimum Pressure of Water MPa

Definition at line 365 of file SteamSystemModelerTool.h.

◆ PRESSURE_Tp

constexpr double SteamSystemModelerTool::PRESSURE_Tp = 16.5291643
staticconstexprprivate

Pressure of Water where ALL regions meet MPa

Definition at line 373 of file SteamSystemModelerTool.h.

◆ TEMPERATURE_CRIT

constexpr double SteamSystemModelerTool::TEMPERATURE_CRIT = 647.096
staticconstexprprivate

Critical Temperature of Water K

Definition at line 388 of file SteamSystemModelerTool.h.

◆ TEMPERATURE_MAX

constexpr double SteamSystemModelerTool::TEMPERATURE_MAX = 1073.15
staticconstexprprivate

Maximum Temperature of Water K

Definition at line 398 of file SteamSystemModelerTool.h.

◆ TEMPERATURE_MIN

constexpr double SteamSystemModelerTool::TEMPERATURE_MIN = 273.15
staticconstexprprivate

Minimum Temperature of Water K

Definition at line 369 of file SteamSystemModelerTool.h.

◆ TEMPERATURE_REGION3_MAX

constexpr double SteamSystemModelerTool::TEMPERATURE_REGION3_MAX = 863.15
staticconstexprprivate

Maximum Temperature of Water for Region 3 MPa

Definition at line 403 of file SteamSystemModelerTool.h.

◆ TEMPERATURE_Tp

constexpr double SteamSystemModelerTool::TEMPERATURE_Tp = 623.15
staticconstexprprivate

Temperature of Water where ALL regions meet; K

Definition at line 378 of file SteamSystemModelerTool.h.


The documentation for this class was generated from the following file: