CoolProp
6.6.0
An open-source fluid property and humid air property database
|
A container for the parameters for a given UNIFAC model.
This container is intended to be sufficiently generic to allow the user to populate it with UNIFAC parameters from any of the standard UNIFAC models
Input of parameters (population) is done using JSON-formatted strings, and the class can be interrogated to return the desired group information and/or interaction parameters
Definition at line 83 of file UNIFACLibrary.h.
#include <UNIFACLibrary.h>
Public Member Functions | |
UNIFACParameterLibrary () | |
bool | is_populated () |
Return true if library has been populated. More... | |
void | populate (std::string &group_data, std::string &interaction_data, std::string &decomp_data) |
Populate internal data structures based on JSON-formatted strings. More... | |
Group | get_group (int sgi) const |
Get the data for group with given sub group index. More... | |
bool | has_group (int sgi) const |
Check if the sub group index can be retrieved. More... | |
Component | get_component (const std::string &identifier, const std::string &value) const |
Get the group decomposition for a given component. More... | |
InteractionParameters | get_interaction_parameters (int mgi1, int mgi2) const |
Get the interaction parameters for given mgi-mgi pair. More... | |
|
inline |
Definition at line 98 of file UNIFACLibrary.h.
Component UNIFACLibrary::UNIFACParameterLibrary::get_component | ( | const std::string & | identifier, |
const std::string & | value | ||
) | const |
Get the group decomposition for a given component.
Definition at line 130 of file UNIFACLibrary.cpp.
Group UNIFACLibrary::UNIFACParameterLibrary::get_group | ( | int | sgi | ) | const |
Get the data for group with given sub group index.
Definition at line 88 of file UNIFACLibrary.cpp.
InteractionParameters UNIFACLibrary::UNIFACParameterLibrary::get_interaction_parameters | ( | int | mgi1, |
int | mgi2 | ||
) | const |
Get the interaction parameters for given mgi-mgi pair.
Definition at line 105 of file UNIFACLibrary.cpp.
bool UNIFACLibrary::UNIFACParameterLibrary::has_group | ( | int | sgi | ) | const |
Check if the sub group index can be retrieved.
Definition at line 96 of file UNIFACLibrary.cpp.
|
inline |
Return true if library has been populated.
Definition at line 101 of file UNIFACLibrary.h.
void UNIFACLibrary::UNIFACParameterLibrary::populate | ( | std::string & | group_data, |
std::string & | interaction_data, | ||
std::string & | decomp_data | ||
) |
Populate internal data structures based on JSON-formatted strings.
Definition at line 78 of file UNIFACLibrary.cpp.