Files
CoolProp/wrappers/EES/CoolProp.htm
Jorrit Wronski 9da6994b05 Updated EES docs
2015-09-11 13:51:16 +02:00

208 lines
5.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<?xml version="1.0" encoding="iso-8859-1"?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>CoolProp for EES</title>
<meta name="generator" content="Amaya, see http://www.w3.org/Amaya/">
</head>
<body>
<h1>General Information</h1>
<p>The CoolProp library is a standard interface between EES and the CoolProp
library. CoolProp is a fluid property database written by <a
href="mailto:ian.h.bell@gmail.com">Ian Bell</a> and co-authors and is open-source and free. In
addition, REFPROP can be called through CoolProp if is installed on the
computer</p>
<p> More information on CoolProp can be obtained at <a href="http://www.coolprop.org">www.coolprop.org</a>. Furthermore, information on the EES wrapper can be found at <a href="http://www.coolprop.org/coolprop/wrappers/EES"> EES</a>.</p>
<p></p>
<h4>CoolProp v5+ Support</h4>
The wrapper for EES is now essentially 100% in line with the other wrappers for Python, Excel, etc. Users should use the PropsSI function. This function always takes in and returns base SI units (Pa, J, kg, mol, etc.).
The documentation for the PropsSI function is exactly in line with that for the High Level API. No other functions from the high-level API are exposed through the EES interface.
<h4>CoolProp v4 backwards compatibility </h4>
For backwards compatibility, the coolprop() function has been retained in EES. The coolprop() function has been officially deprecated and will be removed in a future release. The PropsSI function is the only function that will be supported in the future.
<p>The general call looks like:</p>
<p><em>out = PropsSI(output$,inputvar1$,input1,inputvar2$,input2,fluid$)</em></p>
<p>A modified SI system of units is used in CoolProp. The units employed are
shown below.</p>
<p></p>
<h3>Example</h3>
<p>The following example retrieves the enthalpy of &ldquo;Methane&rdquo;. The
thermodynamic state is given by two variables : p and T, that are set to 1 bar
(100 kPa) and 15 °C (288.15 K) respectively:</p>
<p><em>h =
PropsSI('H',&rsquo;P',100,&rsquo;T&rsquo;,288.15,&rsquo;Methane&rsquo;)</em></p>
<p></p>
<p>A complete list of fluids that can be used in CoolProp for EES can be found at <a
href="http://coolprop.sourceforge.net/fluid_properties/">Fluid
Properties</a></p>
<p></p>
<p>The EES function PropsSI() uses the same fluids and inputs as the function
<a
href="http://coolprop.sourceforge.net/coolprop/HighLevelAPI.html">PropsSI</a>
from the high level interface. The documentation there is generally more up-to-date.
</p>
<p></p>
<p>Also refer to the example file at
c:\EES32\Userlib\CoolProp_EES\CoolProp_EES_Sample.ees</p>
<p></p>
<h3>Fluid Properties</h3>
<table border="1">
<caption></caption>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td>Thermophysical property</td>
<td>Symbol</td>
<td>Units</td>
<td>Input/Output</td>
</tr>
<tr>
<td>Pressure (absolute)</td>
<td>P</td>
<td>kPa</td>
<td>Both</td>
</tr>
<tr>
<td>Temperature</td>
<td>T</td>
<td>K</td>
<td>Both</td>
</tr>
<tr>
<td>Density</td>
<td>D</td>
<td>kg/m<sup>3</sup></td>
<td>Both</td>
</tr>
<tr>
<td>Specific Enthalpy</td>
<td>H</td>
<td>kJ/kg</td>
<td>Both</td>
</tr>
<tr>
<td>Specific Entropy</td>
<td>S</td>
<td>kJ/kg/K</td>
<td>Both</td>
</tr>
<tr>
<td>Quality</td>
<td>Q</td>
<td>kg/kg</td>
<td>Both</td>
</tr>
<tr>
<td>Specific Internal Energy</td>
<td>U</td>
<td>kJ/kg</td>
<td>Output only</td>
</tr>
<tr>
<td>Specific Gibbs Function</td>
<td>G</td>
<td>kJ/kg</td>
<td>Output only</td>
</tr>
<tr>
<td>Specific Heat at Constant Volume</td>
<td>O</td>
<td>kJ/kg/K</td>
<td>Output only</td>
</tr>
<tr>
<td>Specific Heat at Constant Pressure</td>
<td>C</td>
<td>kJ/kg/K</td>
<td>Output only</td>
</tr>
<tr>
<td>Speed of Sound</td>
<td>A</td>
<td>m/s</td>
<td>Output only</td>
</tr>
<tr>
<td>Surface Tension</td>
<td>I</td>
<td>N/m</td>
<td>Output only</td>
</tr>
<tr>
<td>Viscosity</td>
<td>V</td>
<td>Pa·s</td>
<td>Output only</td>
</tr>
<tr>
<td>Thermal Conductivity</td>
<td>L</td>
<td>kW/m/K</td>
<td>Output only</td>
</tr>
<tr>
<td>Critical Temperature</td>
<td>Tcrit</td>
<td>K</td>
<td>Output only</td>
</tr>
<tr>
<td>Critical Pressure</td>
<td>pcrit</td>
<td>kPa</td>
<td>Output only</td>
</tr>
<tr>
<td>Minimum Temperature</td>
<td>Tmin</td>
<td>K</td>
<td>Output only</td>
</tr>
</tbody>
</table>
<p></p>
<p>The following combinations of inputs are valid (in either order):</p>
<ul>
<li>T,P</li>
<li>T,Q</li>
<li>T,D</li>
<li>P,H</li>
<li>P,S</li>
<li>P,Q</li>
</ul>
<h3></h3>
</body>
</html>