|
CoolProp 7.2.0
An open-source fluid property and humid air property database
|
A container for the fluid parameters for the CoolProp fluids.
This container holds copies of all of the fluid instances for the fluids that are loaded in CoolProp. 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 27 of file FluidLibrary.h.
#include <FluidLibrary.h>
Public Member Functions | |
| JSONFluidLibrary () | |
| 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) |
| std::string | get_JSONstring (const std::string &key) |
| CoolPropFluid | get (const std::string &key) |
| Get a CoolPropFluid instance stored in this library. More... | |
| CoolPropFluid | get (std::size_t key) |
| Get a CoolPropFluid instance stored in this library. More... | |
| void | set_fluid_enthalpy_entropy_offset (const std::string &fluid, double delta_a1, double delta_a2, const std::string &ref) |
| std::string | get_fluid_list (void) |
| Return a comma-separated list of fluid names. More... | |
Static Public Member Functions | |
| static ResidualHelmholtzContainer | parse_alphar (rapidjson::Value &jsonalphar) |
| Parse the contributions to the residual Helmholtz energy. More... | |
| static IdealHelmholtzContainer | parse_alpha0 (rapidjson::Value &jsonalpha0) |
| Parse the contributions to the ideal-gas Helmholtz energy. More... | |
| static void | add_many (const std::string &JSON_string) |
| Add all the fluid entries in the JSON-encoded string passed in. More... | |
Protected Member Functions | |
| void | parse_environmental (rapidjson::Value &json, CoolPropFluid &fluid) |
| Parse the environmental parameters (ODP, GWP, etc.) More... | |
| void | parse_EOS (rapidjson::Value &EOS_json, CoolPropFluid &fluid) |
| Parse the Equation of state JSON entry. More... | |
| void | parse_EOS_listing (rapidjson::Value &EOS_array, CoolPropFluid &fluid) |
| Parse the list of possible equations of state. More... | |
| void | parse_dilute_viscosity (rapidjson::Value &dilute, CoolPropFluid &fluid) |
| Parse the transport properties. More... | |
| void | parse_initial_density_viscosity (rapidjson::Value &initial_density, CoolPropFluid &fluid) |
| Parse the transport properties. More... | |
| void | parse_higher_order_viscosity (rapidjson::Value &higher, CoolPropFluid &fluid) |
| Parse the transport properties. More... | |
| void | parse_ECS_conductivity (rapidjson::Value &conductivity, CoolPropFluid &fluid) |
| void | parse_ECS_viscosity (rapidjson::Value &viscosity, CoolPropFluid &fluid) |
| void | parse_Chung_viscosity (rapidjson::Value &viscosity, CoolPropFluid &fluid) |
| void | parse_rhosr_viscosity (rapidjson::Value &viscosity, CoolPropFluid &fluid) |
| void | parse_viscosity (rapidjson::Value &viscosity, CoolPropFluid &fluid) |
| Parse the transport properties. More... | |
| void | parse_dilute_conductivity (rapidjson::Value &dilute, CoolPropFluid &fluid) |
| Parse the transport properties. More... | |
| void | parse_residual_conductivity (rapidjson::Value &dilute, CoolPropFluid &fluid) |
| Parse the transport properties. More... | |
| void | parse_critical_conductivity (rapidjson::Value &critical, CoolPropFluid &fluid) |
| void | parse_thermal_conductivity (rapidjson::Value &conductivity, CoolPropFluid &fluid) |
| Parse the thermal conductivity data. More... | |
| void | parse_transport (rapidjson::Value &transport, CoolPropFluid &fluid) |
| Parse the transport properties. More... | |
| void | default_transport (CoolPropFluid &fluid) |
| void | parse_melting_line (rapidjson::Value &melting_line, CoolPropFluid &fluid) |
| void | parse_states (rapidjson::Value &states, CoolPropFluid &fluid) |
| Parse the critical state for the given EOS. More... | |
| void | parse_ancillaries (rapidjson::Value &ancillaries, CoolPropFluid &fluid) |
| Parse the critical state for the given EOS. More... | |
| void | parse_surface_tension (rapidjson::Value &surface_tension, CoolPropFluid &fluid) |
| Parse the surface_tension. More... | |
| void | validate (CoolPropFluid &fluid) |
| Validate the fluid file that was just constructed. More... | |
|
inline |
Definition at line 1196 of file FluidLibrary.h.
|
static |
Add all the fluid entries in the JSON-encoded string passed in.
Definition at line 115 of file FluidLibrary.cpp.
| void CoolProp::JSONFluidLibrary::add_many | ( | rapidjson::Value & | listing | ) |
Add all the fluid entries in the rapidjson::Value instance passed in.
Definition at line 128 of file FluidLibrary.cpp.
| void CoolProp::JSONFluidLibrary::add_one | ( | rapidjson::Value & | fluid_json | ) |
Definition at line 138 of file FluidLibrary.cpp.
|
inlineprotected |
Definition at line 1011 of file FluidLibrary.h.
|
inline |
Get a CoolPropFluid instance stored in this library.
| key | Either a CAS number or the name (CAS number should be preferred) |
Definition at line 1237 of file FluidLibrary.h.
|
inline |
Get a CoolPropFluid instance stored in this library.
| key | The index of the fluid in the map |
Definition at line 1331 of file FluidLibrary.h.
|
inline |
Return a comma-separated list of fluid names.
Definition at line 1343 of file FluidLibrary.h.
|
inline |
Definition at line 1211 of file FluidLibrary.h.
|
inline |
Definition at line 1199 of file FluidLibrary.h.
|
inlinestatic |
Parse the contributions to the ideal-gas Helmholtz energy.
Definition at line 171 of file FluidLibrary.h.
|
inlinestatic |
Parse the contributions to the residual Helmholtz energy.
Definition at line 39 of file FluidLibrary.h.
|
inlineprotected |
Parse the critical state for the given EOS.
Definition at line 1128 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 698 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 895 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 802 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 465 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 673 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 687 of file FluidLibrary.h.
|
inlineprotected |
Parse the environmental parameters (ODP, GWP, etc.)
Definition at line 341 of file FluidLibrary.h.
|
inlineprotected |
Parse the Equation of state JSON entry.
Definition at line 353 of file FluidLibrary.h.
|
inlineprotected |
Parse the list of possible equations of state.
Definition at line 458 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 561 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 530 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 1021 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 852 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 708 of file FluidLibrary.h.
|
inlineprotected |
Parse the critical state for the given EOS.
Definition at line 1077 of file FluidLibrary.h.
|
inlineprotected |
Parse the surface_tension.
Definition at line 1183 of file FluidLibrary.h.
|
inlineprotected |
Parse the thermal conductivity data.
Definition at line 948 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 996 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 718 of file FluidLibrary.h.
| void CoolProp::JSONFluidLibrary::set_fluid_enthalpy_entropy_offset | ( | const std::string & | fluid, |
| double | delta_a1, | ||
| double | delta_a2, | ||
| const std::string & | ref | ||
| ) |
Definition at line 57 of file FluidLibrary.cpp.
|
inlineprotected |
Validate the fluid file that was just constructed.
Definition at line 1188 of file FluidLibrary.h.