CoolProp  6.6.0
An open-source fluid property and humid air property database
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CoolProp::REFPROPMixtureBackend Class Reference

Detailed Description

Definition at line 18 of file REFPROPMixtureBackend.h.

#include <REFPROPMixtureBackend.h>

Inheritance diagram for CoolProp::REFPROPMixtureBackend:
CoolProp::AbstractState CoolProp::REFPROPBackend

Public Member Functions

 REFPROPMixtureBackend ()
 
 REFPROPMixtureBackend (const std::vector< std::string > &fluid_names)
 
void construct (const std::vector< std::string > &fluid_names)
 A function to actually do the initialization to allow it to be called in derived classes. More...
 
std::string backend_name (void)
 
virtual ~REFPROPMixtureBackend ()
 
std::vector< std::string > calc_fluid_names ()
 Using this backend, get a vector of fluid names. More...
 
void set_binary_interaction_double (const std::string &CAS1, const std::string &CAS2, const std::string &parameter, const double value)
 Set binary mixture floating point parameter. More...
 
double get_binary_interaction_double (const std::string &CAS1, const std::string &CAS2, const std::string &parameter)
 Get binary mixture double value. More...
 
std::string get_binary_interaction_string (const std::string &CAS1, const std::string &CAS2, const std::string &parameter)
 Get binary mixture string value. More...
 
void set_binary_interaction_string (const std::size_t i, const std::size_t j, const std::string &parameter, const std::string &value)
 Set binary mixture string value. More...
 
void set_binary_interaction_double (const std::size_t i, const std::size_t j, const std::string &parameter, const double value)
 Set binary mixture string parameter (EXPERT USE ONLY!!!) More...
 
double get_binary_interaction_double (const std::size_t i, const std::size_t j, const std::string &parameter)
 Get binary mixture double value (EXPERT USE ONLY!!!) More...
 
int match_CAS (const std::string &CAS)
 Find the index (1-based for FORTRAN) of the fluid with the given CAS number. More...
 
bool using_mole_fractions ()
 
bool using_mass_fractions ()
 
bool using_volu_fractions ()
 
std::string calc_name ()
 Calculate the name of the fluid. More...
 
phases calc_phase (void)
 Using this backend, calculate the phase. More...
 
phases GetRPphase ()
 
void calc_specify_phase (phases phase_index)
 Specify the phase - this phase will always be used in calculations. More...
 
void calc_unspecify_phase ()
 Unspecify the phase - the phase is no longer imposed, different solvers can do as they like. More...
 
void update (CoolProp::input_pairs, double value1, double value2)
 Updating function for REFPROP. More...
 
void update_with_guesses (CoolProp::input_pairs, double value1, double value2, const GuessesStructure &guesses)
 Update the state, while providing guess values. More...
 
CoolPropDbl calc_molar_mass (void)
 Using this backend, calculate the molar mass in kg/mol. More...
 
void check_loaded_fluid (void)
 
void calc_excess_properties ()
 Calculate excess properties. More...
 
std::string fluid_param_string (const std::string &ParamName)
 Return a string from the backend for the mixture/fluid - backend dependent - could be CAS #, name, etc. More...
 
CoolPropDbl calc_PIP (void)
 Using this backend, calculate the phase identification parameter (PIP) More...
 
CoolPropDbl calc_cpmolar_idealgas (void)
 Using this backend, calculate the ideal gas molar constant-pressure specific heat in J/mol/K. More...
 
void set_REFPROP_fluids (const std::vector< std::string > &fluid_names)
 Set the fluids in REFPROP DLL by calling the SETUPdll function. More...
 
void set_mole_fractions (const std::vector< CoolPropDbl > &mole_fractions)
 Set the mole fractions. More...
 
void set_mass_fractions (const std::vector< CoolPropDbl > &mass_fractions)
 Set the mass fractions. More...
 
const std::vector< CoolPropDbl > & get_mole_fractions ()
 Get the mole fractions of the fluid. More...
 
const std::vector< CoolPropDblcalc_mass_fractions ()
 
void calc_phase_envelope (const std::string &type)
 Using this backend, construct the phase envelope, the variable type describes the type of phase envelope to be built. More...
 
CoolPropDbl calc_compressibility_factor (void)
 Using this backend, calculate the compressibility factor Z \( Z = p/(\rho R T) \). More...
 
const CoolProp::PhaseEnvelopeDatacalc_phase_envelope_data ()
 
std::vector< CoolPropDblcalc_mole_fractions_liquid (void)
 
std::vector< CoolPropDblcalc_mole_fractions_vapor (void)
 
void check_status ()
 Check if the mole fractions have been set, etc. More...
 
CoolPropDbl calc_viscosity (void)
 Get the viscosity [Pa-s] (based on the temperature and density in the state class) More...
 
CoolPropDbl calc_conductivity (void)
 Get the thermal conductivity [W/m/K] (based on the temperature and density in the state class) More...
 
CoolPropDbl calc_surface_tension (void)
 Get the surface tension [N/m] (based on the temperature in the state class). Invalid for temperatures above critical point or below triple point temperature. More...
 
CoolPropDbl calc_Bvirial (void)
 Calc the B virial coefficient. More...
 
CoolPropDbl calc_dBvirial_dT (void)
 Calc the temperature derivative of the second virial coefficient. More...
 
CoolPropDbl calc_Cvirial (void)
 Calc the C virial coefficient. More...
 
CoolPropDbl calc_fugacity_coefficient (std::size_t i)
 Using this backend, calculate the fugacity coefficient (dimensionless) More...
 
CoolPropDbl calc_fugacity (std::size_t i)
 Using this backend, calculate the fugacity in Pa. More...
 
CoolPropDbl calc_chemical_potential (std::size_t i)
 Using this backend, calculate the chemical potential in J/mol. More...
 
CoolPropDbl calc_melting_line (int param, int given, CoolPropDbl value)
 
bool has_melting_line ()
 Return true if the fluid has a melting line - default is false, but can be re-implemented by derived class. More...
 
double calc_melt_Tmax ()
 
CoolPropDbl calc_T_critical (void)
 Using this backend, get the critical point temperature in K. More...
 
CoolPropDbl calc_T_reducing (void)
 Using this backend, get the reducing point temperature in K. More...
 
void calc_reducing_state (void)
 
CoolPropDbl calc_p_critical (void)
 Using this backend, get the critical point pressure in Pa. More...
 
CoolPropDbl calc_p_triple (void)
 Using this backend, get the triple point pressure in Pa. More...
 
CoolPropDbl calc_p_min (void)
 
CoolPropDbl calc_rhomolar_critical (void)
 Using this backend, get the critical point molar density in mol/m^3. More...
 
CoolPropDbl calc_rhomolar_reducing (void)
 Using this backend, get the reducing point molar density in mol/m^3. More...
 
CoolPropDbl calc_Ttriple (void)
 Using this backend, get the triple point temperature in K. More...
 
CoolPropDbl calc_acentric_factor (void)
 Using this backend, calculate the acentric factor. More...
 
CoolPropDbl calc_gas_constant (void)
 Using this backend, calculate the universal gas constant \(R_u\) in J/mol/K. More...
 
CoolPropDbl calc_dipole_moment (void)
 Using this backend, calculate the dipole moment in C-m (1 D = 3.33564e-30 C-m) More...
 
void calc_true_critical_point (double &T, double &rho)
 Calculate the "true" critical point where dp/drho|T and d2p/drho2|T are zero. More...
 
CoolPropDbl calc_saturated_liquid_keyed_output (parameters key)
 Calculate the saturation properties. More...
 
CoolPropDbl calc_saturated_vapor_keyed_output (parameters key)
 
void calc_ideal_curve (const std::string &type, std::vector< double > &T, std::vector< double > &p)
 Calculate an ideal curve. More...
 
void limits (double &Tmin, double &Tmax, double &rhomolarmax, double &pmax)
 A wrapper function to calculate the limits for the EOS. More...
 
CoolPropDbl calc_pmax (void)
 Calculate the maximum pressure. More...
 
CoolPropDbl calc_Tmax (void)
 Calculate the maximum temperature. More...
 
CoolPropDbl calc_Tmin (void)
 Calculate the minimum temperature. More...
 
CoolPropDbl calc_smolar_residual (void)
 Calculate the residual entropy in J/mol/K (should be a uniquely negative quantity) More...
 
CoolPropDbl calc_alphar (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r\) (dimensionless) More...
 
CoolPropDbl calc_dalphar_dDelta (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta}\) (dimensionless) More...
 
CoolPropDbl calc_dalphar_dTau (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d2alphar_dDelta2 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta}\) (dimensionless) More...
 
