CoolProp  6.6.0
An open-source fluid property and humid air property database
Public Member Functions | Protected Member Functions | List of all members
CoolProp::JSONIncompressibleLibrary Class Reference

Detailed Description

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)
 
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. 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...
 

Constructor & Destructor Documentation

◆ JSONIncompressibleLibrary()

CoolProp::JSONIncompressibleLibrary::JSONIncompressibleLibrary ( )

*Triple point of H2O *‍/

Class to access Lithium-Bromide solutions ** Employs some basic wrapper-like functionality* Critical 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
  • Equation (7) *‍/
  • Equation (7,8) *‍/ Default constructor

Definition at line 327 of file IncompressibleLibrary.cpp.

◆ ~JSONIncompressibleLibrary()

CoolProp::JSONIncompressibleLibrary::~JSONIncompressibleLibrary ( )

Default destructor.

Definition at line 337 of file IncompressibleLibrary.cpp.

Member Function Documentation

◆ add_many()

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.

◆ add_obj()

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.

◆ add_one()

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.

◆ get() [1/2]

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

Get an IncompressibleFluid instance stored in this library.

Parameters
nameName of the fluid

Definition at line 514 of file IncompressibleLibrary.cpp.

◆ 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

Definition at line 529 of file IncompressibleLibrary.cpp.

◆ get_incompressible_list_pure()

std::string CoolProp::JSONIncompressibleLibrary::get_incompressible_list_pure ( void  )
inline

Return a comma-separated list of incompressible pure fluid names.

Definition at line 183 of file IncompressibleLibrary.h.

◆ get_incompressible_list_solution()

std::string CoolProp::JSONIncompressibleLibrary::get_incompressible_list_solution ( void  )
inline

Return a comma-separated list of solution names.

Definition at line 187 of file IncompressibleLibrary.h.

◆ is_empty()

bool CoolProp::JSONIncompressibleLibrary::is_empty ( void  )
inline

Definition at line 161 of file IncompressibleLibrary.h.

◆ parse_coefficients()

IncompressibleData CoolProp::JSONIncompressibleLibrary::parse_coefficients ( rapidjson::Value &  obj,
const std::string &  id,
bool  vital 
)
protected

A general function to parse the json files that hold the coefficient matrices.

Definition at line 345 of file IncompressibleLibrary.cpp.

◆ parse_ifrac()

composition_types CoolProp::JSONIncompressibleLibrary::parse_ifrac ( rapidjson::Value &  obj,
const std::string &  id 
)
protected

Get an integer from the JSON storage to identify the composition.

Definition at line 406 of file IncompressibleLibrary.cpp.

◆ parse_value()

double CoolProp::JSONIncompressibleLibrary::parse_value ( rapidjson::Value &  obj,
const std::string &  id,
bool  vital,
double  def = 0.0 
)
protected

Get a double from the JSON storage if it is defined, otherwise return def.

Definition at line 393 of file IncompressibleLibrary.cpp.


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