| Welcome | Navigation | Approach | TEST-Code |
| (Daemons are sub-divided into these 12 sections. States, the current topic, is the best place to start.) |
| Closed Process | Closed Steady | Open Steady | |
| Open Process | Closed Cycle | Open Cycles | States-II |
| HVAC | Combustion | Equilibrium | Gas Dynamics |
| (Each section above is divided into two sub-sections - Manual and Applications.) | |
| Applications | |
|
|
(This page is still under development)
Daemons>States and Properties> Manual |
|
| Fig.1 Volume and Surface states are extension of the core thermodynamic state. |
|
| Fig. 2 Image of the Daemons.States.Volume.Phase-Change page. |
|
The steam table.
The tab buttons. Global controls. |
g. The State Daemons:
The State Daemons
are at the core of all TEST daemons, and learning how to use
just one of those effectively is the key to understanding all others. You
will find two flavors of state daemons: the
volume state and the
surface state daemons, which characterize
the states in a uniform control volume and a uniform flow cross-section
respectively. Let us discuss a volume state daemon shown in Fig. 1
in some details. As you read on, try to experiment with a live daemon on
the primary window. Most State Daemons look alike, so always double check the name of the working substance from the hierarchical page name and the Title Panel , the first panel of a daemon. The next panel, called the Tab Panel contains a row of buttons that work as tabs with the current tab highlighted in a yellow background. Click the I/O tab and see how the state panel get replaced with on-line instructions. Click the States tab to get back to the state panel. The next panel, called the Global-Control Panel, contains a few global control buttons, which will be discussed later. The radio buttons Mixed and SI , and English allow used of any combination of units, the System International (often, mistakenly, referred to as the Metric system) or the English system. Units can be changed at any time during a problem solving session. |
|
Local controls. Widgets are windows gadgets. |
h. The State Panel:
Tucked in between the Global-Control
Panel and the
Message Panel at the very bottom, is
the State Panel
. The first row of controls, consisting of two buttons, two
choices and a textfield is the
Local-Control Panel. Slowly move the
pointer over any widget and a description appears in the
Message Panel (the textfield at the
bottom with a light blue background). While working with a daemon
, keep an eye on this panel for warnings, error messages and solution tips.
The lower part of the state panel gives a definition of the extended state used in TEST. The main body consists of a group of widgets representing state variables such as pressure, temperature etc. Notice that the symbols, p, T, x etc., are followed by a numeric suffix, the state number. If you choose a different state, say, State-2, from the State Choice (next to the Calculate button) of the Local-Control Panel , the suffix after the symbols changes to 2 globally. |
|
State variables Variable-widgets. |
At first it appears that there
are way too many state variables in the
State Panel, making it cumbersome to
locate a variable of interest. But as you gain experience with TEST
, you will realize that the variables are listed in the same order in
all the daemons, and variables that seem superfluous may play an important
role in a different problem. For instance, the quality
x, the third variable on the first
row, is an important variable for a two-phase mixture. What about the unconventional
variable y
? Move the pointer slowly over the y-widget
and its definition and unit, Vapor
Volume Fraction (y=Vol_vap/Vol): %, appears
on the Message Panel.
Suppose we would like to evaluate the enthalpy, h , of steam at a pressure of 100 kPa and a quality of 0.5. Note that every variable-widget has four components: a checkbox, the variable symbol with the state suffix, a value field and a unit choice. On the primary window choose a state, say, State-1 from the State Choice. Click the p1-box to turn on the p-widget . The background color of the variable-widget becomes lighter (your monitor must be set to display 32-bit color), the variable symbol changes font (p1 to p1), the unit changes color (kPa to kPa ) and the background of the value field becomes yellow with the cursor appropriately positioned for you to type in a value. If you turn-off (by un-checking the box) the p-widget , it goes back to its original format. Now turn on the p-widget and x-widget (do not bother to enter the values at this point). Now try turning on the T-widget . The daemon does not allow you to do so (with appropriate message on the Message Panel ) because one cannot independently specify pressure, quality and temperature of a two-phase mixture. Now enter pressure by clicking on the value (yellow) field to position the insertion cursor and then typing in the value 100 for p1 (you do not need to hit 'Enter'). To enter quality as a fraction, type in .5 and change the unit from % to fraction by choosing the desired unit from the Unit Choice. |
|
| Fig. 3 Clicking the
checkbox of a variable can turns it on (ready for input) or off (make
it an unknwn). |
|
Calculate a state
Switch units.
Use any |
To evaluate the state, simply
click the Calculate
button. The phase composition of the mixture (liquid, superheated vapor
or two-phase mixture) is displayed on the textfield of the
local-control panel, and all the variables
including enthalpy, that could be calculated from the given input, are
displayed. A curious student of thermodynamics may notice the value of
y
and, realizing that the liquid phase occupies only 0.06% of the
volume while contributing 50% of the steam mass, wonder how foggy the steam
looks.
The desired variable, enthalpy h, is shown to have a value of 1546.36 kJ/kg. To express it in another unit, say, cal/g, simply choose the desired unit from the unit choice and the unit conversion is done on-the-fly producing a value of 396.325 cal/g for h. If you click on the English radio-button, the entire state is converted to english system. Now go back to SI units by clicking the SI button. Now, suppose instead of known p and x, p and h are supplied for the same state and we are to determine x. Simply turn-off x and click on the h-checkbox. The value of h remains unaltered (you do not have to type it in again). Calculate the state to find x to be 50%, the expected result. Now suppose h and s are supplied instead. As you Calculate the state following the same procedure x is evaluated as 50% and the pressure as 100.025 kPa. The 0.025% error in p is an acceptable price to pay considering how laborious it is to manually evaluate p from a given pair of h and s (you do not even know whether to start at the superheated table or the saturation table). |
|
Phase
determination.
Algebraic
Thermodynamic |
The state daemon determines
the phase composition as part of the solution. But what if you know the
phase composition? How, for instance, do you evaluate the state if steam
becomes saturated vapor at the same pressure as in the previous example?
For that choose State-2
from the State Choice
. Saturated vapor implies that the quality x is 100%. Enter
x2 . Instead of entering the value of
p2 as 100 kPa, use the algebraic relation
=p1 in the value field. A
Calculate finishes up the job.
You can use any valid algebraic expression using the following syntax. Start all expressions with the = sign. To use a state variable in an expression, the symbols used in the daemons must be respected (pressure at state 5, for instance, must be expressed as p5, not pressure5 or P5). Examples of valid expressions are: = p3 , = h+p*v , = h + p *v , =200 , =p3*Vol3^1.4/ p2 , =(h2-h1)/(h3-h1) . Suppose we are interested in a third state, isentropic to state-2 at a pressure 10 times that of state-1. Choose State-3 from the state selector, enter p3 as =10*p1 and s3 as =s2 , and Calculate . Calculated states are automatically saved in
a stack and can be recovered by simply choosing the state number from the
State Choice
. The calculated states can also be shown on a variety of thermodynamic
plots such as T-s
, h-s
, p-v
etc. Simply choose the desired plot from the
Diagram Choice situated next to the
State Choice
in the local control panel
(see Fig. 2 below). |
|
| Fig. 4 Image
of the Daemons.States.H2O page. The calculated
states are plotted on a T-s diagram in a floating window. |
|
Multiple solutions.
State properties are |
Sometime there are multiple
solutions for a given pair of state variables, s=4.45 kJ/kg.K and
x=50% for instance. Choose
State-4 from the
State Choice . Enter s4 and
x4 and Calculate
. Notice that the a warning appear on the
Message Panel about the existence
of multiple solutions in the message panel. A two-phase mixture at several
pressures may have the same entropy.
There is a reason why different colors are used to display the Variable Symbols in the State Panel . The first group of variables, p through s, are the Thermodynamic Properties (in blue), which do not depend on the velocity or position of the observer. Variables Vel through j , are evaluated relative to the frame of reference and are called the Extrinsic Properties (in green) , useful for engineering problem solving. The third group of variables, displayed in black, depends on the system configuration (such as volume or area of cross section etc.) and are called the System Properties (in black). Variables Vel and z have a default value of zero in most daemons, which can be changed by turning the variable widget off and then back on. Some state daemons, such as the ideal gas state daemon, contain state variables (such as molecular mass) that are intrinsic to the material and are called the Material Properties (in red) . |
| The Super-Calculate button. |
i. The Super-Calculate Button:
The
Super-Calculate button recalculates
all the States from the given information in two or three passes.
It produces a detailed printer friendly output on the Instructions/Output window. By copying the content of this window (see Fig. 4) to any word processor, one can print or record the details of the calculations. It also produces a table of properties (for the calculated staetes) that can be copied into any spreadsheet for further processing. And, finally, a few lines of TEST-Codes are produced that can be used to instantly reproduce the visual solution at a later session. For more information, read theo TEST-Codes section in this Tutorial. |
|
| Fig. 5 Image of the I/O window displaying the TEST-Codes generated by the solution. |
| What-If scenarios. |
j. Parametric Studies:
Suppose we would like to repeat the previous calculations, this time
for a different initial pressure, say, 300 kPa. Load
State-1 from the state selector, change
p1
to 300 kPa. Calculate
the new state. To propagate the change in
State-1Super-Calculate
button. Had we used absolute value of pressures in the calculations
of all the three states, we would have been forced to change each pressure
separately. To take maximum advantage of this button, algebraic relations
should be used wherever possible.
Because all the variables are visually exposed, any coceivable combination of variables can be changed in a parametric study. The working fluid can be changed in a similar manner. Just choose a different fluid from the fluid selector and Super-Calculate the entire solution. The Super-Iterate button is used in rare situations, whereby states are related in such convoluted manner that further iterations are necessary after the use of the Super-Calculate button. The Super-Initialize button initializes all the calculated states so that one can start all over. The Load button is for loading TEST-Codes for regenerating an existing solution. It is quite useful for sharing solutions in a peer group. Also if the working fluid model is to be changed (for instance, treating R-134a as a real gas vs. a phase-change fluie), the TEST-Code can transport the solution without having to enter all the input variables all over again. |
| Applications | |
| Copyright 1998-2003: Subrata Bhattacharjee |