CoolPropDbl calc_d2alphar_dDelta_dTau (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d2alphar_dTau2 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\tau\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d3alphar_dDelta3 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta\delta}\) (dimensionless) More...
 
CoolPropDbl calc_d3alphar_dDelta2_dTau (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d3alphar_dDelta_dTau2 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\tau\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d3alphar_dTau3 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\tau\tau\tau}\) (dimensionless) More...
 
CoolPropDbl calc_alpha0 (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0\) (dimensionless) More...
 
CoolPropDbl calc_dalpha0_dDelta (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta}\) (dimensionless) More...
 
CoolPropDbl calc_dalpha0_dTau (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d2alpha0_dDelta2 (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d2alpha0_dDelta_dTau (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\delta}\) (dimensionless) More...
 
CoolPropDbl calc_d2alpha0_dTau2 (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\tau\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d3alpha0_dDelta3 (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\delta\delta}\) (dimensionless) More...
 
CoolPropDbl calc_d3alpha0_dDelta2_dTau (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\delta\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d3alpha0_dDelta_dTau2 (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\tau\tau}\) (dimensionless) More...
 
CoolPropDbl calc_d3alpha0_dTau3 (void)
 Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\tau\tau\tau}\) (dimensionless) More...
 
- Public Member Functions inherited from CoolProp::AbstractState
 AbstractState ()
 
virtual ~AbstractState ()
 
void set_T (CoolPropDbl T)
 Set the internal variable T without a flash call (expert use only!) More...
 
virtual void set_volu_fractions (const std::vector< CoolPropDbl > &mass_fractions)
 
virtual void set_reference_stateS (const std::string &reference_state)
 Set the reference state based on a string representation. More...
 
virtual void set_reference_stateD (double T, double rhomolar, double hmolar0, double smolar0)
 
std::vector< CoolPropDblmole_fractions_liquid (void)
 Get the mole fractions of the equilibrium liquid phase. More...
 
std::vector< double > mole_fractions_liquid_double (void)
 Get the mole fractions of the equilibrium liquid phase (but as a double for use in SWIG wrapper) More...
 
std::vector< CoolPropDblmole_fractions_vapor (void)
 Get the mole fractions of the equilibrium vapor phase. More...
 
std::vector< double > mole_fractions_vapor_double (void)
 Get the mole fractions of the equilibrium vapor phase (but as a double for use in SWIG wrapper) More...
 
virtual const std::vector< CoolPropDblget_mass_fractions (void)
 Get the mass fractions of the fluid. More...
 
virtual bool available_in_high_level (void)
 
std::vector< std::string > fluid_names (void)
 Return a vector of strings of the fluid names that are in use. More...
 
virtual const double get_fluid_constant (std::size_t i, parameters param) const
 
virtual void set_binary_interaction_string (const std::string &CAS1, const std::string &CAS2, const std::string &parameter, const std::string &value)
 Set binary mixture string parameter (EXPERT USE ONLY!!!) More...
 
virtual void apply_simple_mixing_rule (std::size_t i, std::size_t j, const std::string &model)
 Apply a simple mixing rule (EXPERT USE ONLY!!!) More...
 
virtual void set_cubic_alpha_C (const size_t i, const std::string &parameter, const double c1, const double c2, const double c3)
 Set the cubic alpha function's constants: More...
 
virtual void set_fluid_parameter_double (const size_t i, const std::string &parameter, const double value)
 Set fluid parameter (currently the volume translation parameter for cubic) More...
 
virtual double get_fluid_parameter_double (const size_t i, const std::string &parameter)
 Double fluid parameter (currently the volume translation parameter for cubic) More...
 
virtual bool clear ()
 Clear all the cached values. More...
 
virtual bool clear_comp_change ()
 When the composition changes, clear all cached values that are only dependent on composition, but not the thermodynamic state. More...
 
virtual const CoolProp::SimpleStateget_reducing_state ()
 
const CoolProp::SimpleStateget_state (const std::string &state)
 Get a desired state point - backend dependent. More...
 
double Tmin (void)
 Get the minimum temperature in K. More...
 
double Tmax (void)
 Get the maximum temperature in K. More...
 
double pmax (void)
 Get the maximum pressure in Pa. More...
 
double Ttriple (void)
 Get the triple point temperature in K. More...
 
phases phase (void)
 Get the phase of the state. More...
 
void specify_phase (phases phase)
 Specify the phase for all further calculations with this state class. More...
 
void unspecify_phase (void)
 Unspecify the phase and go back to calculating it based on the inputs. More...
 
double T_critical (void)
 Return the critical temperature in K. More...
 
double p_critical (void)
 Return the critical pressure in Pa. More...
 
double rhomolar_critical (void)
 Return the critical molar density in mol/m^3. More...
 
double rhomass_critical (void)
 Return the critical mass density in kg/m^3. More...
 
std::vector< CriticalStateall_critical_points (void)
 Return the vector of critical points, including points that are unstable or correspond to negative pressure. More...
 
void build_spinodal ()
 Construct the spinodal curve for the mixture (or pure fluid) More...
 
SpinodalData get_spinodal_data ()
 Get the data from the spinodal curve constructed in the call to build_spinodal() More...
 
void criticality_contour_values (double &L1star, double &M1star)
 Calculate the criticality contour values \(\mathcal{L}_1^*\) and \(\mathcal{M}_1^*\). More...
 
double tangent_plane_distance (const double T, const double p, const std::vector< double > &w, const double rhomolar_guess=-1)
 
double T_reducing (void)
 Return the reducing point temperature in K. More...
 
double rhomolar_reducing (void)
 Return the molar density at the reducing point in mol/m^3. More...
 
double rhomass_reducing (void)
 Return the mass density at the reducing point in kg/m^3. More...
 
double p_triple (void)
 Return the triple point pressure in Pa. More...
 
std::string name ()
 Return the name - backend dependent. More...
 
std::string description ()
 Return the description - backend dependent. More...
 
double dipole_moment ()
 Return the dipole moment in C-m (1 D = 3.33564e-30 C-m) More...
 
double keyed_output (parameters key)
 Retrieve a value by key. More...
 
double trivial_keyed_output (parameters key)
 A trivial keyed output like molar mass that does not depend on the state. More...
 
double saturated_liquid_keyed_output (parameters key)
 Get an output from the saturated liquid state by key. More...
 
double saturated_vapor_keyed_output (parameters key)
 Get an output from the saturated vapor state by key. More...
 
double T (void)
 Return the temperature in K. More...
 
double rhomolar (void)
 Return the molar density in mol/m^3. More...
 
double rhomass (void)
 Return the mass density in kg/m^3. More...
 
double p (void)
 Return the pressure in Pa. More...
 
double Q (void)
 Return the vapor quality (mol/mol); Q = 0 for saturated liquid. More...
 
double tau (void)
 Return the reciprocal of the reduced temperature ( \(\tau = T_c/T\)) More...
 
double delta (void)
 Return the reduced density ( \(\delta = \rho/\rho_c\)) More...
 
double molar_mass (void)
 Return the molar mass in kg/mol. More...
 
double acentric_factor (void)
 Return the acentric factor. More...
 
double gas_constant (void)
 Return the mole-fraction weighted gas constant in J/mol/K. More...
 
double Bvirial (void)
 Return the B virial coefficient. More...
 
double dBvirial_dT (void)
 Return the derivative of the B virial coefficient with respect to temperature. More...
 
double Cvirial (void)
 Return the C virial coefficient. More...
 
double dCvirial_dT (void)
 Return the derivative of the C virial coefficient with respect to temperature. More...
 
double compressibility_factor (void)
 Return the compressibility factor \( Z = p/(rho R T) \). More...
 
double hmolar (void)
 Return the molar enthalpy in J/mol. More...
 
double hmolar_residual (void)
 Return the residual molar enthalpy in J/mol. More...
 
double hmass (void)
 Return the mass enthalpy in J/kg. More...
 
double hmolar_excess (void)
 Return the excess molar enthalpy in J/mol. More...
 
double hmass_excess (void)
 Return the excess mass enthalpy in J/kg. More...
 
double smolar (void)
 Return the molar entropy in J/mol/K. More...
 
double smolar_residual (void)
 Return the residual molar entropy (as a function of temperature and density) in J/mol/K. More...
 
double smass (void)
 Return the molar entropy in J/kg/K. More...
 
double smolar_excess (void)
 Return the molar entropy in J/mol/K. More...
 
double smass_excess (void)
 Return the molar entropy in J/kg/K. More...
 
double umolar (void)
 Return the molar internal energy in J/mol. More...
 
