CoolProp
6.6.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 1172 of file FluidLibrary.h.
|
static |
Add all the fluid entries in the JSON-encoded string passed in.
Definition at line 83 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 96 of file FluidLibrary.cpp.
void CoolProp::JSONFluidLibrary::add_one | ( | rapidjson::Value & | fluid_json | ) |
Definition at line 106 of file FluidLibrary.cpp.
|
inlineprotected |
Definition at line 987 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 1213 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 1307 of file FluidLibrary.h.
|
inline |
Return a comma-separated list of fluid names.
Definition at line 1319 of file FluidLibrary.h.
|
inline |
Definition at line 1187 of file FluidLibrary.h.
|
inline |
Definition at line 1175 of file FluidLibrary.h.
|
inlinestatic |
Parse the contributions to the ideal-gas Helmholtz energy.
Definition at line 155 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 1104 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 673 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 871 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 777 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 440 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 648 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 662 of file FluidLibrary.h.
|
inlineprotected |
Parse the environmental parameters (ODP, GWP, etc.)
Definition at line 325 of file FluidLibrary.h.
|
inlineprotected |
Parse the Equation of state JSON entry.
Definition at line 337 of file FluidLibrary.h.
|
inlineprotected |
Parse the list of possible equations of state.
Definition at line 433 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 536 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 505 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 997 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 828 of file FluidLibrary.h.
|
inlineprotected |
Definition at line 683 of file FluidLibrary.h.
|
inlineprotected |
Parse the critical state for the given EOS.
Definition at line 1053 of file FluidLibrary.h.
|
inlineprotected |
Parse the surface_tension.
Definition at line 1159 of file FluidLibrary.h.
|
inlineprotected |
Parse the thermal conductivity data.
Definition at line 924 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 972 of file FluidLibrary.h.
|
inlineprotected |
Parse the transport properties.
Definition at line 693 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 25 of file FluidLibrary.cpp.
|
inlineprotected |
Validate the fluid file that was just constructed.
Definition at line 1164 of file FluidLibrary.h.