CoolProp
PhaseEnvelopeRoutines.h
1 #ifndef PHASE_ENVELOPE_ROUTINES_H
2 #define PHASE_ENVELOPE_ROUTINES_H
3 
4 #include "HelmholtzEOSMixtureBackend.h"
5 
6 namespace CoolProp{
7 
9  public:
14  static void build(HelmholtzEOSMixtureBackend &HEOS, const std::string &level = "");
15 
20  static void refine(HelmholtzEOSMixtureBackend &HEOS, const std::string &level = "");
21 
26  static void finalize(HelmholtzEOSMixtureBackend &HEOS);
27 
39  static std::vector<std::pair<std::size_t, std::size_t> > find_intersections(const PhaseEnvelopeData &env, parameters iInput, double value);
40 
51  static bool is_inside(const PhaseEnvelopeData &env, parameters iInput1, CoolPropDbl value1, parameters iInput2, CoolPropDbl value2, std::size_t &iclosest, SimpleState &closest_state);
52 
53  static double evaluate(const PhaseEnvelopeData &env, parameters output, parameters iInput1, double value1, std::size_t &i);
54 };
55 
56 } /* namespace CoolProp */
57 
58 #endif
Definition: PhaseEnvelopeRoutines.h:8
static void build(HelmholtzEOSMixtureBackend &HEOS, const std::string &level="")
Build the phase envelope.
Definition: PhaseEnvelopeRoutines.cpp:14
static void finalize(HelmholtzEOSMixtureBackend &HEOS)
Finalize the phase envelope and calculate maxima values, critical point, etc.
Definition: PhaseEnvelopeRoutines.cpp:482
A data structure to hold the data for a phase envelope.
Definition: PhaseEnvelope.h:14
static void refine(HelmholtzEOSMixtureBackend &HEOS, const std::string &level="")
Refine the phase envelope, adding points in places that are sparse.
Definition: PhaseEnvelopeRoutines.cpp:365
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.
Definition: PhaseEnvelopeRoutines.cpp:646
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.
Definition: PhaseEnvelopeRoutines.cpp:621
Definition: HelmholtzEOSMixtureBackend.h:22
This file contains flash routines in which the state is unknown, and a solver of some kind must be us...
Definition: AbstractState.h:19
parameters
Define some constants that will be used throughout These are constants for the input and output para...
Definition: DataStructures.h:49
Definition: DataStructures.h:16