Menu

Using CoolingPower

Matt Osborne

CoolingPower functionality is currently limited. It's functionality only includes steam table printing thus far. The table is formatted into easy-to-read columns and, in Tables 3 & 4, grouped by pressure. Additional unit systems has been implemented, but there is a known ~3% discrepancy between CoolingPower's computed values and the ASME accepted values in the FPS(F) & FPS(R) unit systems. Command line interface is currently the default, but GUI is available using the -g/--graphical option.

The graphical form was developed using Qt Creator. This utilizes qmake for compilation. Directions for its direct use (without Qt Creator) is coming soon. Directions for compiling the pre-GUI version is left below. Command line arguments are still valid.

[Obsolete:]
In order to compile, you need a C++11 compliant compiler. To link, the GNU Scientific Library (GSL), which depends on the Basic Linear Algebra Subprograms in C (CBLAS), and the Boost C++ Libraries Program Options library development libraries must be installed on your system. Using the methods available to your compiler and linker, include the GSL, CBLAS, and Boost libraries in the linking options. For directions, visit GSL Compiling and Linking and Link Your Program to a Boost Library. Binary packages for Windows is available now. Binaries for Linux are soon to come.

CoolingPower accepts the following arguments:
* --columns/-c - Specifies the number of columns to print (Table 3 only) Minimum of 3. [Default: 11]
* --help/-h - Prints basic execution help
* --msys/-m - Specifies the measurement system to use. (Options below) All properties are intensive. [Default: base]
* --output/-o filename - If specified, the steam table will be written to the file filename, ignoring previous contents of the file. If omitted, the steam table will be printed to the standard output. [Default: terminal]
* --precision - Number of significant digits of precision. More than 9 is not recommended. (The original equations are only verified to 9 digits) {Default: 5}
* --prange/-p low high interval - Specify the Primary Interval (Temperature for Table 1, Pressure for others). The table will be printed from the lower value to the higher value inclusively at intervals specified by interval. In Tables 3 & 4, the high value may not be printed explicitly, but it will print a value higher than high in keeping with interval. This parameter is required.
* --srange/-s [low high] interval - In Table 3, the temperature of superheated steam with be printed starting at the next whole degree at interval interval above the saturation temperature. (Default is 10 degrees). in Table 4, this specifies the temperature range from low to high at interval. This parameter is required for Table 4.
* --table/-t number - Specifies the steam table to be printed, generally following the ASME SteamTable types. 1 = Saturation Temperature, 2 = Saturation Pressure, 3 = Superheated Steam, 4 = Grid of temperature and pressure. This parameter is required
* --version/-v - Outputs the version of CoolingPower

Options for the unit system:

base - The base unit system used by the IAPWS-95 formulation for the thermodynamic properties
- Temperature - Kelvin (K)
- Pressure - Megapascals (MPa)
- Energy - kilojoules (kJ)
- Distance - meters (m)
SI - The International System of Units (loosely MKS)
- Temperature - Celsius (C)
- Pressure - Pascals (Pa)
- Energy - Joules (J)
- Distance - meters (m)
CGSC - Centimeter - gram - second (Celsius)
- Temperature - Celsius (C)
- Pressure - barye (Ba)
- Energy - erg
- Distance - centimeter (cm)
CGSK - Centimeter - gram - second (Kelvin)
- Temperature - Kelvin (K)
- Pressure - barye (Ba)
- Energy - erg
- Distance - centimeter (cm)
MTSC - Meter - tonne - second (Celsius)
- Temperature - Celsius (C)
- Pressure - pièze (pz)
- Energy - sthene-metre (sn-m)
- Distance - meter (m)
MTSK - Meter - tonne - second (Kelvin)
- Temperature - Kelvin (K)
- Pressure - pièze (pz)
- Energy - sthene-metre (sn-m)
- Distance - meter (m)
FPSF - Foot - pound-force - second (Fahrenheit) (American Engineering System)
- Temperature - Fahrenheit (F)
- Pressure - pounds-force per square inch (psi)
- Energy - British Thermal Unit (BTU)
- Distance - foot (ft)
FPSR - Foot - pound-force - second (Rankine) (American Engineering System)
- Temperature - Rankine (R)
- Pressure - pounds-force per square inch (psi)
- Energy - British Thermal Unit (BTU)
- Distance - foot (ft)

Example program input and output coming soon.


MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.