Definition at line 8 of file PhaseEnvelopeRoutines.h.
#include <PhaseEnvelopeRoutines.h>
|
static void | build (HelmholtzEOSMixtureBackend &HEOS, const std::string &level="") |
| Build the phase envelope. More...
|
|
static void | refine (HelmholtzEOSMixtureBackend &HEOS, const std::string &level="") |
| Refine the phase envelope, adding points in places that are sparse. More...
|
|
static void | finalize (HelmholtzEOSMixtureBackend &HEOS) |
| Finalize the phase envelope and calculate maxima values, critical point, etc. More...
|
|
static std::vector< std::pair< std::size_t, std::size_t > > | find_intersections (const PhaseEnvelopeData &env, parameters iInput, double value) |
| Determine which indices bound a given value. More...
|
|
static bool | is_inside (const PhaseEnvelopeData &env, parameters iInput1, CoolPropDbl value1, parameters iInput2, CoolPropDbl value2, std::size_t &iclosest, SimpleState &closest_state) |
| Determine whether a pair of inputs is inside or outside the phase envelope. More...
|
|
static double | evaluate (const PhaseEnvelopeData &env, parameters output, parameters iInput1, double value1, std::size_t &i) |
|
◆ build()
◆ evaluate()
◆ finalize()
Finalize the phase envelope and calculate maxima values, critical point, etc.
- Parameters
-
Definition at line 505 of file PhaseEnvelopeRoutines.cpp.
◆ find_intersections()
std::vector< std::pair< std::size_t, std::size_t > > CoolProp::PhaseEnvelopeRoutines::find_intersections |
( |
const PhaseEnvelopeData & |
env, |
|
|
parameters |
iInput, |
|
|
double |
value |
|
) |
| |
|
static |
Determine which indices bound a given value.
If you provide pressure for instance, it will return each of the indices that bound crossings in the pressure versus rhov curve. Thus this information can be used to determine whether another input is "inside" or "outside" the phase boundary.
- Parameters
-
env | The PhaseEnvelopeData instance to be used |
iInput | The key for the variable type that is to be checked |
value | The value associated with iInput |
Definition at line 649 of file PhaseEnvelopeRoutines.cpp.
◆ is_inside()
Determine whether a pair of inputs is inside or outside the phase envelope.
- Parameters
-
env | The PhaseEnvelopeData instance to be used |
iInput1 | The key for the first input |
value1 | The value of the first input |
iInput2 | The key for the second input |
value2 | The value of the second input |
iclosest | The index of the phase envelope for the closest point |
closest_state | A SimpleState corresponding to the closest point found on the phase envelope |
Definition at line 686 of file PhaseEnvelopeRoutines.cpp.
◆ refine()
The documentation for this class was generated from the following files: