EES is an acausal solver that can be used to solve a wide range of technical problems. It can be obtained from http://www.fchart.com/ees/. Though EES has its own set of thermodynamic properties, CoolProp also implements a number of things that are not in EES (incompressibles, interpolation methods, etc.).
As of October 2016, the EES wrapper can be installed from the Windows package as described on the page on installation packages. Please refer to the documentation there for issues related to the installation process.
Open EES, you should see the external function COOLPROP_EES. The function
PropsSI takes the same inputs as described in the High-Level API. You can use something like:
xx = string$(0.5) yy = string$(0.5) fluid$='HEOS::Methane['||yy||']&Ethane['||xx||']'
which is a 50/50 molar blend of methane and ethane.
PropsSIZ takes the normal inputs, but then also takes the mole fractions as an array rather than encoding them in the string. The example file for EES demonstrates all of these types of inputs
- Install CoolProp EES wrapper
'$DEBUG'to the fluid name
- Open the log.txt and log_stdout.txt files in c:\ees32\userlib\COOLPROP_EES to see the error.
Compilation of the EES wrapper requires a few common wrapper pre-requisites
Additionally, you must download InnoSetup and add it to the system path.
Once the dependencies are installed, you can run the installer with:
# Check out the sources for CoolProp git clone https://github.com/CoolProp/CoolProp --recursive # Make a build folder mkdir CoolProp/build && cd CoolProp/build # Build the makefile using CMake cmake .. -DCOOLPROP_EES_MODULE=ON # Make the DLF file cmake --build . --target COOLPROP_EES
To make and use a debug DLL, do (from root of repo):
mkdir build && cd build cmake .. -G "Visual Studio 10 2010" -DCOOLPROP_EES_MODULE=ON
This will make a Visual Studio Project called CoolProp.sln defaulting to 32-bit build. Open the visual studio project, for the COOLPROP_EES project:
- Change the output directory to C:\EES32\Userlib\COOLPROP_EES (this is where the DLF will go)
- Under debugging, set the command to c:\EES32\ees. You can also set the arguments to the file that you want EES to open
- Set a breakpoint somewhere that it will get hit (in the COOLPROP_EES function for instance)
- Right-click on the COOLPROP_EES project, select “Set as StartUp Project”
- Run the project, it will build and start EES, open your code or call some inputs for EES
- Debugger should stop at your breakpoint