Help for PC MATLAB and Simulink
MATLAB and Simulink are Trademarks of
Thermo Utilities, for PC MATLAB comes with 70 PC MATLAB functions. In order
to reach these functions, perform the following:
Start PC MATLAB!
Change the working directory to where you installed Thermo Utilities:
Type "tuhelp" to see the list of help
Type "steam" to see the list of functions
for steam/water properties
Type "air" to see the list of functions
for dry/humid air and flue gas properties
Type "lk" to see the list of functions
for Lee-Kesler method
A number of demo functions are also available.
demo0 works in MATLAB Command Window:
demo1: saturation temperature of steam at different pressures
demo2: gas constant and molecular mass of humid air
demo3: saturation temperature of different fluids
demo4: fluid properties database for use with Lee-Kesler method
This is a brief description on how to generate a Simulink library of blocks
for Thermo Utilities:
Start a Simulink session!
Copy a subsytem block from Connections' folder to main folder
Select Create Mask under Edit menu!
Write the following command within Drawing commands edit box:
fprintf('Thermo Utilities v3.0')
Close Create Mask dialog box!
Change the caption of the library from "subsytem" to "User Defined
Now Simulink's main folder is as below.
The next step is creating blocks for different functions. Here is the description
for generating a block for stmpt.m. This function calculates
the properties of superheated steam or under-cooled water. Inputs are p,
pressure and t, temperature. Outputs are h, specific enthalpy, s, specific
entropy and Error.
Double click on the library "Thermo Utilities v3.0" to open it!
Copy a "subsytem" block from Connections' folder to this folder!
Change the caption of the block from "subsytem" to "SteamPT"!
Double click the block "SteamPT" to open it!
Copy 2 In, 4 Out, 1 Mux and 1 Demux to the SteamPT's
Copy 1 MATLAB Fcn from nonlinear folder to the SteamPT's folder!
Change the number of inputs of the Mux to 2!
Change the number of outputs of the Demux to 4!
Connect the blocks as in the figure below!
Change the caption of inputs and output!
Double click the block MATLAB Fcn!
Edit the box under MATLAB function to:
Change the number of outputs to 4! Press apply and close it!
Close the block "SteamPT"!
SteamPT is now a block inside the library "User Defined
This is an example which uses the block "SteamPT" to generate an h-s
Copyright © 2000 Taftan
Data. All Rights Reserved