CoolProp  6.6.1dev
An open-source fluid property and humid air property database
Namespaces | Functions
CoolProp.h File Reference
#include <string>
#include <vector>
#include "DataStructures.h"

Go to the source code of this file.

Namespaces

 CoolProp
 Code for all the binary pairs in the mixture.
 

Functions

double CoolProp::Props1SI (std::string FluidName, std::string Output)
 
std::vector< std::vector< double > > CoolProp::Props1SImulti (const std::vector< std::string > &Outputs, const std::string &backend, const std::vector< std::string > &fluids, const std::vector< double > &fractions)
 Get a matrix of outputs that do not depend on the thermodynamic state - this is a convenience function that does the call PropsSImulti(Outputs, "", {0}, "", {0}, backend, fluids, fractions) More...
 
double CoolProp::PropsSI (const std::string &Output, const std::string &Name1, double Prop1, const std::string &Name2, double Prop2, const std::string &Ref)
 
std::vector< std::vector< double > > CoolProp::PropsSImulti (const std::vector< std::string > &Outputs, const std::string &Name1, const std::vector< double > &Prop1, const std::string &Name2, const std::vector< double > &Prop2, const std::string &backend, const std::vector< std::string > &fluids, const std::vector< double > &fractions)
 Get a matrix of outputs for a given input. Can handle both vector inputs as well as a vector of output strings. More...
 
int CoolProp::get_debug_level ()
 
void CoolProp::set_debug_level (int level)
 
void CoolProp::set_error_string (const std::string &error)
 
void CoolProp::set_warning_string (const std::string &warning)
 
double CoolProp::saturation_ancillary (const std::string &fluid_name, const std::string &output, int Q, const std::string &input, double value)
 
std::string CoolProp::get_global_param_string (const std::string &ParamName)
 
std::string CoolProp::get_fluid_param_string (const std::string &FluidName, const std::string &ParamName)
 Get a string for a value from a fluid (numerical values for the fluid can be obtained from Props1SI function) More...
 
bool CoolProp::is_valid_fluid_string (const std::string &fluidstring)
 Check if the fluid name is valid. More...
 
bool CoolProp::add_fluids_as_JSON (const std::string &backend, const std::string &fluidstring)
 Add fluids as a JSON-formatted string. More...
 
void CoolProp::set_reference_stateS (const std::string &FluidName, const std::string &reference_state)
 Set the reference state based on a string representation. More...
 
void CoolProp::set_reference_stateD (const std::string &Ref, double T, double rhomolar, double hmolar0, double smolar0)
 
std::string CoolProp::PhaseSI (const std::string &Name1, double Prop1, const std::string &Name2, double Prop2, const std::string &FluidName)
 
void CoolProp::extract_backend (std::string fluid_string, std::string &backend, std::string &fluid)
 Extract the backend from a string - something like "HEOS::Water" would split to "HEOS" and "Water". If no backend is specified, the backend will be set to "?". More...
 
std::string CoolProp::extract_fractions (const std::string &fluid_string, std::vector< double > &fractions)
 Extract fractions (molar, mass, etc.) encoded in the string if any. More...
 
std::string CoolProp::phase_lookup_string (phases Phase)