double umass (void)
 Return the mass internal energy in J/kg. More...
 
double umolar_excess (void)
 Return the excess internal energy in J/mol. More...
 
double umass_excess (void)
 Return the excess internal energy in J/kg. More...
 
double cpmolar (void)
 Return the molar constant pressure specific heat in J/mol/K. More...
 
double cpmass (void)
 Return the mass constant pressure specific heat in J/kg/K. More...
 
double cp0molar (void)
 Return the molar constant pressure specific heat for ideal gas part only in J/mol/K. More...
 
double cp0mass (void)
 Return the mass constant pressure specific heat for ideal gas part only in J/kg/K. More...
 
double cvmolar (void)
 Return the molar constant volume specific heat in J/mol/K. More...
 
double cvmass (void)
 Return the mass constant volume specific heat in J/kg/K. More...
 
double gibbsmolar (void)
 Return the Gibbs energy in J/mol. More...
 
double gibbsmolar_residual (void)
 Return the residual Gibbs energy in J/mol. More...
 
double gibbsmass (void)
 Return the Gibbs energy in J/kg. More...
 
double gibbsmolar_excess (void)
 Return the excess Gibbs energy in J/mol. More...
 
double gibbsmass_excess (void)
 Return the excess Gibbs energy in J/kg. More...
 
double helmholtzmolar (void)
 Return the Helmholtz energy in J/mol. More...
 
double helmholtzmass (void)
 Return the Helmholtz energy in J/kg. More...
 
double helmholtzmolar_excess (void)
 Return the excess Helmholtz energy in J/mol. More...
 
double helmholtzmass_excess (void)
 Return the excess Helmholtz energy in J/kg. More...
 
double volumemolar_excess (void)
 Return the excess volume in m^3/mol. More...
 
double volumemass_excess (void)
 Return the excess volume in m^3/kg. More...
 
double speed_sound (void)
 Return the speed of sound in m/s. More...
 
double isothermal_compressibility (void)
 Return the isothermal compressibility \( \kappa = -\frac{1}{v}\left.\frac{\partial v}{\partial p}\right|_T=\frac{1}{\rho}\left.\frac{\partial \rho}{\partial p}\right|_T\) in 1/Pa. More...
 
double isobaric_expansion_coefficient (void)
 Return the isobaric expansion coefficient \( \beta = \frac{1}{v}\left.\frac{\partial v}{\partial T}\right|_p = -\frac{1}{\rho}\left.\frac{\partial \rho}{\partial T}\right|_p\) in 1/K. More...
 
double isentropic_expansion_coefficient (void)
 Return the isentropic expansion coefficient \( \kappa_s = -\frac{c_p}{c_v}\frac{v}{p}\left.\frac{\partial p}{\partial v}\right|_T = \frac{\rho}{p}\left.\frac{\partial p}{\partial \rho}\right|_s\). More...
 
double fugacity_coefficient (std::size_t i)
 Return the fugacity coefficient of the i-th component of the mixture. More...
 
std::vector< double > fugacity_coefficients ()
 Return a vector of the fugacity coefficients for all components in the mixture. More...
 
double fugacity (std::size_t i)
 Return the fugacity of the i-th component of the mixture. More...
 
double chemical_potential (std::size_t i)
 Return the chemical potential of the i-th component of the mixture. More...
 
double fundamental_derivative_of_gas_dynamics (void)
 Return the fundamental derivative of gas dynamics \( \Gamma \). More...
 
double PIP ()
 Return the phase identification parameter (PIP) of G. Venkatarathnam and L.R. Oellrich, "Identification of the phase of a fluid using partial derivatives of pressure, volume, and temperature without reference to saturation properties: Applications in phase equilibria calculations". More...
 
void true_critical_point (double &T, double &rho)
 Calculate the "true" critical point for pure fluids where dpdrho|T and d2p/drho2|T are equal to zero. More...
 
void ideal_curve (const std::string &type, std::vector< double > &T, std::vector< double > &p)
 Calculate an ideal curve for a pure fluid. More...
 
CoolPropDbl first_partial_deriv (parameters Of, parameters Wrt, parameters Constant)
 The first partial derivative in homogeneous phases. More...
 
CoolPropDbl second_partial_deriv (parameters Of1, parameters Wrt1, parameters Constant1, parameters Wrt2, parameters Constant2)
 The second partial derivative in homogeneous phases. More...
 
CoolPropDbl first_saturation_deriv (parameters Of1, parameters Wrt1)
 The first partial derivative along the saturation curve. More...
 
CoolPropDbl second_saturation_deriv (parameters Of1, parameters Wrt1, parameters Wrt2)
 The second partial derivative along the saturation curve. More...
 
double first_two_phase_deriv (parameters Of, parameters Wrt, parameters Constant)
 Calculate the first "two-phase" derivative as described by Thorade and Sadaat, EAS, 2013. More...
 
double second_two_phase_deriv (parameters Of, parameters Wrt1, parameters Constant1, parameters Wrt2, parameters Constant2)
 Calculate the second "two-phase" derivative as described by Thorade and Sadaat, EAS, 2013. More...
 
double first_two_phase_deriv_splined (parameters Of, parameters Wrt, parameters Constant, double x_end)
 Calculate the first "two-phase" derivative as described by Thorade and Sadaat, EAS, 2013. More...
 
void build_phase_envelope (const std::string &type="")
 Construct the phase envelope for a mixture. More...
 
const CoolProp::PhaseEnvelopeDataget_phase_envelope_data ()
 After having calculated the phase envelope, return the phase envelope data. More...
 
double melting_line (int param, int given, double value)
 
double saturation_ancillary (parameters param, int Q, parameters given, double value)
 
double viscosity (void)
 Return the viscosity in Pa-s. More...
 
void viscosity_contributions (CoolPropDbl &dilute, CoolPropDbl &initial_density, CoolPropDbl &residual, CoolPropDbl &critical)
 Return the viscosity contributions, each in Pa-s. More...
 
double conductivity (void)
 Return the thermal conductivity in W/m/K. More...
 
void conductivity_contributions (CoolPropDbl &dilute, CoolPropDbl &initial_density, CoolPropDbl &residual, CoolPropDbl &critical)
 Return the thermal conductivity contributions, each in W/m/K. More...
 
double surface_tension (void)
 Return the surface tension in N/m. More...
 
double Prandtl (void)
 Return the Prandtl number (dimensionless) More...
 
void conformal_state (const std::string &reference_fluid, CoolPropDbl &T, CoolPropDbl &rhomolar)
 Find the conformal state needed for ECS. More...
 
void change_EOS (const std::size_t i, const std::string &EOS_name)
 Change the equation of state for a given component to a specified EOS. More...
 
CoolPropDbl alpha0 (void)
 Return the term \( \alpha^0 \). More...
 
CoolPropDbl dalpha0_dDelta (void)
 Return the term \( \alpha^0_{\delta} \). More...
 
CoolPropDbl dalpha0_dTau (void)
 Return the term \( \alpha^0_{\tau} \). More...
 
CoolPropDbl d2alpha0_dDelta2 (void)
 Return the term \( \alpha^0_{\delta\delta} \). More...
 
CoolPropDbl d2alpha0_dDelta_dTau (void)
 Return the term \( \alpha^0_{\delta\tau} \). More...
 
CoolPropDbl d2alpha0_dTau2 (void)
 Return the term \( \alpha^0_{\tau\tau} \). More...
 
CoolPropDbl d3alpha0_dTau3 (void)
 Return the term \( \alpha^0_{\tau\tau\tau} \). More...
 
CoolPropDbl d3alpha0_dDelta_dTau2 (void)
 Return the term \( \alpha^0_{\delta\tau\tau} \). More...
 
CoolPropDbl d3alpha0_dDelta2_dTau (void)
 Return the term \( \alpha^0_{\delta\delta\tau} \). More...
 
CoolPropDbl d3alpha0_dDelta3 (void)
 Return the term \( \alpha^0_{\delta\delta\delta} \). More...
 
CoolPropDbl alphar (void)
 Return the term \( \alpha^r \). More...
 
CoolPropDbl dalphar_dDelta (void)
 Return the term \( \alpha^r_{\delta} \). More...
 
CoolPropDbl dalphar_dTau (void)
 Return the term \( \alpha^r_{\tau} \). More...
 
CoolPropDbl d2alphar_dDelta2 (void)
 Return the term \( \alpha^r_{\delta\delta} \). More...
 
CoolPropDbl d2alphar_dDelta_dTau (void)
 Return the term \( \alpha^r_{\delta\tau} \). More...
 
CoolPropDbl d2alphar_dTau2 (void)
 Return the term \( \alpha^r_{\tau\tau} \). More...
 
