CoolProp
6.6.0
An open-source fluid property and humid air property database
|
A container for the fluid parameters for the incompressible fluids.
Class to access Lithium-Bromide solutions ** Employs some basic wrapper-like functionality This container holds copies of all of the fluid instances for the fluids that are loaded in incompressible. New fluids can be added by passing in a rapidjson::Value instance to the add_one function, or a rapidjson array of fluids to the add_many function.
Definition at line 139 of file IncompressibleLibrary.h.
#include <IncompressibleLibrary.h>
Public Member Functions | |
JSONIncompressibleLibrary () | |
*Triple point of H2O */ More... | |
~JSONIncompressibleLibrary () | |
Default destructor. More... | |
bool | is_empty (void) |
void | add_many (rapidjson::Value &listing) |
Add all the fluid entries in the rapidjson::Value instance passed in. More... | |
void | add_one (rapidjson::Value &fluid_json) |
void | add_obj (const IncompressibleFluid &fluid_obj) |
IncompressibleFluid & | get (const std::string &name) |
Get an IncompressibleFluid instance stored in this library. More... | |
IncompressibleFluid & | get (std::size_t key) |
Get a CoolPropFluid instance stored in this library. More... | |
std::string | get_incompressible_list_pure (void) |
Return a comma-separated list of incompressible pure fluid names. More... | |
std::string | get_incompressible_list_solution (void) |
Return a comma-separated list of solution names. More... | |
Protected Member Functions | |
IncompressibleData | parse_coefficients (rapidjson::Value &obj, const std::string &id, bool vital) |
A general function to parse the json files that hold the coefficient matrices. More... | |
double | parse_value (rapidjson::Value &obj, const std::string &id, bool vital, double def) |
Get a double from the JSON storage if it is defined, otherwise return def. More... | |
composition_types | parse_ifrac (rapidjson::Value &obj, const std::string &id) |
Get an integer from the JSON storage to identify the composition. More... | |
CoolProp::JSONIncompressibleLibrary::JSONIncompressibleLibrary | ( | ) |
*Triple point of H2O */
Class to access Lithium-Bromide solutions ** Employs some basic wrapper-like functionality* Critical point of H2O */
Definition at line 327 of file IncompressibleLibrary.cpp.
CoolProp::JSONIncompressibleLibrary::~JSONIncompressibleLibrary | ( | ) |
Default destructor.
Definition at line 337 of file IncompressibleLibrary.cpp.
void CoolProp::JSONIncompressibleLibrary::add_many | ( | rapidjson::Value & | listing | ) |
Add all the fluid entries in the rapidjson::Value instance passed in.
Definition at line 419 of file IncompressibleLibrary.cpp.
void CoolProp::JSONIncompressibleLibrary::add_obj | ( | const IncompressibleFluid & | fluid_obj | ) |
A function to check coefficients and equation types.
Definition at line 494 of file IncompressibleLibrary.cpp.
void CoolProp::JSONIncompressibleLibrary::add_one | ( | rapidjson::Value & | fluid_json | ) |
Setters for the coefficients
A function to check coefficients and equation types.
Definition at line 425 of file IncompressibleLibrary.cpp.
IncompressibleFluid & CoolProp::JSONIncompressibleLibrary::get | ( | const std::string & | name | ) |
Get an IncompressibleFluid instance stored in this library.
name | Name of the fluid |
Definition at line 514 of file IncompressibleLibrary.cpp.
IncompressibleFluid & CoolProp::JSONIncompressibleLibrary::get | ( | std::size_t | key | ) |
Get a CoolPropFluid instance stored in this library.
Get a IncompressibleFluid instance stored in this library.
key | The index of the fluid in the map |
Definition at line 529 of file IncompressibleLibrary.cpp.
|
inline |
Return a comma-separated list of incompressible pure fluid names.
Definition at line 183 of file IncompressibleLibrary.h.
|
inline |
Return a comma-separated list of solution names.
Definition at line 187 of file IncompressibleLibrary.h.
|
inline |
Definition at line 161 of file IncompressibleLibrary.h.
|
protected |
A general function to parse the json files that hold the coefficient matrices.
Definition at line 345 of file IncompressibleLibrary.cpp.
|
protected |
Get an integer from the JSON storage to identify the composition.
Definition at line 406 of file IncompressibleLibrary.cpp.
|
protected |
Get a double from the JSON storage if it is defined, otherwise return def.
Definition at line 393 of file IncompressibleLibrary.cpp.