CoolProp
Public Member Functions | Protected Member Functions | List of all members
CoolProp::JSONIncompressibleLibrary Class Reference

Detailed Description

Class to access Lithium-Bromide solutions ** Employs some basic wrapper-like functionality.

Finished with the code from the paper. Now we need to convert the molar values to mass-based units. A container for the fluid parameters for the incompressible fluids 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.

#include <IncompressibleLibrary.h>

Public Member Functions

 JSONIncompressibleLibrary ()
 Class to access Lithium-Bromide solutions ** Employs some basic wrapper-like functionality. More...
 
 ~JSONIncompressibleLibrary ()
 Default destructor.
 
bool is_empty (void)
 
void add_many (rapidjson::Value &listing)
 Add all the fluid entries in the rapidjson::Value instance passed in.
 
void add_one (rapidjson::Value &fluid_json)
 
void add_obj (const IncompressibleFluid &fluid_obj)
 
IncompressibleFluidget (const std::string &name)
 Get an IncompressibleFluid instance stored in this library. More...
 
IncompressibleFluidget (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.
 
std::string get_incompressible_list_solution (void)
 Return a comma-separated list of solution names.
 

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.
 
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.
 
composition_types parse_ifrac (rapidjson::Value &obj, const std::string &id)
 Get an integer from the JSON storage to identify the composition.
 

Constructor & Destructor Documentation

§ JSONIncompressibleLibrary()

CoolProp::JSONIncompressibleLibrary::JSONIncompressibleLibrary ( )

Class to access Lithium-Bromide solutions ** Employs some basic wrapper-like functionality.

  • Critical point of H2O */ *Triple point of H2O */ * Equation (1) */ * Equation (2) */ * Equation (3) */ * Equation (4) */ * Equation (5) */ * Equation (28) */ * Equation (29) */ * Equation (30) */ * Equation (31) */ * Equation (32) */ Finished with the code from the paper. Now we need to convert the molar values to mass-based units. * Equation (7) */ * Equation (7,8) */ Default constructor

Member Function Documentation

§ add_obj()

void CoolProp::JSONIncompressibleLibrary::add_obj ( const IncompressibleFluid fluid_obj)

A function to check coefficients and equation types.

§ add_one()

void CoolProp::JSONIncompressibleLibrary::add_one ( rapidjson::Value &  fluid_json)

Setters for the coefficients

A function to check coefficients and equation types.

§ get() [1/2]

IncompressibleFluid & CoolProp::JSONIncompressibleLibrary::get ( const std::string &  name)

Get an IncompressibleFluid instance stored in this library.

Parameters
nameName of the fluid

§ get() [2/2]

IncompressibleFluid & CoolProp::JSONIncompressibleLibrary::get ( std::size_t  key)

Get a CoolPropFluid instance stored in this library.

Get a IncompressibleFluid instance stored in this library.

Parameters
keyThe index of the fluid in the map

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