CoolPropDbl d3alphar_dDelta3 (void)
 Return the term \( \alpha^r_{\delta\delta\delta} \). More...
 
CoolPropDbl d3alphar_dDelta2_dTau (void)
 Return the term \( \alpha^r_{\delta\delta\tau} \). More...
 
CoolPropDbl d3alphar_dDelta_dTau2 (void)
 Return the term \( \alpha^r_{\delta\tau\tau} \). More...
 
CoolPropDbl d3alphar_dTau3 (void)
 Return the term \( \alpha^r_{\tau\tau\tau} \). More...
 
CoolPropDbl d4alphar_dDelta4 (void)
 Return the term \( \alpha^r_{\delta\delta\delta\delta} \). More...
 
CoolPropDbl d4alphar_dDelta3_dTau (void)
 Return the term \( \alpha^r_{\delta\delta\delta\tau} \). More...
 
CoolPropDbl d4alphar_dDelta2_dTau2 (void)
 Return the term \( \alpha^r_{\delta\delta\tau\tau} \). More...
 
CoolPropDbl d4alphar_dDelta_dTau3 (void)
 Return the term \( \alpha^r_{\delta\tau\tau\tau} \). More...
 
CoolPropDbl d4alphar_dTau4 (void)
 Return the term \( \alpha^r_{\tau\tau\tau\tau} \). More...
 

Static Public Member Functions

static std::string version ()
 
static bool REFPROP_supported (void)
 Returns true if REFPROP is supported on this platform. More...
 
- Static Public Member Functions inherited from CoolProp::AbstractState
static AbstractStatefactory (const std::string &backend, const std::string &fluid_names)
 A factory function to return a pointer to a new-allocated instance of one of the backends. More...
 
static AbstractStatefactory (const std::string &backend, const std::vector< std::string > &fluid_names)
 A factory function to return a pointer to a new-allocated instance of one of the backends. More...
 

Public Attributes

PhaseEnvelopeData PhaseEnvelope
 

Protected Member Functions

CoolPropDbl call_phixdll (int itau, int idelta)
 Call the PHIXdll function in the dll. More...
 
CoolPropDbl call_phi0dll (int itau, int idelta)
 Call the PHI0dll function in the dll. More...
 
- Protected Member Functions inherited from CoolProp::AbstractState
bool isSupercriticalPhase (void)
 
bool isHomogeneousPhase (void)
 
bool isTwoPhase (void)
 
virtual CoolPropDbl calc_hmolar (void)
 Using this backend, calculate the molar enthalpy in J/mol. More...
 
virtual CoolPropDbl calc_hmolar_residual (void)
 Using this backend, calculate the residual molar enthalpy in J/mol. More...
 
virtual CoolPropDbl calc_smolar (void)
 Using this backend, calculate the molar entropy in J/mol/K. More...
 
virtual CoolPropDbl calc_umolar (void)
 Using this backend, calculate the molar internal energy in J/mol. More...
 
virtual CoolPropDbl calc_cpmolar (void)
 Using this backend, calculate the molar constant-pressure specific heat in J/mol/K. More...
 
virtual CoolPropDbl calc_cvmolar (void)
 Using this backend, calculate the molar constant-volume specific heat in J/mol/K. More...
 
virtual CoolPropDbl calc_gibbsmolar (void)
 Using this backend, calculate the molar Gibbs function in J/mol. More...
 
virtual CoolPropDbl calc_gibbsmolar_residual (void)
 Using this backend, calculate the residual molar Gibbs function in J/mol. More...
 
virtual CoolPropDbl calc_helmholtzmolar (void)
 Using this backend, calculate the molar Helmholtz energy in J/mol. More...
 
virtual CoolPropDbl calc_speed_sound (void)
 Using this backend, calculate the speed of sound in m/s. More...
 
virtual CoolPropDbl calc_isothermal_compressibility (void)
 Using this backend, calculate the isothermal compressibility \( \kappa = -\frac{1}{v}\left.\frac{\partial v}{\partial p}\right|_T=\frac{1}{\rho}\left.\frac{\partial \rho}{\partial p}\right|_T\) in 1/Pa. More...
 
virtual CoolPropDbl calc_isobaric_expansion_coefficient (void)
 Using this backend, calculate the isobaric expansion coefficient \( \beta = \frac{1}{v}\left.\frac{\partial v}{\partial T}\right|_p = -\frac{1}{\rho}\left.\frac{\partial \rho}{\partial T}\right|_p\) in 1/K. More...
 
virtual CoolPropDbl calc_isentropic_expansion_coefficient (void)
 Using this backend, calculate the isentropic expansion coefficient \( \kappa_s = -\frac{c_p}{c_v}\frac{v}{p}\left.\frac{\partial p}{\partial v}\right|_T = \frac{\rho}{p}\left.\frac{\partial p}{\partial \rho}\right|_s\). More...
 
virtual CoolPropDbl calc_pressure (void)
 Using this backend, calculate the pressure in Pa. More...
 
virtual std::vector< CoolPropDblcalc_fugacity_coefficients ()
 Using this backend, calculate the fugacity in Pa. More...
 
virtual CoolPropDbl calc_d4alphar_dDelta4 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta\delta\delta}\) (dimensionless) More...
 
virtual CoolPropDbl calc_d4alphar_dDelta3_dTau (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta\delta\tau}\) (dimensionless) More...
 
virtual CoolPropDbl calc_d4alphar_dDelta2_dTau2 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta\tau\tau}\) (dimensionless) More...
 
virtual CoolPropDbl calc_d4alphar_dDelta_dTau3 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\tau\tau\tau}\) (dimensionless) More...
 
virtual CoolPropDbl calc_d4alphar_dTau4 (void)
 Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\tau\tau\tau\tau}\) (dimensionless) More...
 
virtual CoolPropDbl calc_GWP20 (void)
 Using this backend, calculate the 20-year global warming potential (GWP) More...
 
virtual CoolPropDbl calc_GWP100 (void)
 Using this backend, calculate the 100-year global warming potential (GWP) More...
 
virtual CoolPropDbl calc_GWP500 (void)
 Using this backend, calculate the 500-year global warming potential (GWP) More...
 
virtual CoolPropDbl calc_ODP (void)
 Using this backend, calculate the ozone depletion potential (ODP) More...
 
virtual CoolPropDbl calc_flame_hazard (void)
 Using this backend, calculate the flame hazard. More...
 
virtual CoolPropDbl calc_health_hazard (void)
 Using this backend, calculate the health hazard. More...
 
virtual CoolPropDbl calc_physical_hazard (void)
 Using this backend, calculate the physical hazard. More...
 
virtual CoolPropDbl calc_first_partial_deriv (parameters Of, parameters Wrt, parameters Constant)
 Calculate the first partial derivative for the desired derivative. More...
 
virtual CoolPropDbl calc_second_partial_deriv (parameters Of1, parameters Wrt1, parameters Constant1, parameters Wrt2, parameters Constant2)
 Calculate the second partial derivative using the given backend. More...
 
virtual CoolPropDbl calc_reduced_density (void)
 Using this backend, calculate the reduced density (rho/rhoc) More...
 
virtual CoolPropDbl calc_reciprocal_reduced_temperature (void)
 Using this backend, calculate the reciprocal reduced temperature (Tc/T) More...
 
virtual CoolPropDbl calc_dCvirial_dT (void)
 Using this backend, calculate the derivative dC/dT. More...
 
virtual std::string calc_description (void)
 Using this backend, get the description of the fluid. More...
 
virtual CoolPropDbl calc_p_reducing (void)
 Using this backend, get the reducing point pressure in Pa. More...
 
virtual CoolPropDbl calc_rhomass_critical (void)
 Using this backend, get the critical point mass density in kg/m^3 - Added for IF97Backend which is mass based. More...
 
virtual CoolPropDbl calc_rhomass (void)
 
virtual CoolPropDbl calc_hmass (void)
 
virtual CoolPropDbl calc_hmass_excess (void)
 
virtual CoolPropDbl calc_smass (void)
 
virtual CoolPropDbl calc_smass_excess (void)
 
virtual CoolPropDbl calc_cpmass (void)
 
virtual CoolPropDbl calc_cp0mass (void)
 
virtual CoolPropDbl calc_cvmass (void)
 
virtual CoolPropDbl calc_umass (void)
 
virtual CoolPropDbl calc_umass_excess (void)
 
virtual CoolPropDbl calc_gibbsmass (void)
 
virtual CoolPropDbl calc_gibbsmass_excess (void)
 
virtual CoolPropDbl calc_helmholtzmass (void)
 
