- Daemons are
Java applets embedded
throughout TEST
Daemons are the thermodynamic calculators (java applets) that are at the core of TEST. These calculators can be used to solve even the most complicated thermodynamic problem in a visual spreadsheet. The flow of calculations closely follows how we would solve a problem manually. Moreover, calculated states can be visualized on various thermodynamic diagrams, a solution report can be generated, and the solution can be shared with other users through generated TEST-codes. Additionally, since all variables are visually exposed, any combination of input parameters can be changed and any conceivable what-if scenario can be explored by clicking a single (Super-Calculate) button.
The device panel of the psychrometric daemon in use for analyzing a cooling tower. Selecting the right daemon for a problem is an important thermodynamic skill.
- Daemon as
a learning tool
The daemons can be used to gain insight into thermodynamics behind a problem. Some of its use include the following:
Property evaluation for a given substance:
From the TEST-Map (see The Map section below) select the System State Daemons page. Pick an approriate material model to launch the daemon.
Enter known properties (click the checkbox to go into input mode) and click the Calculate button to find
the complete state.
Improve interpolation skill:
Find a property manually using the Tables link from the TEST task bar. Many a times a manual evaluation of a property requires
interpolation, an important engineering skill. Experiened engineers generally avoid messy linear interpolation by simply
making educated guess for an interpolated value. This important skill can be honed by using the state daemon to
verify your guesstimates.
Property classification and dependency:
Properties are color coded in each daemon - red for material properties (depends on the working substance), blue for thermodynamic properties (that determines equilibrium), green for extrinsic properties (depends on velocity and/or elevation), and black for extensive properties (depends on the extent of the system). If you try to enter too many properties, the daemon will catch your mistake and produce appropriate error message. A very important part of understanding equilibrium is to figure out how many indpendent properties are required. The daemons can be helpful in reinforcing that insight.
Thermodynamic plots: Each daemon offers a large selection of thermodynamic plots (T-s, p-h, T-v, etc). You can locate the calculated states on the thermodynamic diagram and draw constant-property lines for further insight.
Comparing material models: Superheated steam can be analyzed with various models: pc model which uses superheated tables, IG model that treates steam as an ideal gas with variable specific heats, PG model that treates it as a perfect gas with constant specific heat, or the RG model that uses the compressibility chart. TEST-codes generated by one model can be used in another to quickly reproduce an analysis to see how the results compare numerically. Such exercise can highlight the strength and weaknesses of different models.
Verify manual solution: Selecting the right daemon for a problem walks one through the series of assumptions necessary to simplify the governing equations. Once the daemon is launched approximations such as whether the kinetic energy can be neglected must be made. A systematic solution procedure much like a manual solution is required to solve a problem using the daemon. That is what makes a daemon a great validation tool while learning how to solve a problem manually.
Comparing material models: Superheated steam can be analyzed with various models: PC model which uses superheated tables, IG model that treates steam as an ideal gas with variable specific heats, PG model that treates it as a perfect gas with constant specific heat, or the RG model that uses the compressibility chart. TEST-codes generated by one model can be used in another to quickly reproduce an analysis to see how the results compare numerically. Such exercise can highlight the strength and weaknesses of different models.
What-if studies: One of the rewards of a TEST solution is its ability to create various what-if scenarios from a base case. Once a solution is obtained, it is stored as Case-0 by default. Suppose you want to change the working fluid or an input property and update the solution. Simply select a new case, say Case-1. The original case is automatically copied as the new case. Now you can change the working fluid or any other input property (or properties) and update the solution by clicking Super-Calculate button. It is that simple. You can calculate as many cases as you want and retrieve an old case by simply selecting it from the menu.
Breadth: A quick look at the TEST-Map would tell you the diverse range of daemons offered by TEST. Topics covered by the daemons include state evaluation, analysis of generic steady and unsteady systems, exergy analysis, IC engines, gas turgines and vapor power plant, refrigeration, mixture analysis, psychrometrics, combustion, chemical equilibrium, and gas dynamics.
Depth: Most daemons are programmed to go much beyond what is required to obtain a solution. The psychrometric daemon for example can handle any total pressure (not just standard atmospheric pressure) or many different moist gases (not just moist air). The chemical equilibrium daemon uses database from NASA as well as NIST and can perform sophisticated equilibrium calculations. The RG daemons allow switching between Lee-Kesler and Nelson-Obert charts. The gas dynamics daemon allows analysis of oblique shock waves as well as Prandtl-Meyer expansion waves. The combustion daemon allows analysis of combustion of premixed as well as non-premixed mixtures of fuel and oxidizer.
Calculating a
State
is as simple
as 1-2-3-4
Computed states can be visualized by simply selecting a plot type. Constant property lines can be drawn by clicking a button.
You will find hands-on instructions on different types of daemons in the Daemons Example section below. Also there are video clips of daemons in action in the video tour section of the tutorial. But before going through examples, it may be a good idea see how the right daemon is selected for a given problem. This is discussed in the Map and Selecting a Daemon sections below. Once the correct branch of daemons is selected to solve a given problem (for example, a flow state daemon for finding properties of a flow), the last step is to select a material model (for example, the IG model for a gas or the PC model for a steam). This is discussed in Selecting a Material Model section. The theoretical background and different material models are comprehensively discussed in Chapter 3 of the textbook.
- The Map is the fastest way to select a daemon
The map provides a visual flow chart to help choose the correct daemon. The organization of the map is not arbitrary, but based on the standard approach of simplifying thermodynamic systems.
Only after you master the systematic approach discussed in the Selecting a Daemon section, this map can be a great time saver.
The daemons in TEST are organized into three branches:
1. Basic Tools: The Basic daemons branch offers rudimentary tools such as unit converter, scientific calculator, and traditional charts and tables.
2. States & Properties: The state daemons are for finding properties of thermodynamic working substances (e.g. H20 from steam to moist air). They are divided into two groups (1) system-state daemons for finding states of a substance occupying a fixed volume, and (2) flow-state daemons for finding states at different cross-sections of a flow.
3. System Analysis: Selecting a system daemon is not trivial. It depends on how the system can be simplified with assumption appropriate for a given problem. The system daemons are divided into various categories and their classification is discussed in more detail in the Selecting a Daemon section below.
For solving a problem involving cooling tower, which is an open system operating at steady state, a string of appropriate assumptions will lead you to the right daemon.
- Selecting the right system daemon is all about asking the right question
In this thermodynamically sound approach, you start at the TEST.Daemons page (linked from the task bar) and allow the simplification tables to guide you toward the appropriate daemon. Finding the correct daemon involves classifying your system which can easily be done by asking yourself the right questions. The following questions, which are also displayed on the simplification tables, are designed to help you classify your system. Once you understand how TEST classifies systems, you can use the TEST-Map as a shortcut.
Question #1:
Is there any mass flow across the boundary of the system?
Yes: Open system; No: Closed system
Open vs. Closed System Daemons: A system that allows mass transfer across its boundary (tubes and pipes carrying flow in and/or out of the system) is called an open system. A closed system, on the other hand does not allow any mass transfer. The transport terms of the governing equations, therefore, drops out for a closed system. Visit the Daemons.Systems.Closed and Daemons.Systems.Open page, and compare the governing equations.
Question #2:
Does the global state of the system fluctuate or evolve with time?
Yes : Unsteady system; No: Steady system
Steady vs. Unsteady Daemons: A system, open or closed, is steady when its global state - a snapshot taken with an imaginary state-camera, which records all the state variables (pressure, temperature, velocity etc.) at each location of the system at a given instant - does not change with time. While the state of a fluid lump flowing through a steam turbine continuously changes from the inlet to the exit, the picture of the turbine, with hot zones near the inlet and relatively cooler zones near the exit, exhibits no change over time as long as the system operates at steady state. The global extensive properties such as the total mass, energy, or entropy of the system, obtained by summing up the corresponding local properties over the entire system, therefore, do not change with time. Thus, dm/dt, dE/dt, and dS/dt=0, and the governing differential balance equations simplify to algebraic equations. Compare the governing equations in the Daemons.Closed.Steady page with those in the Daemons.Closed.Unsteady page.
Steady systems can both be open or closed. Beside trivial systems (for instance, a piece of rock at a stationary state), closed steady systems can be found in closed-loop cycles, heat engines and refrigerators if the entire cycle is enclosed within the system boundary. TEST offers the Closed Steady Daemon, which is independent of the working substance of the cycle. It can be used for overall analysis (finding efficiency, Carnot efficiency, COP, etc.) for such cyclic devices. If details of the cycles are important, there are more advanced daemons such as the power cycle or the refrigeration daemons, which will be discussed in the specific branch, to be introduced below.
Open steady systems, on the other hand, are abundant in applied thermodynamics and further classification is necessary to locate the right open, steady daemon.
Question #3:
Is there a clear beginning-state (b-state) and a clear final-state (f-state) in this unsteady system?
Yes : Process ; No: Transient
In most thermodynamic problems involving unsteady systems, we are generally interested in what happens over a finite period of time rather than an instant. During the period of interest, the system - open or closed - goes from a beginning-state (b-state) to a final-state (f-state) executing what is thermodynamically called a process. The governing equations are integrated between the two limits (b-state to f-state), producing process equations that are algebraic in nature. If instantaneous changes in the system is of interest, the system is called transient.
There are no dedicated daemons for transient problems in TEST since such problems are generally uncommon. Also, the transient term can be indirectly calculated by evaluating all other terms using the state daemons.
Examples of open processes include charging and discharging. If you are in this branch, simply select an appropriate material model for the working fluid to launch an appropriate open process daemon.
Examples of closed processes in thermodynamics are plenty and, like open steady systems, require further classification.
Question #4:
Does the problem involve a specialized topic?
Yes: Specific ; No: Generic
Because most thermodynamic problems belong to either closed-process or open-steady categories, an artificial division is created between the general-purpose systems and specialized systems involving one of the topics listed below.
Specific topics on closed processes include: (i) air-standard cycles such as the Otto cycle, Diesel cycle, Ericson cycle etc., which execute a sequence of processes (strokes) on a closed mass of gas (Chapter 7); (ii) HVAC (Chapter 12); (ii) Combustion (Chapter 13).
Specific topics on open-steady systems include: (i) Gas power cycles such as Brayton cycle (Chapter 8); (ii) Vapor power cycles such as Rankine cycle (Chapter 9); (iii) vapor and gas refrigeration cycles (Chapter 10); (iv) Psychrometry and HVAC (Chapter 12); (v) Combustion (Chapter 13); (vi) Chemical Equilibrium (Chapter 14), and (v) Gas dynamics (Chapter 15).
Generic problems involving closed processes and open-steady systems are generally covered in the first half of most thermodynamics textbooks (chapters 1-6 in the textbook by Bhattacharjee) while specific system problems are covered in the rest of the textbooks. Let us first look at the generic systems
Question #5:
Can a single thermodynamic state describe the entire system at a given time?
Yes : Uniform ; No: Non-uniform
A system is called uniform if a single state can represent its global state at any given time. Note that a uniform system must be made up of a pure substance (same chemical composition at all locations).
- Closed-Process (uniform) daemons
For uniform, generic, closed systems undergoing a process, all that is left is to select a material model. The daemons that tackle such systems are called closed process daemons.
- Non-mixing, semi-mixing, and mixing, closed-process (non-uniform) daemons
Non-uniform systems have at least two identifiable uniform sub-systems. If the sub-systems are allowed to mix (for instance, a valve connecting two different gases in two tanks is opened), the system is called non-uniform mixing system. The final state is defined by a single f-state if mixing is allowed to go to completion. A variation of this daemon is the semi-mixing, non-uniform daemon which allows partial mixing, resulting in a composite final state represented by fA and fB states. If the subsystems do not mix at all (a hot block of copper dropped into a bucket of water), a non-uniform, non-mixing system results. Once you classify a problem down to this level, you are ready to select the material model and launch the corresponding mixing , semi-mixing, or non-mixing daemons.
Question #6:
Is there a single inlet (i-state) and a single exit (e-state) in the device?
Yes: Single-flow ; No: Multi-flow
If an open system has a single inlet and a single exit, it is called a single-flow device. Most open-steady problems fall into this category.
- Single-flow daemons, Non-mixing and mixing multi-flow daemons
In multi-flow systems, there must be multiple openings or ports at the system boundary resulting in more than one flow in and out of the system. If the flows remain separated as in a heat exchanger, such a system is called the multi-flow non-mixing device. On the other hand, if the flows are allowed to mix or separate, as in a mixing chamber or separation chamber, the system is called a multi-flow mixing device.
The last step in the selection of a daemon is the selection of a material model that best suites the working substance. TEST divides all working substances into four broad categories:
Solids and Liquids
Solids and liquids are lumped into a single group because they are both characterized by constant specific heats and density. The model is called the SL model.
Pure Gases
Gases are sub-divided into four categories: The PG-Model (perfect gas) is the simplest gas model with constant specific heats and builds upon the ideal gas equation of state. The IG-Model (ideal gas), based on the ideal gas equation of state, treats specific heats to be temperature dependent.
The IG model, therefore, is more accurate than the PG model, especially if there is significant temperature change in a problem (unless the gas is inert in which case the specific heats are truly constants).
The RG-Model (real gas) is a generalized model based on the compressibility charts (Lee Kessler simple fluid model or Nelson Ober compressibility chart). It is used mostly for gases under extreme pressure or very low temperature, at which the PC model (to be introduced shortly) lacks data. It should be kept in mind that the generality of the real gas model is achieved at the expense of accuracy.
The IGE-Model (ideal gas in chemical equilibrium) is a special model in which the chemical composition is assumed to vary as dictated by the equilibrium criterion.
Gas Mixtures
Gas Mixtures are sub-divided into binary mixtures of perfect (PG/PG), ideal (IG/IG), and real gases (RG/RG), or a general mixture of ideal gases (n-IG, n-PG). Moist Air , a mixture of dry air and water vapor, is also treated as a gas mixture. Dry air, a fixed mixture of oxygen and nitrogen, is usually treated as a pure gas rather than a gas mixture.
Phase-Change Fluids
The PC-Model (phase-change) is based on saturated and super-heated tables. It is the most accurate of all models.
The state daemons are the building blocks of all other daemons and must be mastered first. You will find hands-on examples as well as background information on each daemon in this tutorial. For more examples, visit the Examples and Problems modules. |
Chapter 1
Basic Daemons
|
Unit Converter, DeskCal, Traditional tables and charts are covered in this section. |
Chapter 8
Gas Turbine Daemons
|
Brayton cycle and jet engines. Work with open steady daemons first. |
Chapter-2
Closed Steady Daemons
|
Overall analysis of heat engines, refrigerators, or heat pumps treated as closed steady systems. |
Chapter-9
Vapor Power Daemons
|
Rankine cycle. Work with open steady daemons first. |
Chapter-3
State Daemons
|
Evaluation of properties using different material models. |
Chapter-10
Refrigeration Daemons
|
Vapor compression and gas refrigeration cycles. Work with open steady daemons first. |
Chapter-4
Open Steady Daemons
|
Generic open steady systems such as pumps, turbines, etc. Work with flow state daemons first. |
Chapter-12
Psychrometric (HVAC) Daemons
|
Psychrometry and air conditioning. Work with open steady daemons first. |
Chapter-5
Closed Process Daemons
|
Closed systems undergoing a process as in the compression of a gas in a piston-cylinder device. Work with system state daemons first. |
Chapter-13
Combustion Daemons
|
Combustion in open steady systems and closed processes. Work with open steady and closed process daemons first. |
Chapter-5
Open Process Daemons
|
Open systems undergoing a process as in charging. Work with open steady and closed process deamons first. |
Chapter-14
Equilibrium Daemons
|
Chemical equilibrium. Work with combustion daemons first. |
Chapter-6
Exergy Daemons
|
Exergy analysis of open steady devices and closed processes. Work with open steady and closed process deamons first. |
Chapter-15
Gas Dynamics Daemons
|
High speed flow of gases. Work with open steady daemon first. |
Chapter 7
Reciprocating Cycle Daemons
|
Otto, Diesel, and other cycles used by reciprocating engines. Work with closed process daemons first. |
Chapters 3-15
TEST Codes Daemons
|
Reproducing a solution using TEST codes. |
| Copyright 1998-:
Subrata Bhattacharjee |