DLL Information For E Steam Software
DLL Information For E Steam Software
extern "C" {
#include "translate.h"
}
Then, add the library file Esteam97.lib to your project and put Esteam97.dll in the working directory.
extern "C" {
#include "steamd.h"
}
Then, add the library file esteam32.lib to your project and put Esteam32.dll in the working directory.
The functions are described in the manual. The only difference is that there are different function calls in the
actual DLL. In the manual, the functions are described as having 2 parameters at the end to describe the units
and the version of the steam tables that you want to use. These parameters are not used in the DLLs. This is
because the functions provided in the DLL always take inputs in US units. If your program uses SI units you
will need to convert the values to US units before calling the functions, and convert the answer to SI units before
using it. On the next page I have included a list of the conversions that we use in Esteam. The functions are
also actually in separate DLLs with different functions names. To call functions in the 97 steam tables use the
names shown with 97 at the end.
For example to calculate the temperature using the 97 tables from pressure and enthalpy, which in the add-ins is
TfromPH, call TfromPH97. The only functions that are different are the functions calculating from pressure and
temperature. In the DLLs for these functions you will need to add an additional parameter for quality. So
instead of calling HfromPT you would call HfromPTQ (with the third parameter equal to 100, 100% quality) for
the 67 tables and Hfrom PTQ97 for the 97 tables. The same exists for SfromPT, VfromPT, etc.
Available Functions
Abbreviations
AE = Available Energy
C = Specific Heat at constant pressure
EFF= Expansion Efficiency
H = Enthalpy
HIS = Isentropic Enthalpy
K = Thermal Conductivity
M = Dynamic Viscosity
P = Pressure
Q = Steam Quality
S = Entropy
T = Temperature
UE = Used Energy
V = Specific Volume