virtual CoolPropDbl calc_helmholtzmass_excess (void)
 
virtual CoolPropDbl calc_volumemass_excess (void)
 
virtual void update_states (void)
 Update the states after having changed the reference state for enthalpy and entropy. More...
 
virtual CoolPropDbl calc_saturation_ancillary (parameters param, int Q, parameters given, double value)
 
virtual const CoolProp::SimpleStatecalc_state (const std::string &state)
 
virtual CoolPropDbl calc_fraction_min (void)
 Get the minimum fraction (mole, mass, volume) for incompressible fluid. More...
 
virtual CoolPropDbl calc_fraction_max (void)
 Get the maximum fraction (mole, mass, volume) for incompressible fluid. More...
 
virtual CoolPropDbl calc_T_freeze (void)
 
virtual CoolPropDbl calc_first_saturation_deriv (parameters Of1, parameters Wrt1)
 
virtual CoolPropDbl calc_second_saturation_deriv (parameters Of1, parameters Wrt1, parameters Wrt2)
 
virtual CoolPropDbl calc_first_two_phase_deriv (parameters Of, parameters Wrt, parameters Constant)
 
virtual CoolPropDbl calc_second_two_phase_deriv (parameters Of, parameters Wrt, parameters Constant, parameters Wrt2, parameters Constant2)
 
virtual CoolPropDbl calc_first_two_phase_deriv_splined (parameters Of, parameters Wrt, parameters Constant, CoolPropDbl x_end)
 
virtual CoolPropDbl calc_T (void)
 Using this backend, get the temperature. More...
 
virtual CoolPropDbl calc_rhomolar (void)
 Using this backend, get the molar density in mol/m^3. More...
 
virtual double calc_tangent_plane_distance (const double T, const double p, const std::vector< double > &w, const double rhomolar_guess)
 Using this backend, calculate the tangent plane distance for a given trial composition. More...
 
virtual void calc_conformal_state (const std::string &reference_fluid, CoolPropDbl &T, CoolPropDbl &rhomolar)
 
virtual void calc_viscosity_contributions (CoolPropDbl &dilute, CoolPropDbl &initial_density, CoolPropDbl &residual, CoolPropDbl &critical)
 
virtual void calc_conductivity_contributions (CoolPropDbl &dilute, CoolPropDbl &initial_density, CoolPropDbl &residual, CoolPropDbl &critical)
 
virtual std::vector< CriticalStatecalc_all_critical_points (void)
 
virtual void calc_build_spinodal ()
 
virtual SpinodalData calc_get_spinodal_data ()
 
virtual void calc_criticality_contour_values (double &L1star, double &M1star)
 
virtual void mass_to_molar_inputs (CoolProp::input_pairs &input_pair, CoolPropDbl &value1, CoolPropDbl &value2)
 Convert mass-based input pair to molar-based input pair; If molar-based, do nothing. More...
 
virtual void calc_change_EOS (const std::size_t i, const std::string &EOS_name)
 Change the equation of state for a given component to a specified EOS. More...
 

Protected Attributes

std::size_t Ncomp
 
bool _mole_fractions_set
 
std::vector< CoolPropDblmole_fractions_long_double
 
std::vector< double > mole_fractions
 
std::vector< double > mass_fractions
 
std::vector< double > mole_fractions_liq
 
std::vector< double > mole_fractions_vap
 
std::vector< std::string > fluid_names
 
- Protected Attributes inherited from CoolProp::AbstractState
long _fluid_type
 Some administrative variables. More...
 
phases _phase
 The key for the phase from CoolProp::phases enum. More...
 
phases imposed_phase_index
 If the phase is imposed, the imposed phase index. More...
 
SimpleState _critical
 Two important points. More...
 
SimpleState _reducing
 
CachedElement _molar_mass
 Molar mass [mol/kg]. More...
 
CachedElement _gas_constant
 Universal gas constant [J/mol/K]. More...
 
double _rhomolar
 Bulk values. More...
 
double _T
 
double _p
 
double _Q
 
double _R
 
CachedElement _tau
 
CachedElement _delta
 
CachedElement _viscosity
 Transport properties. More...
 
CachedElement _conductivity
 
CachedElement _surface_tension
 
CachedElement _hmolar
 
CachedElement _smolar
 
CachedElement _umolar
 
CachedElement _logp
 
CachedElement _logrhomolar
 
CachedElement _cpmolar
 
CachedElement _cp0molar
 
CachedElement _cvmolar
 
CachedElement _speed_sound
 
CachedElement _gibbsmolar
 
CachedElement _helmholtzmolar
 
CachedElement _hmolar_residual
 Residual properties. More...
 
CachedElement _smolar_residual
 
CachedElement _gibbsmolar_residual
 
CachedElement _hmolar_excess
 Excess properties. More...
 
CachedElement _smolar_excess
 
CachedElement _gibbsmolar_excess
 
CachedElement _umolar_excess
 
CachedElement _volumemolar_excess
 
CachedElement _helmholtzmolar_excess
 
CachedElement _rhoLanc
 Ancillary values. More...
 
CachedElement _rhoVanc
 
CachedElement _pLanc
 
CachedElement _pVanc
 
CachedElement _TLanc
 
CachedElement _TVanc
 
CachedElement _fugacity_coefficient
 
CachedElement _rho_spline
 Smoothing values. More...
 
CachedElement _drho_spline_dh__constp
 
CachedElement _drho_spline_dp__consth
 
CachedElement _alpha0
 Cached low-level elements for in-place calculation of other properties. More...
 
CachedElement _dalpha0_dTau
 
CachedElement _dalpha0_dDelta
 
CachedElement _d2alpha0_dTau2
 
CachedElement _d2alpha0_dDelta_dTau
 
CachedElement _d2alpha0_dDelta2
 
CachedElement _d3alpha0_dTau3
 
CachedElement _d3alpha0_dDelta_dTau2
 
CachedElement _d3alpha0_dDelta2_dTau
 
CachedElement _d3alpha0_dDelta3
 
CachedElement _alphar
 
CachedElement _dalphar_dTau
 
CachedElement _dalphar_dDelta
 
CachedElement _d2alphar_dTau2
 
CachedElement _d2alphar_dDelta_dTau
 
CachedElement _d2alphar_dDelta2
 
CachedElement _d3alphar_dTau3
 
CachedElement _d3alphar_dDelta_dTau2
 
CachedElement _d3alphar_dDelta2_dTau
 
CachedElement _d3alphar_dDelta3
 
CachedElement _d4alphar_dTau4
 
CachedElement _d4alphar_dDelta_dTau3
 
CachedElement _d4alphar_dDelta2_dTau2
 
CachedElement _d4alphar_dDelta3_dTau
 
CachedElement _d4alphar_dDelta4
 
CachedElement _dalphar_dDelta_lim
 
CachedElement _d2alphar_dDelta2_lim
 
CachedElement _d2alphar_dDelta_dTau_lim
 
CachedElement _d3alphar_dDelta2_dTau_lim
 
CachedElement _rhoLmolar
 Two-Phase variables. More...
 
CachedElement _rhoVmolar
 

Static Protected Attributes

static std::size_t instance_counter = 0
 
static bool _REFPROP_supported = true
 

Constructor & Destructor Documentation

◆ REFPROPMixtureBackend() [1/2]

CoolProp::REFPROPMixtureBackend::REFPROPMixtureBackend ( )
inline

Definition at line 40 of file REFPROPMixtureBackend.h.

◆ REFPROPMixtureBackend() [2/2]

CoolProp::REFPROPMixtureBackend::REFPROPMixtureBackend ( const std::vector< std::string > &  fluid_names)
inline

The instantiator

Parameters
fluid_namesThe vector of strings of the fluid components, without file ending

Definition at line 46 of file REFPROPMixtureBackend.h.

◆ ~REFPROPMixtureBackend()

CoolProp::REFPROPMixtureBackend::~REFPROPMixtureBackend ( )
virtual

Definition at line 185 of file REFPROPMixtureBackend.cpp.

Member Function Documentation

◆ backend_name()

std::string CoolProp::REFPROPMixtureBackend::backend_name ( void  )
inlinevirtual

Get a string representation of the backend - for instance "HelmholtzEOSMixtureBackend" for the core mixture model in CoolProp

Must be overloaded by the backend to provide the backend's name

Implements CoolProp::AbstractState.

Definition at line 53 of file REFPROPMixtureBackend.h.

◆ calc_acentric_factor()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_acentric_factor ( void  )
virtual

Using this backend, calculate the acentric factor.

Reimplemented from CoolProp::AbstractState.

Definition at line 806 of file REFPROPMixtureBackend.cpp.

