CoolProp 8.0.0
An open-source fluid property and humid air property database
Public Member Functions | List of all members
CoolProp::MixtureBinaryPairLibrary Class Reference

Detailed Description

A library of binary pair parameters for the mixture.

Each entry in the binary pair library includes reducing parameters as well as the name of the reducing function to be used and

Definition at line 81 of file MixtureParameters.cpp.

Public Member Functions

std::map< std::vector< std::string >, std::vector< Dictionary > > & binary_pair_map ()
 
void load_from_string (const std::string_view &str)
 
void load_defaults_if_needed ()
 
void load_defaults ()
 
void load_from_JSON (const nlohmann::json &doc)
 Construct the binary pair library including all the binary pairs that are possible. More...
 
void add_simple_mixing_rule (const std::string &identifier1, const std::string &identifier2, const std::string &rule)
 Add a simple mixing rule. More...
 

Member Function Documentation

◆ add_simple_mixing_rule()

void CoolProp::MixtureBinaryPairLibrary::add_simple_mixing_rule ( const std::string &  identifier1,
const std::string &  identifier2,
const std::string &  rule 
)
inline

Add a simple mixing rule.

Definition at line 195 of file MixtureParameters.cpp.

◆ binary_pair_map()

std::map< std::vector< std::string >, std::vector< Dictionary > > & CoolProp::MixtureBinaryPairLibrary::binary_pair_map ( )
inline

Definition at line 92 of file MixtureParameters.cpp.

◆ load_defaults()

void CoolProp::MixtureBinaryPairLibrary::load_defaults ( )
inline

Definition at line 108 of file MixtureParameters.cpp.

◆ load_defaults_if_needed()

void CoolProp::MixtureBinaryPairLibrary::load_defaults_if_needed ( )
inline

Definition at line 102 of file MixtureParameters.cpp.

◆ load_from_JSON()

void CoolProp::MixtureBinaryPairLibrary::load_from_JSON ( const nlohmann::json &  doc)
inline

Construct the binary pair library including all the binary pairs that are possible.

The data structure also includes space for a string that gives the pointer to the departure function to be used for this binary pair.

Definition at line 116 of file MixtureParameters.cpp.

◆ load_from_string()

void CoolProp::MixtureBinaryPairLibrary::load_from_string ( const std::string_view &  str)
inline

Definition at line 97 of file MixtureParameters.cpp.


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