13 bool match_pair(
long iI1,
long iI2,
long I1,
long I2);
14 void sort_pair(
long *iInput1,
double *Value1,
long *iInput2,
double *Value2,
long I1,
long I2);
44 void operator=(
const double& value){this->value = value; this->is_cached =
true;};
46 operator bool()
const {
return is_cached;};
48 operator double()
const {
return value;};
50 void clear(){is_cached =
false; this->value = _HUGE;};
87 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
88 TypeName(const TypeName&); \
89 void operator=(const TypeName&)
92 #define DISALLOW_COPY_MOVE_AND_ASSIGN(TypeName) \
93 TypeName(const TypeName&); \
94 void operator=(const TypeName&); \
95 TypeName(TypeName&&); \
96 void operator=(const TypeName&&)
125 void update_twophase(
long iInput1,
double Value1,
long iInput2,
double Value2);
128 void update_Trho(
long iInput1,
double Value1,
long iInput2,
double Value2);
131 void update_Tp(
long iInput1,
double Value1,
long iInput2,
double Value2);
135 void update_ph(
long iInput1,
double Value1,
long iInput2,
double Value2,
double T0 = -1,
double rho0 = -1);
138 void update_ps(
long iInput1,
double Value1,
long iInput2,
double Value2);
141 void update_prho(
long iInput1,
double Value1,
long iInput2,
double Value2);
144 void update_hs(
long iInput1,
double Value1,
long iInput2,
double Value2);
147 void update_Ts(
long iInput1,
double Value1,
long iInput2,
double Value2);
150 void update_TTSE_LUT(
long iInput1,
double Value1,
long iInput2,
double Value2);
161 { std::cout <<
format(
"%s:%d: CoolPropStateClassSI::within_TTSE_range %d,%g,%d,%g,%s",__FILE__,__LINE__,iInput1,Value1,iInput2,Value2,this->
pFluid->
get_name().c_str()).c_str() << std::endl; }
227 double Tsat(
double Q);
257 void update(
long iInput1,
double Value1,
long iInput2,
double Value2,
double T0 = -1,
double rho0 = -1);
289 double T(
void){
return _T;};
291 double p(
void){
return _p;};
292 double Q(
void){
return _Q;};
527 void update(
long iInput1,
double Value1,
long iInput2,
double Value2);
double dhdp_constrho(void)
double d2pdv2_consts(void)
double conductivity(void)
double drhodp_along_sat_vapor(void)
double drhodT_constp(void)
void update_Ts(long iInput1, double Value1, long iInput2, double Value2)
double d2sdT2_constrho(void)
double interp_recip(double Q, double valueL, double valueV)
std::string brine_string
Temporary until solutions are fixed.
double dphi0_dDelta(double tau, double delta)
double d2hdT2_constp(void)
double keyed_output(long iInput)
Return an output based on the integer key for the term.
void disable_TTSE_LUT_writing(void)
Disable the writing of TTSE tables to file.
double isothermal_compressibility(void)
double dphir_dTau(double tau, double delta)
double dhdp_along_sat_vapor(void)
double Tsat(double Q)
Saturation temperature.
double dsdrho_constT(void)
void update_twophase(long iInput1, double Value1, long iInput2, double Value2)
void set_TTSESinglePhase_LUT_size(int Np, int Nh)
Over-ride the default size of the single-phase LUT.
double d2phir_dDelta_dTau(double tau, double delta)
void update_ps(long iInput1, double Value1, long iInput2, double Value2)
double dsdT_along_sat_vapor(void)
double dhdp_along_sat_liquid(void)
double d2sdrho2_constT(void)
void no_SatLSatV(void)
Stop it from adding the SatL and SatV class pointers.
CachedElement d2phir_dDelta2
double d2rhodp2_along_sat_liquid(void)
double dhdT_along_sat_vapor(void)
double drhodp_consth(void)
double d2rhodh2_constp(void)
CachedElement()
Default constructor.
void update_hs(long iInput1, double Value1, long iInput2, double Value2)
double d3phir_dDelta3(double tau, double delta)
double drhodp_along_sat_vapor(void)
double phir(double tau, double delta)
EXPORT_CODE int CONVENTION get_debug_level()
CachedElement d3phi0_dDelta_dTau2
double drhodh_constp(void)
double isobaric_expansion_coefficient(void)
bool match_pair(long iI1, long iI2, long I1, long I2)
double d2hdp2_along_sat_vapor(void)
double drhodT_along_sat_liquid(void)
double s(void)
Entropy in kJ/kg/K.
double d3phi0_dTau3(double tau, double delta)
double dhdT_along_sat_liquid(void)
void enable_TTSE_LUT(void)
Enable the TTSE.
double d3phir_dDelta_dTau2(double tau, double delta)
double d2rhodh2_constp(void)
double drhodp_consth(void)
double ddp_dTdp_along_sat(void)
Partial derivative w.r.t. pressure of dTdp along saturation curve.
void get_TTSESinglePhase_LUT_range(double *hmin, double *hmax, double *pmin, double *pmax)
Get the current range of the single-phase LUT.
double dhdT_along_sat_vapor(void)
std::string getName() const
Base class for simplified brine/solution models.
void rho_smoothed(double xend, double &rho_spline, double &dsplinedh, double &dsplinedp)
Density corresponding to the smoothed derivatives in the region of x=0 to x=xend. ...
double surface_tension(void)
double isothermal_compressibility(void)
IncompressibleLiquid * pIncompLiquid
A pointer to the class for an incompressible liquid.
double d2pdT2_constrho(void)
void update(long iInput1, double Value1, long iInput2, double Value2, double T0=-1, double rho0=-1)
double d2hdp2_along_sat_liquid(void)
double dhdrho_constp(void)
double d2rhodp2_constT(void)
double d2phi0_dDelta2(double tau, double delta)
double p(void)
Pressure in kPa.
double drhodp_constT(void)
double d2rhodp2_along_sat_vapor(void)
EXPORT_CODE int CONVENTION get_standard_unit_system(void)
double ddT_dTdp_along_sat(void)
Partial derivative w.r.t. temperature of dTdp along saturation curve.
bool isenabled_TTSE_LUT(void)
Check if TTSE is enabled.
double drhodh_constp_smoothed(double xend)
A smoothed version of the derivative using a spline curve in the region of x=0 to x=xend...
double d3phi0_dDelta2_dTau(double tau, double delta)
CachedElement d2phir_dDelta_dTau
std::string get_name()
Returns a std::string with the name of the fluid.
double d2rhodp2_along_sat_liquid(void)
double dsdrho_constp(void)
CoolPropStateClassSI copy(void)
double d2sdp2_constT(void)
Base class for simplified brine/solution models.
double dphi0_dTau(double tau, double delta)
double dpdrho_consth(void)
CachedElement d3phir_dDelta2_dTau
double d2hdp2_constT(void)
Fluid * pFluid
A pointer to a CoolProp fluid.
void remove_saturation_states(void)
Fluid is the abstract base class that is employed by all the other fluids.
double d2sdT2_constp(void)
void operator=(const double &value)
Assignment operator - sets the value and sets the flag.
double convert_from_SI_to_unit_system(long iInput, double value, int new_system)
double B_over_D_TTSE(double _p, double _h)
Get the ratio directly which is just a bit faster.
double drhodT_along_sat_vapor(void)
double d2sdp2_along_sat_liquid(void)
void set_TTSESinglePhase_LUT_range(double hmin, double hmax, double pmin, double pmax)
Over-ride the default range of the single-phase LUT.
double d2phir_dDelta2(double tau, double delta)
CachedElement d2phi0_dTau2
void disable_EXTTP(void)
Disable the extended two-phase calculations.
void get_TTSESinglePhase_LUT_range(double *hmin, double *hmax, double *pmin, double *pmax)
Get the current range of the single-phase LUT.
double dsdrho_constp(void)
bool within_range(long iInput1, double Input1, long iInput2, double Input2)
See if the inputs are within range.
CachedElement d2phi0_dDelta_dTau
double d2pdrho2_constT(void)
double d2sdp2_along_sat_vapor(void)
bool isenabled_TTSE_LUT_writing(void)
Check if the writing of TTSE tables to file is enabled.
double dhdrho_constT(void)
double drhodp_consth_smoothed(double xend)
A smoothed version of the derivative using a spline curve in the region of x=0 to x=xend...
double dpdrho_constT(void)
double dhdrho_constT(void)
double d2sdp2_constT(void)
TTSESinglePhaseTableClass TTSESinglePhase
void update_TTSE_LUT(long iInput1, double Value1, long iInput2, double Value2)
double dhdp_along_sat_liquid(void)
CachedElement d3phir_dDelta_dTau2
double cv(void)
Constant volume specific heat in kJ/kg/K.
double dTdp_along_sat(void)
Derivative of temperature w.r.t. pressure along saturation curve.
double d2hdp2_along_sat_vapor(void)
double d2hdp2_along_sat_liquid(void)
double cp(void)
Constant pressure specific heat in kJ/kg/K.
double drhodT_constp(void)
double dsdT_along_sat_liquid(void)
void update_incompressible(long iInput1, double Value1, long iInput2, double Value2)
double d2hdT2_constrho(void)
void update_ph(long iInput1, double Value1, long iInput2, double Value2, double T0=-1, double rho0=-1)
double d2Tdp2_along_sat(void)
double d2sdrho2_constT(void)
double d2hdT2_constrho(void)
double dsdrho_constT(void)
double d2hdT2_constp(void)
double dsdp_along_sat_vapor(void)
CachedElement dphi0_dDelta
void set_TTSESat_LUT_size(int N)
Over-ride the default size of both of the saturation LUT.
double d2rhodT2_constp(void)
double dphir_dDelta(double tau, double delta)
double B_TTSE(double _p, double _h)
Evaluate the B term from TTSE method.
CachedElement d3phi0_dTau3
double d2rhodp2_along_sat_vapor(void)
double h(void)
Enthalpy in kJ/kg.
double fundamental_derivative_of_gas_dynamics(void)
double dhdT_along_sat_liquid(void)
double d2Tdp2_along_sat(void)
Second derivative of temperature w.r.t. pressure along saturation curve.
void update_prho(long iInput1, double Value1, long iInput2, double Value2)
double drhodT_along_sat_liquid(void)
CachedElement d3phi0_dDelta2_dTau
void set_TTSESinglePhase_LUT_range(double hmin, double hmax, double pmin, double pmax)
double d2phir_dTau2(double tau, double delta)
double conversion_factor(std::string num)
double d2pdrho2_constT(void)
double d2sdT2_constrho(void)
double d3phi0_dDelta_dTau2(double tau, double delta)
void clear()
Clear the flag and the value.
double drhodh_constp(void)
double d2sdp2_along_sat_vapor(void)
double dsdT_along_sat_liquid(void)
void sort_pair(long *iInput1, double *Value1, long *iInput2, double *Value2, long I1, long I2)
void rho_smoothed(double xend, double &rho_spline, double &dsplinedh, double &dsplinedp)
Density corresponding to the smoothed derivatives in the region of x=0 to x=xend. ...
double drhodT_along_sat_vapor(void)
double drhodh_constp_smoothed(double xend)
CachedElement dphir_dDelta
void enable_TTSE_LUT_writing(void)
Enable the writing of TTSE tables to file.
CachedElement d3phir_dDelta3
double phi0(double tau, double delta)
double isobaric_expansion_coefficient(void)
CachedElement d3phi0_dDelta3
double d2sdp2_along_sat_liquid(void)
void update(long iInput1, double Value1, long iInput2, double Value2)
double d2hdp2_constT(void)
CoolPropStateClassSI * SatV
double dsdT_constrho(void)
double dhdT_constrho(void)
void enable_EXTTP(void)
Enable the extended two-phase calculations.
void check_saturated_quality(double Q)
double drhodp_along_sat_liquid(void)
bool within_TTSE_range(long iInput1, double Value1, long iInput2, double Value2)
Check whether within the TTSE range.
double conductivity(void)
Thermal conductivity in kJ/kg/K.
double drhodp_constT(void)
double dsdp_along_sat_liquid(void)
std::string get_name(void)
Get the name of the fluid.
double d3phir_dTau3(double tau, double delta)
double dsdT_constrho(void)
double d3phi0_dDelta3(double tau, double delta)
double dsdp_along_sat_liquid(void)
double dhdp_along_sat_vapor(void)
double dpdrho_consth(void)
void add_saturation_states(void)
double dpdrho_constT(void)
void update_Tp(long iInput1, double Value1, long iInput2, double Value2)
IncompressibleSolution * pIncompSolution
A pointer to the class for an incompressible solution.
void disable_TTSE_LUT(void)
Disable the TTSE.
double dpdT_constrho(void)
bool isenabled_EXTTP(void)
Check if extended two-phase calculations are enabled.
double d2sdT2_constp(void)
void update_Trho(long iInput1, double Value1, long iInput2, double Value2)
CoolPropStateClassSI * SatL
CachedElement d2phi0_dDelta2
double dsdp_along_sat_vapor(void)
double d2phi0_dTau2(double tau, double delta)
double dhdrho_constp(void)
double d2hdrho2_constT(void)
double d2pdT2_constrho(void)
double d2phi0_dDelta_dTau(double tau, double delta)
double dhdT_constrho(void)
double d2hdrho2_constT(void)
double interp_linear(double Q, double valueL, double valueV)
Extended two-phase calculations need different interpolation functions.
double keyed_output(long iInput)
Returns an output based on the key provided where iInput is one of iT,iP,iH,iS,....
double dsdT_along_sat_vapor(void)
double drhodp_consth_smoothed(double xend)
A smoothed version of the derivative using a spline curve in the region of x=0 to x=xend...
double d2rhodp2_constT(void)
double dTdp_along_sat(void)
Derivative of temperature w.r.t. pressure along saturation curve.
CachedElement d2phir_dTau2
double d3phir_dDelta2_dTau(double tau, double delta)
double d2rhodT2_constp(void)
double dpdT_constrho(void)
double drhodp_along_sat_liquid(void)
CachedElement d3phir_dTau3