◆ calc_alpha0()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_alpha0 ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 301 of file REFPROPMixtureBackend.h.

◆ calc_alphar()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_alphar ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 261 of file REFPROPMixtureBackend.h.

◆ calc_Bvirial()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_Bvirial ( void  )
virtual

Calc the B virial coefficient.

Reimplemented from CoolProp::AbstractState.

Definition at line 912 of file REFPROPMixtureBackend.cpp.

◆ calc_chemical_potential()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_chemical_potential ( std::size_t  i)
virtual

Using this backend, calculate the chemical potential in J/mol.

Reimplemented from CoolProp::AbstractState.

Definition at line 1077 of file REFPROPMixtureBackend.cpp.

◆ calc_compressibility_factor()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_compressibility_factor ( void  )
inlinevirtual

Using this backend, calculate the compressibility factor Z \( Z = p/(\rho R T) \).

Reimplemented from CoolProp::AbstractState.

Definition at line 184 of file REFPROPMixtureBackend.h.

◆ calc_conductivity()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_conductivity ( void  )
virtual

Get the thermal conductivity [W/m/K] (based on the temperature and density in the state class)

Reimplemented from CoolProp::AbstractState.

Definition at line 1026 of file REFPROPMixtureBackend.cpp.

◆ calc_cpmolar_idealgas()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_cpmolar_idealgas ( void  )
virtual

Using this backend, calculate the ideal gas molar constant-pressure specific heat in J/mol/K.

Reimplemented from CoolProp::AbstractState.

Definition at line 1187 of file REFPROPMixtureBackend.cpp.

◆ calc_Cvirial()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_Cvirial ( void  )
virtual

Calc the C virial coefficient.

Reimplemented from CoolProp::AbstractState.

Definition at line 922 of file REFPROPMixtureBackend.cpp.

◆ calc_d2alpha0_dDelta2()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d2alpha0_dDelta2 ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 310 of file REFPROPMixtureBackend.h.

◆ calc_d2alpha0_dDelta_dTau()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d2alpha0_dDelta_dTau ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\delta}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 313 of file REFPROPMixtureBackend.h.

◆ calc_d2alpha0_dTau2()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d2alpha0_dTau2 ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\tau\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 316 of file REFPROPMixtureBackend.h.

◆ calc_d2alphar_dDelta2()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d2alphar_dDelta2 ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 273 of file REFPROPMixtureBackend.h.

◆ calc_d2alphar_dDelta_dTau()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d2alphar_dDelta_dTau ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 277 of file REFPROPMixtureBackend.h.

◆ calc_d2alphar_dTau2()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d2alphar_dTau2 ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\tau\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 281 of file REFPROPMixtureBackend.h.

◆ calc_d3alpha0_dDelta2_dTau()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alpha0_dDelta2_dTau ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\delta\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 322 of file REFPROPMixtureBackend.h.

◆ calc_d3alpha0_dDelta3()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alpha0_dDelta3 ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\delta\delta}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 319 of file REFPROPMixtureBackend.h.

◆ calc_d3alpha0_dDelta_dTau2()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alpha0_dDelta_dTau2 ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta\tau\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 325 of file REFPROPMixtureBackend.h.

◆ calc_d3alpha0_dTau3()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alpha0_dTau3 ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\tau\tau\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 328 of file REFPROPMixtureBackend.h.

◆ calc_d3alphar_dDelta2_dTau()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alphar_dDelta2_dTau ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 289 of file REFPROPMixtureBackend.h.

◆ calc_d3alphar_dDelta3()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alphar_dDelta3 ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\delta\delta}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 285 of file REFPROPMixtureBackend.h.

◆ calc_d3alphar_dDelta_dTau2()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alphar_dDelta_dTau2 ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta\tau\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 293 of file REFPROPMixtureBackend.h.

◆ calc_d3alphar_dTau3()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_d3alphar_dTau3 ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\tau\tau\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 297 of file REFPROPMixtureBackend.h.

◆ calc_dalpha0_dDelta()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_dalpha0_dDelta ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\delta}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 304 of file REFPROPMixtureBackend.h.

◆ calc_dalpha0_dTau()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_dalpha0_dTau ( void  )
inlinevirtual

