CoolProp
6.6.0
An open-source fluid property and humid air property database
|
Go to the source code of this file.
Macros | |
#define | EXPORT_CODE |
This file defines an interface for shared library (DLL) wrapping. More... | |
#define | CONVENTION |
Functions | |
EXPORT_CODE double CONVENTION | Props1SI (const char *FluidName, const char *Output) |
EXPORT_CODE void CONVENTION | Props1SImulti (const char *Outputs, char *backend, const char *FluidNames, const double *fractions, const long length_fractions, double *result, long *resdim1) |
EXPORT_CODE double CONVENTION | PropsSI (const char *Output, const char *Name1, double Prop1, const char *Name2, double Prop2, const char *Ref) |
EXPORT_CODE void CONVENTION | PropsSImulti (const char *Outputs, const char *Name1, double *Prop1, const long size_Prop1, const char *Name2, double *Prop2, const long size_Prop2, char *backend, const char *FluidNames, const double *fractions, const long length_fractions, double *result, long *resdim1, long *resdim2) |
EXPORT_CODE long CONVENTION | PhaseSI (const char *Name1, double Prop1, const char *Name2, double Prop2, const char *Ref, char *phase, int n) |
EXPORT_CODE long CONVENTION | get_global_param_string (const char *param, char *Output, int n) |
EXPORT_CODE long CONVENTION | get_parameter_information_string (const char *key, char *Output, int n) |
EXPORT_CODE long CONVENTION | get_fluid_param_string (const char *fluid, const char *param, char *Output, int n) |
EXPORT_CODE void CONVENTION | set_config_string (const char *key, const char *val) |
Set configuration string. More... | |
EXPORT_CODE void CONVENTION | set_config_double (const char *key, const double val) |
Set configuration numerical value as double. More... | |
EXPORT_CODE void CONVENTION | set_config_bool (const char *key, const bool val) |
Set configuration value as a boolean. More... | |
EXPORT_CODE void CONVENTION | set_departure_functions (const char *string_data, long *errcode, char *message_buffer, const long buffer_length) |
Set the departure functions in the departure function library from a string format. More... | |
EXPORT_CODE int CONVENTION | set_reference_stateS (const char *Ref, const char *reference_state) |
EXPORT_CODE int CONVENTION | set_reference_stateD (const char *Ref, double T, double rhomolar, double hmolar0, double smolar0) |
EXPORT_CODE void CONVENTION | propssi_ (const char *Output, const char *Name1, const double *Prop1, const char *Name2, const double *Prop2, const char *Ref, double *output) |
FORTRAN 77 style wrapper of the PropsSI function This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
EXPORT_CODE double CONVENTION | F2K (double T_F) |
Convert from degrees Fahrenheit to Kelvin (useful primarily for testing) More... | |
EXPORT_CODE double CONVENTION | K2F (double T_K) |
Convert from Kelvin to degrees Fahrenheit (useful primarily for testing) More... | |
EXPORT_CODE long CONVENTION | get_param_index (const char *param) |
Get the index for a parameter "T", "P", etc. More... | |
EXPORT_CODE long CONVENTION | get_input_pair_index (const char *param) |
Get the index for an input pair for AbstractState.update function. More... | |
EXPORT_CODE long CONVENTION | redirect_stdout (const char *file) |
Redirect all output that would go to console (stdout) to a file. More... | |
EXPORT_CODE int CONVENTION | get_debug_level () |
EXPORT_CODE void CONVENTION | set_debug_level (int level) |
EXPORT_CODE double CONVENTION | saturation_ancillary (const char *fluid_name, const char *output, int Q, const char *input, double value) |
EXPORT_CODE double CONVENTION | HAPropsSI (const char *Output, const char *Name1, double Prop1, const char *Name2, double Prop2, const char *Name3, double Prop3) |
DLL wrapper of the HAPropsSI function. More... | |
EXPORT_CODE double CONVENTION | cair_sat (double T) |
Humid air saturation specific heat at 1 atmosphere, based on a correlation from EES. More... | |
EXPORT_CODE void CONVENTION | hapropssi_ (const char *Output, const char *Name1, const double *Prop1, const char *Name2, const double *Prop2, const char *Name3, const double *Prop3, double *output) |
FORTRAN 77 style wrapper of the HAPropsSI function. More... | |
EXPORT_CODE double CONVENTION | HAProps (const char *Output, const char *Name1, double Prop1, const char *Name2, double Prop2, const char *Name3, double Prop3) |
DLL wrapper of the HAProps function. More... | |
EXPORT_CODE void CONVENTION | haprops_ (const char *Output, const char *Name1, const double *Prop1, const char *Name2, const double *Prop2, const char *Name3, const double *Prop3, double *output) |
FORTRAN 77 style wrapper of the HAProps function. More... | |
EXPORT_CODE long CONVENTION | AbstractState_factory (const char *backend, const char *fluids, long *errcode, char *message_buffer, const long buffer_length) |
Generate an AbstractState instance, return an integer handle to the state class generated to be used in the other low-level accessor functions. More... | |
EXPORT_CODE void CONVENTION | AbstractState_fluid_names (const long handle, char *fluids, long *errcode, char *message_buffer, const long buffer_length) |
Get the fluid names for the AbstractState. More... | |
EXPORT_CODE void CONVENTION | AbstractState_free (const long handle, long *errcode, char *message_buffer, const long buffer_length) |
Release a state class generated by the low-level interface wrapper. More... | |
EXPORT_CODE void CONVENTION | AbstractState_set_fractions (const long handle, const double *fractions, const long N, long *errcode, char *message_buffer, const long buffer_length) |
Set the fractions (mole, mass, volume) for the AbstractState. More... | |
EXPORT_CODE void CONVENTION | AbstractState_get_mole_fractions (const long handle, double *fractions, const long maxN, long *N, long *errcode, char *message_buffer, const long buffer_length) |
Get the molar fractions for the AbstractState. More... | |
EXPORT_CODE void CONVENTION | AbstractState_get_mole_fractions_satState (const long handle, const char *saturated_state, double *fractions, const long maxN, long *N, long *errcode, char *message_buffer, const long buffer_length) |
Get the molar fractions for the AbstractState and the desired saturated State. More... | |
EXPORT_CODE double CONVENTION | AbstractState_get_fugacity (const long handle, const long i, long *errcode, char *message_buffer, const long buffer_length) |
Return the fugacity of the i-th component of the mixture. More... | |
EXPORT_CODE double CONVENTION | AbstractState_get_fugacity_coefficient (const long handle, const long i, long *errcode, char *message_buffer, const long buffer_length) |
Return the fugacity coefficient of the i-th component of the mixture. More... | |
EXPORT_CODE void CONVENTION | AbstractState_update (const long handle, const long input_pair, const double value1, const double value2, long *errcode, char *message_buffer, const long buffer_length) |
Update the state of the AbstractState. More... | |
EXPORT_CODE void CONVENTION | AbstractState_specify_phase (const long handle, const char *phase, long *errcode, char *message_buffer, const long buffer_length) |
Specify the phase to be used for all further calculations. More... | |
EXPORT_CODE void CONVENTION | AbstractState_unspecify_phase (const long handle, long *errcode, char *message_buffer, const long buffer_length) |
Unspecify the phase to be used for all further calculations. More... | |
EXPORT_CODE double CONVENTION | AbstractState_keyed_output (const long handle, const long param, long *errcode, char *message_buffer, const long buffer_length) |
Get an output value from the AbstractState using an integer value for the desired output value. More... | |
EXPORT_CODE double CONVENTION | AbstractState_first_saturation_deriv (const long handle, const long Of, const long Wrt, long *errcode, char *message_buffer, const long buffer_length) |
Calculate a saturation derivative from the AbstractState using integer values for the desired parameters. More... | |
EXPORT_CODE double CONVENTION | AbstractState_first_partial_deriv (const long handle, const long Of, const long Wrt, const long Constant, long *errcode, char *message_buffer, const long buffer_length) |
Calculate the first partial derivative in homogeneous phases from the AbstractState using integer values for the desired parameters. More... | |
EXPORT_CODE double CONVENTION | AbstractState_second_two_phase_deriv (const long handle, const long Of1, const long Wrt1, const long Constant1, const long Wrt2, const long Constant2, long *errcode, char *message_buffer, const long buffer_length) |
Calculate the second partial derivative in homogeneous phases from the AbstractState using integer values for the desired parameters. More... | |
EXPORT_CODE double CONVENTION | AbstractState_second_partial_deriv (const long handle, const long Of1, const long Wrt1, const long Constant1, const long Wrt2, const long Constant2, long *errcode, char *message_buffer, const long buffer_length) |
Calculate the second partial derivative int two-phase region from the AbstractState using integer values for the desired parameters. More... | |
EXPORT_CODE double CONVENTION | AbstractState_first_two_phase_deriv_splined (const long handle, const long Of, const long Wrt, const long Constant, const double x_end, long *errcode, char *message_buffer, const long buffer_length) |
Calculate the first partial derivative in two-phase region with Spline - Approach from the AbstractState using integer values for the desired parameters Spline Approach "Methods to Increase the Robustness of Finite-Volume FlowModels in Thermodynamic Systems: Sylvain Quoilin, Ian Bell, Adriano Desideri, Pierre Dewallef and Vincent Lemort". More... | |
EXPORT_CODE double CONVENTION | AbstractState_first_two_phase_deriv (const long handle, const long Of, const long Wrt, const long Constant, long *errcode, char *message_buffer, const long buffer_length) |
Calculate the first partial derivative in homogeneous phases from the AbstractState using integer values for the desired parameters. More... | |
EXPORT_CODE void CONVENTION | AbstractState_update_and_common_out (const long handle, const long input_pair, const double *value1, const double *value2, const long length, double *T, double *p, double *rhomolar, double *hmolar, double *smolar, long *errcode, char *message_buffer, const long buffer_length) |
Update the state of the AbstractState and get an output value five common outputs (temperature, pressure, molar density, molar enthalpy and molar entropy) More... | |
EXPORT_CODE void CONVENTION | AbstractState_update_and_1_out (const long handle, const long input_pair, const double *value1, const double *value2, const long length, const long output, double *out, long *errcode, char *message_buffer, const long buffer_length) |
Update the state of the AbstractState and get one output value (temperature, pressure, molar density, molar enthalpy and molar entropy) More... | |
EXPORT_CODE void CONVENTION | AbstractState_update_and_5_out (const long handle, const long input_pair, const double *value1, const double *value2, const long length, long *outputs, double *out1, double *out2, double *out3, double *out4, double *out5, long *errcode, char *message_buffer, const long buffer_length) |
Update the state of the AbstractState and get an output value five common outputs (temperature, pressure, molar density, molar enthalpy and molar entropy) More... | |
EXPORT_CODE void CONVENTION | AbstractState_set_binary_interaction_double (const long handle, const long i, const long j, const char *parameter, const double value, long *errcode, char *message_buffer, const long buffer_length) |
Set binary interraction parrameter for mixtures. More... | |
EXPORT_CODE void CONVENTION | AbstractState_set_cubic_alpha_C (const long handle, const long i, const char *parameter, const double c1, const double c2, const double c3, long *errcode, char *message_buffer, const long buffer_length) |
Set cubic's alpha function parameters. More... | |
EXPORT_CODE void CONVENTION | AbstractState_set_fluid_parameter_double (const long handle, const long i, const char *parameter, const double value, long *errcode, char *message_buffer, const long buffer_length) |
Set some fluid parameter (ie volume translation for cubic) More... | |
EXPORT_CODE void CONVENTION | AbstractState_build_phase_envelope (const long handle, const char *level, long *errcode, char *message_buffer, const long buffer_length) |
Build the phase envelope. More... | |
EXPORT_CODE void CONVENTION | AbstractState_get_phase_envelope_data (const long handle, const long length, double *T, double *p, double *rhomolar_vap, double *rhomolar_liq, double *x, double *y, long *errcode, char *message_buffer, const long buffer_length) |
Get data from the phase envelope for the given mixture composition. More... | |
EXPORT_CODE void CONVENTION | AbstractState_get_phase_envelope_data_checkedMemory (const long handle, const long length, const long maxComponents, double *T, double *p, double *rhomolar_vap, double *rhomolar_liq, double *x, double *y, long *actual_length, long *actual_components, long *errcode, char *message_buffer, const long buffer_length) |
Get data from the phase envelope for the given mixture composition. More... | |
EXPORT_CODE void CONVENTION | AbstractState_build_spinodal (const long handle, long *errcode, char *message_buffer, const long buffer_length) |
Build the spinodal. More... | |
EXPORT_CODE void CONVENTION | AbstractState_get_spinodal_data (const long handle, const long length, double *tau, double *delta, double *M1, long *errcode, char *message_buffer, const long buffer_length) |
Get data for the spinodal curve. More... | |
EXPORT_CODE void CONVENTION | AbstractState_all_critical_points (const long handle, const long length, double *T, double *p, double *rhomolar, long *stable, long *errcode, char *message_buffer, const long buffer_length) |
Calculate all the critical points for a given composition. More... | |
EXPORT_CODE double CONVENTION | AbstractState_keyed_output_satState (const long handle, const char *saturated_state, const long param, long *errcode, char *message_buffer, const long buffer_length) |
Get an output value from the AbstractState using an integer value for the desired output value and desired saturated State. More... | |
EXPORT_CODE void CONVENTION | AbstractState_backend_name (const long handle, char *backend, long *errcode, char *message_buffer, const long buffer_length) |
Return the name of the backend used in the AbstractState. More... | |
EXPORT_CODE void CONVENTION | AbstractState_fluid_param_string (const long handle, const char *param, char *return_buffer, const long return_buffer_length, long *errcode, char *message_buffer, const long buffer_length) |
EXPORT_CODE int CONVENTION | AbstractState_phase (const long handle, long *errcode, char *message_buffer, const long buffer_length) |
EXPORT_CODE double CONVENTION | AbstractState_saturated_liquid_keyed_output (const long handle, const long param, long *errcode, char *message_buffer, const long buffer_length) |
EXPORT_CODE double CONVENTION | AbstractState_saturated_vapor_keyed_output (const long handle, const long param, long *errcode, char *message_buffer, const long buffer_length) |
EXPORT_CODE void CONVENTION | add_fluids_as_JSON (const char *backend, const char *fluidstring, long *errcode, char *message_buffer, const long buffer_length) |
Add fluids as a JSON-formatted string. More... | |
EXPORT_CODE int CONVENTION | C_is_valid_fluid_string (const char *fluidName) |
EXPORT_CODE int CONVENTION | C_extract_backend (const char *fluid_string, char *backend, const long backend_length, char *fluid, const long fluid_length) |
EXPORT_CODE double CONVENTION | PropsS (const char *Output, const char *Name1, double Prop1, const char *Name2, double Prop2, const char *Ref) |
EXPORT_CODE double CONVENTION | Props (const char *Output, const char Name1, double Prop1, const char Name2, double Prop2, const char *Ref) |
EXPORT_CODE double CONVENTION | Props1 (const char *FluidName, const char *Output) |
#define CONVENTION |
Definition at line 58 of file CoolPropLib.h.
#define EXPORT_CODE |
This file defines an interface for shared library (DLL) wrapping.
In general the functions defined here take strings which are 0-terminated (C-style), vectors of doubles are passed as double* and length These functions pass directly to equivalently named functions in CoolProp.h in the CoolProp namespace that take std::string, vector<double> etc.
Functions with the call type like EXPORT_CODE void CONVENTION AFunction(double, double); will be exported to the DLL
The exact symbol that will be exported depends on the values of the preprocessor macros COOLPROP_LIB, EXPORT_CODE, CONVENTION, etc.
In order to have 100% control over the export macros, you can specify EXPORT_CODE and CONVENTION directly. Check out CMakeLists.txt in the repo root to see some examples.
Definition at line 55 of file CoolPropLib.h.
EXPORT_CODE void CONVENTION AbstractState_all_critical_points | ( | const long | handle, |
const long | length, | ||
double * | T, | ||
double * | p, | ||
double * | rhomolar, | ||
long * | stable, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Calculate all the critical points for a given composition.
handle | The integer handle for the state class stored in memory |
length | The length of the buffers passed to this function |
T | The pointer to the array of temperature (K) |
p | The pointer to the array of pressure (Pa) |
rhomolar | The pointer to the array of molar density (m^3/mol) |
stable | The pointer to the array of boolean flags for whether the critical point is stable (1) or unstable (0) |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 953 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_backend_name | ( | const long | handle, |
char * | backend, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Return the name of the backend used in the AbstractState.
handle | The integer handle for the state class stored in memory |
backend | The char pointer the name is written to |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 1002 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_build_phase_envelope | ( | const long | handle, |
const char * | level, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Build the phase envelope.
handle | The integer handle for the state class stored in memory |
level | How much refining of the phase envelope ("none" to skip refining (recommended)) |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 852 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_build_spinodal | ( | const long | handle, |
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Build the spinodal.
handle | The integer handle for the state class stored in memory |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 923 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION AbstractState_factory | ( | const char * | backend, |
const char * | fluids, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Generate an AbstractState instance, return an integer handle to the state class generated to be used in the other low-level accessor functions.
backend | The backend you will use, "HEOS", "REFPROP", etc. |
fluids | '&' delimited list of fluids |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 498 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_first_partial_deriv | ( | const long | handle, |
const long | Of, | ||
const long | Wrt, | ||
const long | Constant, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Calculate the first partial derivative in homogeneous phases from the AbstractState using integer values for the desired parameters.
handle | The integer handle for the state class stored in memory |
Of | The parameter of which the derivative is being taken |
Wrt | The derivative with with respect to this parameter |
Constant | The parameter that is not affected by the derivative |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 682 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_first_saturation_deriv | ( | const long | handle, |
const long | Of, | ||
const long | Wrt, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Calculate a saturation derivative from the AbstractState using integer values for the desired parameters.
handle | The integer handle for the state class stored in memory |
Of | The parameter of which the derivative is being taken |
Wrt | The derivative with with respect to this parameter |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 670 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_first_two_phase_deriv | ( | const long | handle, |
const long | Of, | ||
const long | Wrt, | ||
const long | Constant, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Calculate the first partial derivative in homogeneous phases from the AbstractState using integer values for the desired parameters.
handle | The integer handle for the state class stored in memory |
Of | The parameter of which the derivative is being taken |
Wrt | The derivative with with respect to this parameter |
Constant | The parameter that is not affected by the derivative |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 725 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_first_two_phase_deriv_splined | ( | const long | handle, |
const long | Of, | ||
const long | Wrt, | ||
const long | Constant, | ||
const double | x_end, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Calculate the first partial derivative in two-phase region with Spline - Approach from the AbstractState using integer values for the desired parameters Spline Approach "Methods to Increase the Robustness of Finite-Volume FlowModels in Thermodynamic Systems: Sylvain Quoilin, Ian Bell, Adriano Desideri, Pierre Dewallef and Vincent Lemort".
handle | The integer handle for the state class stored in memory @x_end constant parameter for defining range of the spline, (usually 0.1 is used, 0..1 is possible) |
Of | The parameter of which the derivative is being taken |
Wrt | The derivative with with respect to this parameter |
Constant | The parameter that is not affected by the derivative |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 738 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_fluid_names | ( | const long | handle, |
char * | fluids, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get the fluid names for the AbstractState.
handle | The integer handle for the state class stored in memory |
fluids | LIST_STRING_DELIMETER (',') delimited list of fluids |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 509 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_fluid_param_string | ( | const long | handle, |
const char * | param, | ||
char * | return_buffer, | ||
const long | return_buffer_length, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Definition at line 1031 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_free | ( | const long | handle, |
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Release a state class generated by the low-level interface wrapper.
handle | The integer handle for the state class stored in memory |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 528 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_get_fugacity | ( | const long | handle, |
const long | i, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Return the fugacity of the i-th component of the mixture.
handle | The integer handle for the state class stored in memory |
i | i-th component of the mixture |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 607 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_get_fugacity_coefficient | ( | const long | handle, |
const long | i, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Return the fugacity coefficient of the i-th component of the mixture.
handle | The integer handle for the state class stored in memory |
i | i-th component of the mixture |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 618 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_get_mole_fractions | ( | const long | handle, |
double * | fractions, | ||
const long | maxN, | ||
long * | N, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get the molar fractions for the AbstractState.
handle | The integer handle for the state class stored in memory |
fractions | The array of fractions |
maxN | The length of the buffer for the fractions |
N | number of fluids |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 553 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_get_mole_fractions_satState | ( | const long | handle, |
const char * | saturated_state, | ||
double * | fractions, | ||
const long | maxN, | ||
long * | N, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get the molar fractions for the AbstractState and the desired saturated State.
handle | The integer handle for the state class stored in memory |
saturated_state | The string specifying the state (liquid or gas) |
fractions | The array of fractions |
maxN | The length of the buffer for the fractions |
N | number of fluids |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 571 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_get_phase_envelope_data | ( | const long | handle, |
const long | length, | ||
double * | T, | ||
double * | p, | ||
double * | rhomolar_vap, | ||
double * | rhomolar_liq, | ||
double * | x, | ||
double * | y, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get data from the phase envelope for the given mixture composition.
handle | The integer handle for the state class stored in memory |
length | The number of elements stored in the arrays (both inputs and outputs MUST be the same length) |
T | The pointer to the array of temperature (K) |
p | The pointer to the array of pressure (Pa) |
rhomolar_vap | The pointer to the array of molar density for vapor phase (m^3/mol) |
rhomolar_liq | The pointer to the array of molar density for liquid phase (m^3/mol) |
x | The compositions of the "liquid" phase (WARNING: buffer should be Ncomp*Npoints in length, at a minimum, but there is no way to check buffer length at runtime) |
y | The compositions of the "vapor" phase (WARNING: buffer should be Ncomp*Npoints in length, at a minimum, but there is no way to check buffer length at runtime) |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 863 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_get_phase_envelope_data_checkedMemory | ( | const long | handle, |
const long | length, | ||
const long | maxComponents, | ||
double * | T, | ||
double * | p, | ||
double * | rhomolar_vap, | ||
double * | rhomolar_liq, | ||
double * | x, | ||
double * | y, | ||
long * | actual_length, | ||
long * | actual_components, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get data from the phase envelope for the given mixture composition.
handle | The integer handle for the state class stored in memory |
length | The number of elements stored in the arrays (both inputs and outputs MUST be the same length) |
maxComponents | The number of fluid components for which memory is allocated |
T | The pointer to the array of temperature (K) |
p | The pointer to the array of pressure (Pa) |
rhomolar_vap | The pointer to the array of molar density for vapor phase (m^3/mol) |
rhomolar_liq | The pointer to the array of molar density for liquid phase (m^3/mol) |
x | The compositions of the "liquid" phase (WARNING: buffer should be Ncomp*Npoints in length, at a minimum, but there is no way to check buffer length at runtime) |
y | The compositions of the "vapor" phase (WARNING: buffer should be Ncomp*Npoints in length, at a minimum, but there is no way to check buffer length at runtime) |
actual_length | The number of elements actually stored in the arrays |
actual_components | The number of fluid components actually stored in the arrays |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 890 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_get_spinodal_data | ( | const long | handle, |
const long | length, | ||
double * | tau, | ||
double * | delta, | ||
double * | M1, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get data for the spinodal curve.
handle | The integer handle for the state class stored in memory |
length | The number of elements stored in the arrays (all outputs MUST be the same length) |
tau | The pointer to the array of reciprocal reduced temperature |
delta | The pointer to the array of reduced density |
M1 | The pointer to the array of M1 values (when L1=M1=0, critical point) |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 933 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_keyed_output | ( | const long | handle, |
const long | param, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get an output value from the AbstractState using an integer value for the desired output value.
handle | The integer handle for the state class stored in memory |
param | The integer value for the parameter you want |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 658 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_keyed_output_satState | ( | const long | handle, |
const char * | saturated_state, | ||
const long | param, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Get an output value from the AbstractState using an integer value for the desired output value and desired saturated State.
handle | The integer handle for the state class stored in memory |
saturated_state | The string specifying the state (liquid or gas) |
param | The integer value for the parameter you want |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 974 of file CoolPropLib.cpp.
EXPORT_CODE int CONVENTION AbstractState_phase | ( | const long | handle, |
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Definition at line 1020 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_saturated_liquid_keyed_output | ( | const long | handle, |
const long | param, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Definition at line 1048 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_saturated_vapor_keyed_output | ( | const long | handle, |
const long | param, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Definition at line 1060 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_second_partial_deriv | ( | const long | handle, |
const long | Of1, | ||
const long | Wrt1, | ||
const long | Constant1, | ||
const long | Wrt2, | ||
const long | Constant2, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Calculate the second partial derivative int two-phase region from the AbstractState using integer values for the desired parameters.
handle | The integer handle for the state class stored in memory |
Of1 | The parameter of which the derivative is being taken |
Wrt1 | The parameter that the derivative is taken with respect to in the first derivative |
Constant1 | The parameter that is held constant in the first derivative |
Wrt2 | The parameter that the derivative is taken with respect to in the second derivative |
Constant2 | The parameter that is held constant in the second derivative |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 695 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION AbstractState_second_two_phase_deriv | ( | const long | handle, |
const long | Of1, | ||
const long | Wrt1, | ||
const long | Constant1, | ||
const long | Wrt2, | ||
const long | Constant2, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Calculate the second partial derivative in homogeneous phases from the AbstractState using integer values for the desired parameters.
handle | The integer handle for the state class stored in memory |
Of1 | The parameter of which the derivative is being taken |
Wrt1 | The parameter that the derivative is taken with respect to in the first derivative |
Constant1 | The parameter that is held constant in the first derivative |
Wrt2 | The parameter that the derivative is taken with respect to in the second derivative |
Constant2 | The parameter that is held constant in the second derivative |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 710 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_set_binary_interaction_double | ( | const long | handle, |
const long | i, | ||
const long | j, | ||
const char * | parameter, | ||
const double | value, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Set binary interraction parrameter for mixtures.
handle | The integer handle for the state class stored in memory |
i | indice of the first fluid of the binary pair |
j | indice of the second fluid of the binary pair |
parameter | string wit the name of the parameter |
value | the value of the binary interaction parameter |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 818 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_set_cubic_alpha_C | ( | const long | handle, |
const long | i, | ||
const char * | parameter, | ||
const double | c1, | ||
const double | c2, | ||
const double | c3, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Set cubic's alpha function parameters.
handle | The integer handle for the state class stored in memory |
i | indice of the fluid the parramter should be applied too (for mixtures) |
parameter | the string specifying the alpha function to use, ex "TWU" for the TWU alpha function |
c1 | the first parameter for the alpha function |
c2 | the second parameter for the alpha function |
c3 | the third parameter for the alpha function |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 830 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_set_fluid_parameter_double | ( | const long | handle, |
const long | i, | ||
const char * | parameter, | ||
const double | value, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Set some fluid parameter (ie volume translation for cubic)
handle | The integer handle for the state class stored in memory |
i | indice of the fluid the parramter should be applied too (for mixtures) |
parameter | the string specifying the parameter to use, ex "cm" for volume translation |
value | the value of the parameter |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 841 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_set_fractions | ( | const long | handle, |
const double * | fractions, | ||
const long | N, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Set the fractions (mole, mass, volume) for the AbstractState.
handle | The integer handle for the state class stored in memory |
fractions | The array of fractions |
N | The length of the fractions array |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 536 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_specify_phase | ( | const long | handle, |
const char * | phase, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Specify the phase to be used for all further calculations.
handle | The integer handle for the state class stored in memory |
phase | The string with the phase to use |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 639 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_unspecify_phase | ( | const long | handle, |
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Unspecify the phase to be used for all further calculations.
handle | The integer handle for the state class stored in memory |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 649 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_update | ( | const long | handle, |
const long | input_pair, | ||
const double | value1, | ||
const double | value2, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Update the state of the AbstractState.
handle | The integer handle for the state class stored in memory |
input_pair | The integer value for the input pair obtained from XXXXXXXXXXXXXXXX |
value1 | The first input value |
value2 | The second input value |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 629 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_update_and_1_out | ( | const long | handle, |
const long | input_pair, | ||
const double * | value1, | ||
const double * | value2, | ||
const long | length, | ||
const long | output, | ||
double * | out, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Update the state of the AbstractState and get one output value (temperature, pressure, molar density, molar enthalpy and molar entropy)
from the AbstractState using pointers as inputs and output to allow array computation.
handle | The integer handle for the state class stored in memory |
input_pair | The integer value for the input pair obtained from get_input_pair_index |
value1 | The pointer to the array of the first input parameters |
value2 | The pointer to the array of the second input parameters |
length | The number of elements stored in the arrays (both inputs and outputs MUST be the same length) |
output | The indice for the output desired |
out | The pointer to the array for output |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 776 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_update_and_5_out | ( | const long | handle, |
const long | input_pair, | ||
const double * | value1, | ||
const double * | value2, | ||
const long | length, | ||
long * | outputs, | ||
double * | out1, | ||
double * | out2, | ||
double * | out3, | ||
double * | out4, | ||
double * | out5, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Update the state of the AbstractState and get an output value five common outputs (temperature, pressure, molar density, molar enthalpy and molar entropy)
from the AbstractState using pointers as inputs and output to allow array computation.
handle | The integer handle for the state class stored in memory |
input_pair | The integer value for the input pair obtained from get_input_pair_index |
value1 | The pointer to the array of the first input parameters |
value2 | The pointer to the array of the second input parameters |
length | The number of elements stored in the arrays (both inputs and outputs MUST be the same length) |
outputs | The 5-element vector of indices for the outputs desired |
out1 | The pointer to the array for the first output |
out2 | The pointer to the array for the second output |
out3 | The pointer to the array for the third output |
out4 | The pointer to the array for the fourth output |
out5 | The pointer to the array for the fifth output |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 795 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION AbstractState_update_and_common_out | ( | const long | handle, |
const long | input_pair, | ||
const double * | value1, | ||
const double * | value2, | ||
const long | length, | ||
double * | T, | ||
double * | p, | ||
double * | rhomolar, | ||
double * | hmolar, | ||
double * | smolar, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Update the state of the AbstractState and get an output value five common outputs (temperature, pressure, molar density, molar enthalpy and molar entropy)
from the AbstractState using pointers as inputs and output to allow array computation.
handle | The integer handle for the state class stored in memory |
input_pair | The integer value for the input pair obtained from get_input_pair_index |
value1 | The pointer to the array of the first input parameters |
value2 | The pointer to the array of the second input parameters |
length | The number of elements stored in the arrays (both inputs and outputs MUST be the same length) |
T | The pointer to the array of temperature |
p | The pointer to the array of pressure |
rhomolar | The pointer to the array of molar density |
hmolar | The pointer to the array of molar enthalpy |
smolar | The pointer to the array of molar entropy |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 753 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION add_fluids_as_JSON | ( | const char * | backend, |
const char * | fluidstring, | ||
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Add fluids as a JSON-formatted string.
backend | The backend to which these should be added; e.g. "HEOS", "SRK", "PR" |
fluidstring | The JSON-formatted string |
Definition at line 1072 of file CoolPropLib.cpp.
EXPORT_CODE int CONVENTION C_extract_backend | ( | const char * | fluid_string, |
char * | backend, | ||
const long | backend_length, | ||
char * | fluid, | ||
const long | fluid_length | ||
) |
Definition at line 1087 of file CoolPropLib.cpp.
EXPORT_CODE int CONVENTION C_is_valid_fluid_string | ( | const char * | fluidName | ) |
Definition at line 1083 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION cair_sat | ( | double | T | ) |
Humid air saturation specific heat at 1 atmosphere, based on a correlation from EES.
T | [K] good from 250K to 300K, no error bound checking is carried out. |
Definition at line 444 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION F2K | ( | double | T_F | ) |
Convert from degrees Fahrenheit to Kelvin (useful primarily for testing)
Definition at line 330 of file CoolPropLib.cpp.
EXPORT_CODE int CONVENTION get_debug_level | ( | ) |
Get the debug level
Definition at line 333 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION get_fluid_param_string | ( | const char * | fluid, |
const char * | param, | ||
char * | Output, | ||
int | n | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 392 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION get_global_param_string | ( | const char * | param, |
char * | Output, | ||
int | n | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 359 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION get_input_pair_index | ( | const char * | param | ) |
Get the index for an input pair for AbstractState.update function.
Definition at line 349 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION get_param_index | ( | const char * | param | ) |
Get the index for a parameter "T", "P", etc.
Definition at line 339 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION get_parameter_information_string | ( | const char * | key, |
char * | Output, | ||
int | n | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 371 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION HAProps | ( | const char * | Output, |
const char * | Name1, | ||
double | Prop1, | ||
const char * | Name2, | ||
double | Prop2, | ||
const char * | Name3, | ||
double | Prop3 | ||
) |
DLL wrapper of the HAProps function.
Definition at line 452 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION haprops_ | ( | const char * | Output, |
const char * | Name1, | ||
const double * | Prop1, | ||
const char * | Name2, | ||
const double * | Prop2, | ||
const char * | Name3, | ||
const double * | Prop3, | ||
double * | output | ||
) |
FORTRAN 77 style wrapper of the HAProps function.
Definition at line 464 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION HAPropsSI | ( | const char * | Output, |
const char * | Name1, | ||
double | Prop1, | ||
const char * | Name2, | ||
double | Prop2, | ||
const char * | Name3, | ||
double | Prop3 | ||
) |
DLL wrapper of the HAPropsSI function.
Definition at line 439 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION hapropssi_ | ( | const char * | Output, |
const char * | Name1, | ||
const double * | Prop1, | ||
const char * | Name2, | ||
const double * | Prop2, | ||
const char * | Name3, | ||
const double * | Prop3, | ||
double * | output | ||
) |
FORTRAN 77 style wrapper of the HAPropsSI function.
Definition at line 448 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION K2F | ( | double | T_K | ) |
Convert from Kelvin to degrees Fahrenheit (useful primarily for testing)
Definition at line 327 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION PhaseSI | ( | const char * | Name1, |
double | Prop1, | ||
const char * | Name2, | ||
double | Prop2, | ||
const char * | Ref, | ||
char * | phase, | ||
int | n | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 300 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION Props | ( | const char * | Output, |
const char | Name1, | ||
double | Prop1, | ||
const char | Name2, | ||
double | Prop2, | ||
const char * | Ref | ||
) |
Works just like CoolProp::PropsSI, but units are in KSI system. This function is deprecated, no longer supported, and users should transition to using the PropsSI function
Definition at line 167 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION Props1 | ( | const char * | FluidName, |
const char * | Output | ||
) |
Works just like CoolProp::Props1SI, but units are in KSI system. This function is deprecated, no longer supported, and users should transition to using the Props1SI function
Definition at line 154 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION Props1SI | ( | const char * | FluidName, |
const char * | Output | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 205 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION Props1SImulti | ( | const char * | Outputs, |
char * | backend, | ||
const char * | FluidNames, | ||
const double * | fractions, | ||
const long | length_fractions, | ||
double * | result, | ||
long * | resdim1 | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 209 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION PropsS | ( | const char * | Output, |
const char * | Name1, | ||
double | Prop1, | ||
const char * | Name2, | ||
double | Prop2, | ||
const char * | Ref | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 164 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION PropsSI | ( | const char * | Output, |
const char * | Name1, | ||
double | Prop1, | ||
const char * | Name2, | ||
double | Prop2, | ||
const char * | Ref | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 243 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION propssi_ | ( | const char * | Output, |
const char * | Name1, | ||
const double * | Prop1, | ||
const char * | Name2, | ||
const double * | Prop2, | ||
const char * | Ref, | ||
double * | output | ||
) |
FORTRAN 77 style wrapper of the PropsSI function This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 322 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION PropsSImulti | ( | const char * | Outputs, |
const char * | Name1, | ||
double * | Prop1, | ||
const long | size_Prop1, | ||
const char * | Name2, | ||
double * | Prop2, | ||
const long | size_Prop2, | ||
char * | backend, | ||
const char * | FluidNames, | ||
const double * | fractions, | ||
const long | length_fractions, | ||
double * | result, | ||
long * | resdim1, | ||
long * | resdim2 | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Outputs | Delimited string separated by LIST_STRING_DELIMITER for the output parameters |
Name1 | The name of the first input variable |
Prop1 | A vector of the first input values |
size_Prop1 | Size of Prop1 double* |
Name2 | The name of the second input variable |
Prop2 | A vector of the second input values |
size_Prop2 | Size of Prop2 double* |
backend | The string representation of the backend (HEOS, REFPROP, INCOMP, etc.) |
FluidNames | Delimited string separated by LIST_STRING_DELIMITER for the fluid name(s) |
fractions | The fractions (molar, mass, volume, etc.) of the components |
length_fractions | Size of fractions double* |
result | Allocated memory for result vector |
resdim1 | result vector dimension 1 pointer, to check allocated space and return actual result size |
resdim2 | result vector dimension 2 pointer, to check allocated space and return actual result size |
Definition at line 247 of file CoolPropLib.cpp.
EXPORT_CODE long CONVENTION redirect_stdout | ( | const char * | file | ) |
Redirect all output that would go to console (stdout) to a file.
Definition at line 124 of file CoolPropLib.cpp.
EXPORT_CODE double CONVENTION saturation_ancillary | ( | const char * | fluid_name, |
const char * | output, | ||
int | Q, | ||
const char * | input, | ||
double | value | ||
) |
Definition at line 194 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION set_config_bool | ( | const char * | key, |
const bool | val | ||
) |
Set configuration value as a boolean.
key | The key to configure |
val | The value to set to the key |
Definition at line 422 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION set_config_double | ( | const char * | key, |
const double | val | ||
) |
Set configuration numerical value as double.
key | The key to configure |
val | The value to set to the key |
Definition at line 413 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION set_config_string | ( | const char * | key, |
const char * | val | ||
) |
Set configuration string.
key | The key to configure |
val | The value to set to the key |
Definition at line 404 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION set_debug_level | ( | int | level | ) |
Set the debug level
level | The level of the verbosity for the debugging output (0-10) 0: no debgging output |
Definition at line 336 of file CoolPropLib.cpp.
EXPORT_CODE void CONVENTION set_departure_functions | ( | const char * | string_data, |
long * | errcode, | ||
char * | message_buffer, | ||
const long | buffer_length | ||
) |
Set the departure functions in the departure function library from a string format.
string_data | The departure functions to be set, either provided as a JSON-formatted string or as a string of the contents of a HMX.BNC file from REFPROP |
errcode | The errorcode that is returned (0 = no error, !0 = error) |
message_buffer | A buffer for the error code |
buffer_length | The length of the buffer for the error code |
Definition at line 431 of file CoolPropLib.cpp.
EXPORT_CODE int CONVENTION set_reference_stateD | ( | const char * | Ref, |
double | T, | ||
double | rhomolar, | ||
double | hmolar0, | ||
double | smolar0 | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 140 of file CoolPropLib.cpp.
EXPORT_CODE int CONVENTION set_reference_stateS | ( | const char * | Ref, |
const char * | reference_state | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 128 of file CoolPropLib.cpp.