CoolProp  6.6.1dev
An open-source fluid property and humid air property database
Static Public Member Functions | List of all members
CoolProp::PhaseEnvelopeRoutines Class Reference

Detailed Description

Definition at line 8 of file PhaseEnvelopeRoutines.h.

#include <PhaseEnvelopeRoutines.h>

Static Public Member Functions

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)
 

Member Function Documentation

◆ build()

void CoolProp::PhaseEnvelopeRoutines::build ( HelmholtzEOSMixtureBackend HEOS,
const std::string &  level = "" 
)
static

Build the phase envelope.

Parameters
HEOSThe HelmholtzEOSMixtureBackend instance to be used

Definition at line 14 of file PhaseEnvelopeRoutines.cpp.

◆ evaluate()

double CoolProp::PhaseEnvelopeRoutines::evaluate ( const PhaseEnvelopeData env,
parameters  output,
parameters  iInput1,
double  value1,
std::size_t &  i 
)
static

Definition at line 431 of file PhaseEnvelopeRoutines.cpp.

◆ finalize()

void CoolProp::PhaseEnvelopeRoutines::finalize ( HelmholtzEOSMixtureBackend HEOS)
static

Finalize the phase envelope and calculate maxima values, critical point, etc.

Parameters
HEOSThe HelmholtzEOSMixtureBackend instance to be used

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
envThe PhaseEnvelopeData instance to be used
iInputThe key for the variable type that is to be checked
valueThe value associated with iInput

Definition at line 649 of file PhaseEnvelopeRoutines.cpp.

◆ is_inside()

bool CoolProp::PhaseEnvelopeRoutines::is_inside ( const PhaseEnvelopeData env,
parameters  iInput1,
CoolPropDbl  value1,
parameters  iInput2,
CoolPropDbl  value2,
std::size_t &  iclosest,
SimpleState closest_state 
)
static

Determine whether a pair of inputs is inside or outside the phase envelope.

Parameters
envThe PhaseEnvelopeData instance to be used
iInput1The key for the first input
value1The value of the first input
iInput2The key for the second input
value2The value of the second input
iclosestThe index of the phase envelope for the closest point
closest_stateA SimpleState corresponding to the closest point found on the phase envelope

Definition at line 686 of file PhaseEnvelopeRoutines.cpp.

◆ refine()

void CoolProp::PhaseEnvelopeRoutines::refine ( HelmholtzEOSMixtureBackend HEOS,
const std::string &  level = "" 
)
static

Refine the phase envelope, adding points in places that are sparse.

Parameters
HEOSThe HelmholtzEOSMixtureBackend instance to be used

Definition at line 352 of file PhaseEnvelopeRoutines.cpp.


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