Using this backend, calculate the ideal-gas Helmholtz energy term \(\alpha^0_{\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 307 of file REFPROPMixtureBackend.h.

◆ calc_dalphar_dDelta()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_dalphar_dDelta ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\delta}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 265 of file REFPROPMixtureBackend.h.

◆ calc_dalphar_dTau()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_dalphar_dTau ( void  )
inlinevirtual

Using this backend, calculate the residual Helmholtz energy term \(\alpha^r_{\tau}\) (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 269 of file REFPROPMixtureBackend.h.

◆ calc_dBvirial_dT()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_dBvirial_dT ( void  )
virtual

Calc the temperature derivative of the second virial coefficient.

Reimplemented from CoolProp::AbstractState.

Definition at line 917 of file REFPROPMixtureBackend.cpp.

◆ calc_dipole_moment()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_dipole_moment ( void  )
virtual

Using this backend, calculate the dipole moment in C-m (1 D = 3.33564e-30 C-m)

Reimplemented from CoolProp::AbstractState.

Definition at line 869 of file REFPROPMixtureBackend.cpp.

◆ calc_excess_properties()

void CoolProp::REFPROPMixtureBackend::calc_excess_properties ( void  )
virtual

Calculate excess properties.

Reimplemented from CoolProp::AbstractState.

Definition at line 1995 of file REFPROPMixtureBackend.cpp.

◆ calc_fluid_names()

std::vector<std::string> CoolProp::REFPROPMixtureBackend::calc_fluid_names ( void  )
inlinevirtual

Using this backend, get a vector of fluid names.

Reimplemented from CoolProp::AbstractState.

Definition at line 60 of file REFPROPMixtureBackend.h.

◆ calc_fugacity()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_fugacity ( std::size_t  i)
virtual

Using this backend, calculate the fugacity in Pa.

Reimplemented from CoolProp::AbstractState.

Definition at line 1062 of file REFPROPMixtureBackend.cpp.

◆ calc_fugacity_coefficient()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_fugacity_coefficient ( std::size_t  i)
virtual

Using this backend, calculate the fugacity coefficient (dimensionless)

Reimplemented from CoolProp::AbstractState.

Definition at line 1046 of file REFPROPMixtureBackend.cpp.

◆ calc_gas_constant()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_gas_constant ( void  )
virtual

Using this backend, calculate the universal gas constant \(R_u\) in J/mol/K.

Reimplemented from CoolProp::AbstractState.

Definition at line 899 of file REFPROPMixtureBackend.cpp.

◆ calc_ideal_curve()

void CoolProp::REFPROPMixtureBackend::calc_ideal_curve ( const std::string &  type,
std::vector< double > &  T,
std::vector< double > &  p 
)
virtual

Calculate an ideal curve.

Reimplemented from CoolProp::AbstractState.

Definition at line 2102 of file REFPROPMixtureBackend.cpp.

◆ calc_mass_fractions()

const std::vector< CoolPropDbl > CoolProp::REFPROPMixtureBackend::calc_mass_fractions ( void  )
virtual

Reimplemented from CoolProp::AbstractState.

Definition at line 980 of file REFPROPMixtureBackend.cpp.

◆ calc_melt_Tmax()

double CoolProp::REFPROPMixtureBackend::calc_melt_Tmax ( )

Definition at line 927 of file REFPROPMixtureBackend.cpp.

◆ calc_melting_line()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_melting_line ( int  param,
int  given,
CoolPropDbl  value 
)
virtual

Reimplemented from CoolProp::AbstractState.

Definition at line 942 of file REFPROPMixtureBackend.cpp.

◆ calc_molar_mass()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_molar_mass ( void  )
virtual

Using this backend, calculate the molar mass in kg/mol.

Reimplemented from CoolProp::AbstractState.

Definition at line 905 of file REFPROPMixtureBackend.cpp.

◆ calc_mole_fractions_liquid()

std::vector<CoolPropDbl> CoolProp::REFPROPMixtureBackend::calc_mole_fractions_liquid ( void  )
inlinevirtual

Reimplemented from CoolProp::AbstractState.

Definition at line 192 of file REFPROPMixtureBackend.h.

◆ calc_mole_fractions_vapor()

std::vector<CoolPropDbl> CoolProp::REFPROPMixtureBackend::calc_mole_fractions_vapor ( void  )
inlinevirtual

Reimplemented from CoolProp::AbstractState.

Definition at line 195 of file REFPROPMixtureBackend.h.

◆ calc_name()

std::string CoolProp::REFPROPMixtureBackend::calc_name ( void  )
inlinevirtual

Calculate the name of the fluid.

Reimplemented from CoolProp::AbstractState.

Definition at line 95 of file REFPROPMixtureBackend.h.

◆ calc_p_critical()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_p_critical ( void  )
virtual

Using this backend, get the critical point pressure in Pa.

Reimplemented from CoolProp::AbstractState.

Definition at line 766 of file REFPROPMixtureBackend.cpp.

◆ calc_p_min()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_p_min ( void  )
inline

Definition at line 226 of file REFPROPMixtureBackend.h.

◆ calc_p_triple()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_p_triple ( void  )
virtual

Using this backend, get the triple point pressure in Pa.

Reimplemented from CoolProp::AbstractState.

Definition at line 852 of file REFPROPMixtureBackend.cpp.

◆ calc_phase()

phases CoolProp::REFPROPMixtureBackend::calc_phase ( void  )
inlinevirtual

Using this backend, calculate the phase.

Reimplemented from CoolProp::AbstractState.

Definition at line 100 of file REFPROPMixtureBackend.h.

◆ calc_phase_envelope()

void CoolProp::REFPROPMixtureBackend::calc_phase_envelope ( const std::string &  type)
virtual

Using this backend, construct the phase envelope, the variable type describes the type of phase envelope to be built.

Reimplemented from CoolProp::AbstractState.

Definition at line 1093 of file REFPROPMixtureBackend.cpp.

◆ calc_phase_envelope_data()

const CoolProp::PhaseEnvelopeData& CoolProp::REFPROPMixtureBackend::calc_phase_envelope_data ( void  )
inlinevirtual

Reimplemented from CoolProp::AbstractState.

Definition at line 188 of file REFPROPMixtureBackend.h.

◆ calc_PIP()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_PIP ( void  )
virtual

Using this backend, calculate the phase identification parameter (PIP)

Reimplemented from CoolProp::AbstractState.

Definition at line 995 of file REFPROPMixtureBackend.cpp.

◆ calc_pmax()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_pmax ( void  )
virtual

Calculate the maximum pressure.

Reimplemented from CoolProp::AbstractState.

Definition at line 740 of file REFPROPMixtureBackend.cpp.

◆ calc_reducing_state()

void CoolProp::REFPROPMixtureBackend::calc_reducing_state ( void  )
virtual

Reimplemented from CoolProp::AbstractState.

Definition at line 787 of file REFPROPMixtureBackend.cpp.

◆ calc_rhomolar_critical()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_rhomolar_critical ( void  )
virtual

Using this backend, get the critical point molar density in mol/m^3.

Reimplemented from CoolProp::AbstractState.

Definition at line 777 of file REFPROPMixtureBackend.cpp.

◆ calc_rhomolar_reducing()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_rhomolar_reducing ( void  )
virtual

Using this backend, get the reducing point molar density in mol/m^3.

Reimplemented from CoolProp::AbstractState.

Definition at line 800 of file REFPROPMixtureBackend.cpp.

◆ calc_saturated_liquid_keyed_output()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_saturated_liquid_keyed_output ( parameters  key)
virtual

Calculate the saturation properties.

Reimplemented from CoolProp::AbstractState.

Definition at line 2065 of file REFPROPMixtureBackend.cpp.

◆ calc_saturated_vapor_keyed_output()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_saturated_vapor_keyed_output ( parameters  key)
virtual

Reimplemented from CoolProp::AbstractState.

Definition at line 2083 of file REFPROPMixtureBackend.cpp.

◆ calc_smolar_residual()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_smolar_residual ( void  )
inlinevirtual

Calculate the residual entropy in J/mol/K (should be a uniquely negative quantity)

Reimplemented from CoolProp::AbstractState.

Definition at line 256 of file REFPROPMixtureBackend.h.

◆ calc_specify_phase()

void CoolProp::REFPROPMixtureBackend::calc_specify_phase ( phases  phase_index)
inlinevirtual

Specify the phase - this phase will always be used in calculations.

Parameters
phase_indexThe index from CoolProp::phases

Reimplemented from CoolProp::AbstractState.

Definition at line 115 of file REFPROPMixtureBackend.h.

◆ calc_surface_tension()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_surface_tension ( void  )
virtual

Get the surface tension [N/m] (based on the temperature in the state class). Invalid for temperatures above critical point or below triple point temperature.

Reimplemented from CoolProp::AbstractState.

Definition at line 1031 of file REFPROPMixtureBackend.cpp.

◆ calc_T_critical()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_T_critical ( void  )
virtual

Using this backend, get the critical point temperature in K.

Reimplemented from CoolProp::AbstractState.

Definition at line 755 of file REFPROPMixtureBackend.cpp.

◆ calc_T_reducing()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_T_reducing ( void  )
virtual

Using this backend, get the reducing point temperature in K.

Reimplemented from CoolProp::AbstractState.

Definition at line 794 of file REFPROPMixtureBackend.cpp.

◆ calc_Tmax()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_Tmax ( void  )
virtual

Calculate the maximum temperature.

Reimplemented from CoolProp::AbstractState.

Definition at line 745 of file REFPROPMixtureBackend.cpp.

◆ calc_Tmin()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_Tmin ( void  )
virtual

Calculate the minimum temperature.

Reimplemented from CoolProp::AbstractState.

Definition at line 750 of file REFPROPMixtureBackend.cpp.

◆ calc_true_critical_point()

void CoolProp::REFPROPMixtureBackend::calc_true_critical_point ( double &  T,
double &  rho 
)
virtual

Calculate the "true" critical point where dp/drho|T and d2p/drho2|T are zero.

Reimplemented from CoolProp::AbstractState.

Definition at line 2037 of file REFPROPMixtureBackend.cpp.

◆ calc_Ttriple()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_Ttriple ( void  )
virtual

Using this backend, get the triple point temperature in K.

Reimplemented from CoolProp::AbstractState.

Definition at line 820 of file REFPROPMixtureBackend.cpp.

◆ calc_unspecify_phase()

void CoolProp::REFPROPMixtureBackend::calc_unspecify_phase ( void  )
inlinevirtual

Unspecify the phase - the phase is no longer imposed, different solvers can do as they like.

Reimplemented from CoolProp::AbstractState.

Definition at line 121 of file REFPROPMixtureBackend.h.

◆ calc_viscosity()

CoolPropDbl CoolProp::REFPROPMixtureBackend::calc_viscosity ( void  )
virtual

Get the viscosity [Pa-s] (based on the temperature and density in the state class)

Reimplemented from CoolProp::AbstractState.

Definition at line 1010 of file REFPROPMixtureBackend.cpp.

◆ call_phi0dll()

CoolPropDbl CoolProp::REFPROPMixtureBackend::call_phi0dll ( int  itau,
int  idelta 
)
protected

Call the PHI0dll function in the dll.

Definition at line 1985 of file REFPROPMixtureBackend.cpp.

◆ call_phixdll()

CoolPropDbl CoolProp::REFPROPMixtureBackend::call_phixdll ( int  itau,
int  idelta 
)
protected

Call the PHIXdll function in the dll.

Definition at line 1976 of file REFPROPMixtureBackend.cpp.

◆ check_loaded_fluid()

void CoolProp::REFPROPMixtureBackend::check_loaded_fluid ( void  )

Definition at line 193 of file REFPROPMixtureBackend.cpp.

◆ check_status()

void CoolProp::REFPROPMixtureBackend::check_status ( void  )

Check if the mole fractions have been set, etc.

Definition at line 703 of file REFPROPMixtureBackend.cpp.

◆ construct()

void CoolProp::REFPROPMixtureBackend::construct ( const std::vector< std::string > &  fluid_names)

A function to actually do the initialization to allow it to be called in derived classes.

Definition at line 167 of file REFPROPMixtureBackend.cpp.

◆ fluid_param_string()

std::string CoolProp::REFPROPMixtureBackend::fluid_param_string ( const std::string &  )
virtual

Return a string from the backend for the mixture/fluid - backend dependent - could be CAS #, name, etc.

Reimplemented from CoolProp::AbstractState.

Definition at line 455 of file REFPROPMixtureBackend.cpp.

◆ get_binary_interaction_double() [1/2]

double CoolProp::REFPROPMixtureBackend::get_binary_interaction_double ( const std::size_t  i,
const std::size_t  j,
const std::string &  parameter 
)
virtual

Get binary mixture double value (EXPERT USE ONLY!!!)

Reimplemented from CoolProp::AbstractState.

Definition at line 630 of file REFPROPMixtureBackend.cpp.

◆ get_binary_interaction_double() [2/2]

double CoolProp::REFPROPMixtureBackend::get_binary_interaction_double ( const std::string &  CAS1,
const std::string &  CAS2,
const std::string &  parameter 
)
virtual

Get binary mixture double value.

Reimplemented from CoolProp::AbstractState.

Definition at line 517 of file REFPROPMixtureBackend.cpp.

◆ get_binary_interaction_string()

std::string CoolProp::REFPROPMixtureBackend::get_binary_interaction_string ( const std::string &  CAS1,
const std::string &  CAS2,
const std::string &  parameter 
)
virtual

Get binary mixture string value.

Reimplemented from CoolProp::AbstractState.

Definition at line 522 of file REFPROPMixtureBackend.cpp.

◆ get_mole_fractions()

const std::vector<CoolPropDbl>& CoolProp::REFPROPMixtureBackend::get_mole_fractions ( )
inlinevirtual

Get the mole fractions of the fluid.

Implements CoolProp::AbstractState.

Definition at line 176 of file REFPROPMixtureBackend.h.

◆ GetRPphase()

phases CoolProp::REFPROPMixtureBackend::GetRPphase ( )

Definition at line 1195 of file REFPROPMixtureBackend.cpp.

◆ has_melting_line()

bool CoolProp::REFPROPMixtureBackend::has_melting_line ( void  )
virtual

Return true if the fluid has a melting line - default is false, but can be re-implemented by derived class.

Reimplemented from CoolProp::AbstractState.

Definition at line 966 of file REFPROPMixtureBackend.cpp.

◆ limits()

void CoolProp::REFPROPMixtureBackend::limits ( double &  Tmin,
double &  Tmax,
double &  rhomolarmax,
double &  pmax 
)

A wrapper function to calculate the limits for the EOS.

Definition at line 709 of file REFPROPMixtureBackend.cpp.

◆ match_CAS()

int CoolProp::REFPROPMixtureBackend::match_CAS ( const std::string &  CAS)

Find the index (1-based for FORTRAN) of the fluid with the given CAS number.

Definition at line 497 of file REFPROPMixtureBackend.cpp.

◆ REFPROP_supported()

bool CoolProp::REFPROPMixtureBackend::REFPROP_supported ( void  )
static

Returns true if REFPROP is supported on this platform.

Definition at line 199 of file REFPROPMixtureBackend.cpp.

◆ set_binary_interaction_double() [1/2]

void CoolProp::REFPROPMixtureBackend::set_binary_interaction_double ( const std::size_t  i,
const std::size_t  j,
const std::string &  parameter,
const double  value 
)
virtual

Set binary mixture string parameter (EXPERT USE ONLY!!!)

Reimplemented from CoolProp::AbstractState.

Definition at line 584 of file REFPROPMixtureBackend.cpp.

◆ set_binary_interaction_double() [2/2]

void CoolProp::REFPROPMixtureBackend::set_binary_interaction_double ( const std::string &  CAS1,
const std::string &  CAS2,
const std::string &  parameter,
const double  value 
)
virtual

Set binary mixture floating point parameter.

Reimplemented from CoolProp::AbstractState.

Definition at line 511 of file REFPROPMixtureBackend.cpp.

◆ set_binary_interaction_string()

void CoolProp::REFPROPMixtureBackend::set_binary_interaction_string ( const std::size_t  i,
const std::size_t  j,
const std::string &  parameter,
const std::string &  value 
)
virtual

Set binary mixture string value.

Reimplemented from CoolProp::AbstractState.

Definition at line 549 of file REFPROPMixtureBackend.cpp.

◆ set_mass_fractions()

void CoolProp::REFPROPMixtureBackend::set_mass_fractions ( const std::vector< CoolPropDbl > &  mass_fractions)
virtual

Set the mass fractions.

Parameters
mass_fractionsThe vector of mass fractions of the components

Implements CoolProp::AbstractState.

Definition at line 685 of file REFPROPMixtureBackend.cpp.

◆ set_mole_fractions()

void CoolProp::REFPROPMixtureBackend::set_mole_fractions ( const std::vector< CoolPropDbl > &  mole_fractions)
virtual

Set the mole fractions.

Parameters
mole_fractionsThe vector of mole fractions of the components

Implements CoolProp::AbstractState.

Definition at line 672 of file REFPROPMixtureBackend.cpp.

◆ set_REFPROP_fluids()

void CoolProp::REFPROPMixtureBackend::set_REFPROP_fluids ( const std::vector< std::string > &  fluid_names)

Set the fluids in REFPROP DLL by calling the SETUPdll function.

Parameters
fluid_namesThe vector of strings of the fluid components, without file ending

Definition at line 282 of file REFPROPMixtureBackend.cpp.

◆ update()

void CoolProp::REFPROPMixtureBackend::update ( CoolProp::input_pairs  input_pair,
double  value1,
double  value2 
)
virtual

Updating function for REFPROP.

In this function we take a pair of thermodynamic states, those defined in the input_pairs enumeration and update all the internal variables that we can. REFPROP calculates a lot of other state variables each time you use a flash routine so we cache all the outputs that we can, which saves on computational time.

Parameters
input_pairInteger key from CoolProp::input_pairs to the two inputs that will be passed to the function
value1First input value
value2Second input value

Implements CoolProp::AbstractState.

Definition at line 1227 of file REFPROPMixtureBackend.cpp.

◆ update_with_guesses()

void CoolProp::REFPROPMixtureBackend::update_with_guesses ( CoolProp::input_pairs  input_pair,
double  value1,
double  value2,
const GuessesStructure guesses 
)
virtual

Update the state, while providing guess values.

Reimplemented from CoolProp::AbstractState.

Definition at line 1865 of file REFPROPMixtureBackend.cpp.

◆ using_mass_fractions()

bool CoolProp::REFPROPMixtureBackend::using_mass_fractions ( void  )
inlinevirtual

Implements CoolProp::AbstractState.

Definition at line 87 of file REFPROPMixtureBackend.h.

◆ using_mole_fractions()

bool CoolProp::REFPROPMixtureBackend::using_mole_fractions ( void  )
inlinevirtual

Implements CoolProp::AbstractState.

Definition at line 84 of file REFPROPMixtureBackend.h.

◆ using_volu_fractions()

bool CoolProp::REFPROPMixtureBackend::using_volu_fractions ( void  )
inlinevirtual

Implements CoolProp::AbstractState.

Definition at line 90 of file REFPROPMixtureBackend.h.

◆ version()

std::string CoolProp::REFPROPMixtureBackend::version ( )
static

Definition at line 257 of file REFPROPMixtureBackend.cpp.

Member Data Documentation

◆ _mole_fractions_set

bool CoolProp::REFPROPMixtureBackend::_mole_fractions_set
protected

Definition at line 25 of file REFPROPMixtureBackend.h.

◆ _REFPROP_supported

bool CoolProp::REFPROPMixtureBackend::_REFPROP_supported = true
staticprotected

Definition at line 28 of file REFPROPMixtureBackend.h.

◆ fluid_names

std::vector<std::string> CoolProp::REFPROPMixtureBackend::fluid_names ( void  )
protected

Definition at line 32 of file REFPROPMixtureBackend.h.

◆ instance_counter

std::size_t CoolProp::REFPROPMixtureBackend::instance_counter = 0
staticprotected

Definition at line 27 of file REFPROPMixtureBackend.h.

◆ mass_fractions

std::vector<double> CoolProp::REFPROPMixtureBackend::mass_fractions
protected

Definition at line 30 of file REFPROPMixtureBackend.h.

◆ mole_fractions

std::vector<double> CoolProp::REFPROPMixtureBackend::mole_fractions
protected

Definition at line 30 of file REFPROPMixtureBackend.h.

◆ mole_fractions_liq

std::vector<double> CoolProp::REFPROPMixtureBackend::mole_fractions_liq
protected

Definition at line 31 of file REFPROPMixtureBackend.h.

◆ mole_fractions_long_double

std::vector<CoolPropDbl> CoolProp::REFPROPMixtureBackend::mole_fractions_long_double
protected

Definition at line 29 of file REFPROPMixtureBackend.h.

◆ mole_fractions_vap

std::vector<double> CoolProp::REFPROPMixtureBackend::mole_fractions_vap
protected

Definition at line 31 of file REFPROPMixtureBackend.h.

◆ Ncomp

std::size_t CoolProp::REFPROPMixtureBackend::Ncomp
protected

Definition at line 24 of file REFPROPMixtureBackend.h.

◆ PhaseEnvelope

PhaseEnvelopeData CoolProp::REFPROPMixtureBackend::PhaseEnvelope

Definition at line 63 of file REFPROPMixtureBackend.h.


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