CoolProp
6.6.1dev
An open-source fluid property and humid air property database
|
This class is a friend class of HelmholtzEOSMixtureBackend, therefore the static methods contained in it have access to the private and protected variables in the HelmholtzEOSMixtureBackend instance.
In this way the Flash routines can be kept in their own separate file and not pollute the HelmholtzEOSMixtureBackend namespace
Definition at line 28 of file FlashRoutines.h.
#include <FlashRoutines.h>
Classes | |
struct | HS_flash_singlephaseOptions |
struct | HS_flash_twophaseOptions |
|
inlinestatic |
Definition at line 42 of file FlashRoutines.h.
|
static |
A generic flash routine for the pairs (T,D), (T,H), (T,S), and (T,U). Similar analysis is needed
HEOS | The HelmholtzEOSMixtureBackend to be used |
other | The index for the other input from CoolProp::parameters; allowed values are iDmolar, iHmolar, iSmolar, iUmolar |
Definition at line 1768 of file FlashRoutines.cpp.
|
static |
Flash for given density and pressure
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 185 of file FlashRoutines.cpp.
|
static |
Flash for given molar density and (molar) quality
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 253 of file FlashRoutines.cpp.
|
inlinestatic |
Definition at line 32 of file FlashRoutines.h.
|
static |
Flash for given molar enthalpy and (molar) quality
HEOS | The HelmholtzEOSMixtureBackend to be used |
Tguess | (optional) The guess temperature in K to start from, ignored if < 0 |
Definition at line 278 of file FlashRoutines.cpp.
|
static |
A flash routine for (H,S)
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 1976 of file FlashRoutines.cpp.
|
static |
Randomly generate a single phase set of inputs for T and p - searches entire single-phase region
HEOS | The HelmholtzEOSMixtureBackend to be used |
T | The temperature in K |
p | The pressure in Pa |
Definition at line 1970 of file FlashRoutines.cpp.
|
static |
Definition at line 1920 of file FlashRoutines.cpp.
|
static |
Definition at line 1886 of file FlashRoutines.cpp.
|
static |
A generic flash routine for the pairs (D,P), (D,H), (D,S), and (D,U). Similar analysis is needed
HEOS | The HelmholtzEOSMixtureBackend to be used |
other | The index for the other input from CoolProp::parameters; allowed values are iP, iHmolar, iSmolar, iUmolar |
Something homogeneous to avoid flash calls
TODO: separate TL and TV for ppure
Definition at line 1053 of file FlashRoutines.cpp.
|
static |
A generic flash routine for the pairs (D,H), (D,S), and (D,U) for twophase state. Similar analysis is needed
HEOS | The HelmholtzEOSMixtureBackend to be used |
other | The index for the other input from CoolProp::parameters; allowed values are iP, iHmolar, iSmolar, iUmolar |
Definition at line 1014 of file FlashRoutines.cpp.
|
static |
A generic flash routine for the pairs (P,H), (P,S), and (P,U). Similar analysis is needed
HEOS | The HelmholtzEOSMixtureBackend to be used |
other | The index for the other input from CoolProp::parameters; allowed values are iHmolar, iSmolar, iUmolar |
Definition at line 1520 of file FlashRoutines.cpp.
|
static |
The single-phase flash routine for the pairs (P,H), (P,S), and (P,U). Similar analysis is needed
HEOS | The HelmholtzEOSMixtureBackend to be used |
other | The index for the other input from CoolProp::parameters; allowed values are iHmolar, iSmolar, iUmolar |
value | The value of the other input |
Tmin | The lower temperature limit [K] |
Tmax | The higher temperature limit [K] |
phase | The phase of the fluid that we should get back |
Definition at line 1391 of file FlashRoutines.cpp.
|
static |
The single-phase flash routine for the pairs (P,H), (P,S), and (P,U). Similar analysis is needed
HEOS | The HelmholtzEOSMixtureBackend to be used |
other | The index for the other input from CoolProp::parameters; allowed values are iHmolar, iSmolar, iUmolar |
T0 | The initial guess value for the temperature [K] |
rhomolar0 | The initial guess value for the density [mol/m^3] |
Definition at line 1301 of file FlashRoutines.cpp.
|
static |
Flash for given pressure and (molar) quality
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 568 of file FlashRoutines.cpp.
|
static |
Flash for given pressure and (molar) quality with guess values provided
HEOS | The HelmholtzEOSMixtureBackend to be used |
guess | The GuessesStructure to be used |
Definition at line 739 of file FlashRoutines.cpp.
|
static |
Flash for given pressure and temperature
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 88 of file FlashRoutines.cpp.
|
static |
Flash for given pressure and temperature for mixtures
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 15 of file FlashRoutines.cpp.
|
static |
Flash for given pressure and temperature with guess values provided for molar density
HEOS | The HelmholtzEOSMixtureBackend to be used |
guess | The GuessesStructure to be used |
Definition at line 799 of file FlashRoutines.cpp.
|
static |
Flash for mixture given temperature or pressure and (molar) quality
HEOS | The HelmholtzEOSMixtureBackend to be used |
other | The parameter that is imposed, either iT or iP |
value | The value for the imposed parameter |
Definition at line 824 of file FlashRoutines.cpp.
|
static |
Flash for given molar entropy and (molar) quality
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 305 of file FlashRoutines.cpp.
|
static |
Flash for given temperature and (molar) quality
HEOS | The HelmholtzEOSMixtureBackend to be used |
Definition at line 342 of file FlashRoutines.cpp.
|
static |
Flash for given temperature and (molar) quality with guess values provided
HEOS | The HelmholtzEOSMixtureBackend to be used |
guess | The GuessesStructure to be used |
Definition at line 766 of file FlashRoutines.cpp.
|
static |
The flash routine for T given and one of H,S,U
HEOS | The HelmholtzEOSMixtureBackend to be used |
T | The temperature |
value | The value for the other variable |
other | The index for the other input from CoolProp::parameters; allowed values are iDmolar, iHmolar, iSmolar, iUmolar |
Definition at line 1622 of file FlashRoutines.cpp.
|
static |
Use Peng-Robinson to get guess for temperature for given density and pressure.
Definition at line 161 of file FlashRoutines.cpp.