MODELING MULTI-ELEMENT SYSTEMS USING BOND GRAPHS Jurgen Greifeneder
Francois E. Cellier
Fakultat Verf.-technik und Techn. Kybernetik Universitat Stuttgart
Dept. of Electr. & Comp. Engr. The University of Arizona P.O.Box 210104 Tucson, Arizona 85721-0104 U.S.A.
[email protected] http://www.ece.arizona.edu/~cellier/
70550 Stuttgart Germany
[email protected] http://www.greifeneder.de/jg/
KEYWORDS
Thermodynamics; multi-element systems; pressure cooker; bond graphs; compartmental model. ABSTRACT
This is the last in a series of three papers. The rst paper (Greifeneder and Cellier 2001a) discussed the modeling of conductive as well as convective ows of a single homogeneous substance through a homogeneous medium. The second paper (Greifeneder and Cellier 2001b) discussed the phenomenona associated with phase change, i.e., it discussed, from a bond-graphic perspective, phenomenona such as evaporation and condensation, solidi cation, melting, and sublimation. This third paper deals in particular with the diÆcult problem of modeling multi-element systems. Together they oer a general methodology for modeling thermodynamical phenomenona using true, rather than pseudo-, bond graphs. No quasi-stationary or owequilibrium assumptions were made, such that the models generated using the proposed methodology would be kept as general as possible.
In the most general sense, thermodynamics ought to be described by distributed parameter models. Since bond graphs are geared to be used for the description of lumped parameter models only, a simplifying assumption will be made, in that the system to be modeled is compartmentalized, whereby each compartment is considered to be homogeneous. New bond-graphic macro-elements were introduced in the rst two papers to describe the energy storage within a compartment as well as the mass (and energy) ows between neighboring compartments. This paper discusses primarily issues surrounding the thermodynamic modeling of multi-element systems. Contrary to earlier eorts related to the modeling of the thermodynamics of uid ows, such as (Moksnes 1997; Thoma and Ould Bouamama 2000), which made use of pseudo bond graphs, the present discussion is based entirely on true bond graphs. True bond graphs, representing power ows across a system, oer a more realistic treatment of the interactions (energy exchange) between the three energy forms involved in uid ows: the thermal, volume, and mass ows. Their use also simpli es drastically the interconnection of the uid ow models with their environment. BACKGROUND
INTRODUCTION
Bond graphs enable the modeler to describe the dynamics of a physical system in a modular fashion using energy storage, dissipative power ow, energy source, and transformation elements. The basic bond-graphic icon library enables the user to model, in a systematic fashion, physical systems, the dynamic behavior of which is governed by power ows alone. Systems with macroscopic mass ows add additional complexity to the modeling task, since the mass that ows through the system carries with it its stored internal free energy, which is thus transported from one location to another in a non-dissipative fashion.
In the previous papers (Greifeneder and Cellier 2001a, 2001b), systems were discussed that only included a single component. For dealing with multi-element systems, this paper needs the assumption of homogeneous, ideally mixed compartments. `Ideally mixed' here means that the molecules are distributed at random, i.e., a prediction of what molecule becomes a neighbor of which other molecules is not possible. A possible way of modeling an ideally mixed compartment would be, to de ne a single C- eld (CF-element) representing the mixture, while changing its internal equations as a function of the composition of the mixture. However, such a decision would necessitate the de nition of C- elds with n + 2 instead of 3 external cuts (n being the number of components in the mixture).
0
0
1
0
2
M2
1
....
M3 g3
C
bility analysis shows that the corresponding transfer rates cannot be chosen in nitely large. In fact, they must be limited such that the exchange between neighboring components is relatively slow for the simulation to work. Consequently, the temperature and pressure of dierent components of the ideal mixture can assume, in the simulation, somewhat dierent values, although if left alone, they will equilibrate eventually. The primary advantage of this kind of modeling lies in the fact that the previously introduced structure of the CF-elements can be retained and that the disclosure of \imagined" ows among the components may improve our understanding of what is going on in mixtures.
0
n
.
g1
g 2.
M.
.... 3
. Mn gn
n
CF T.
0
C S
C
q
p
0
Figure 1: Modi ed CF-element, Using n+2 External Cuts Such an approach would carry the advantage, that no constraint equations would need to be introduced and that the topological structure of the model of a complex system would be simpler and more easy to comprehend. However, the approach would also be characterized by serious disadvantages, namely that the previously introduced structure of the C- eld would have to be extended, that the internal equations of the C- eld would change in accordance with the composition of the mixture { an unnecessary complexity especially in the case of simple systems, and that processes would be hidden that the authors would like to make visible. However, as this would have been the classical thermodynamic approach to modeling multi-element systems, one could certainly have done so.
IDEAL GASES
Let us start with the simplest case: a mixture of ideal gases. According to Dalton's law (Cellier 1991), ideal gases do not in uence one another. When mixing such gases, their masses, volumes, and entropies simply add up. Therefore, the above model can be used for the most general case of such a mixture. However, the modeler must provide a consistent set of initial conditions, as the sum of all partial volumes must be identical to the volume itself. Furthermore, some elements (e.g. phase transitions) are more conveniently expressed in terms of partial pressures than partial volumes. In multi-element systems, these elements have to be extended by an interface equation that determines the partial pressures as a function of the partial volumes and the overall pressure. partial V i ppartial = Pnj=1 Vjpartial pGas i i
(1)
MONO PHASE SYSTEMS
The model discussed in this paper is based on the following idealizations. Let us assume the system to be considered contains n components that are mutually separated by moveable membranes. Let us further assume that the eigendynamics and the friction are neglected. We now make each compartment in nitely thin while preserving its volume. Thereby the surface of the boundary layers to the neighbors become in nitely large. We want to assume that each of these in nitely thin compartments is in contact with every other compartment, such that all compartments are direct neighbors of each other. Thence, if the initial temperature and pressure in the dierent compartments were distinct, the exchange between the compartments would guarantee that they would equilibrate in nitely fast. A system modeled in this fashion can be considered ideally mixed. This conceptual system has been modeled by introducing one CF-element for each component of the mixture and by connecting them, using DVA- and CD-elements1. Sta1 The
DVA- and the CD-element (Greifeneder and Cellier 2001a)
RF-ELEMENTS
IN
MULTI-ELEMENT
SYSTEMS
The RF-element, describing macroscopic dissipative phenomena of mass and energy transfers between C- elds, can easily be generalized to multi-element systems2. If a mixture is being transported from one set of C- elds to another, each component of that mixture is transported as well. Consequently, an RF-element can be placed between each pair of CF-elements representing the same component of the two mixtures, and the ow rates across these RF-elementsV are computed in accordance with the volume fractions ( P iVi ) of the mixture of the emitting C- eld. represent the exchange of volume and entropy, respectively, driven by the dierence of the corresponding potentials (pressure and temperature, respectively). 2 The CD-, DVA-, KA-, and KV-elements used in this paper describe dissipative phenomena, i.e., R- elds, as well. Yet, dierent mnemonics were used to isolate the dierent microscopic dissipative phenomena discussed in the paper, whereas the RF-element, as used in this paper, was restricted to describing macroscopic mass ow effects only.
Therefore, the multi-element transportation system can be identi ed as a parallel connection of single-element transportation systems, the throughput of which is determined by the composition of the emitting system (Figure 2). CF 11 3
3
Ø
CF 21
RF DVA CD
3
3 3
DVA CD
3 DVA CD
3
3
vertical Exchange (mixture)
CD DVA
Ø
3
horizontal Exchange (transport)
3 3
DVA CD
3
CD DVA
Ø
CF 22
CF 12
3
3
RF DVA CD
3
3
3
Ø
3
3
3
DVA CD 3
RF DVA CD
CF 13
Ø
3
3
Ø 3
CF 23
Figure 2: Multi-element Transportation System as a Sum of Coupled Single-element Systems. The Decomposition Illustrates the Dierence Between Horizontal (Spatial Transport) and Vertical (Mixture) Exchange
EQUILIBRATION
OF
CONCENTRA-
TIONS
There exists yet another phenomenon that needs to be discussed. Let us assume that each of the CF-Elements were connected to an outside source, a phase exchange element as discussed in the previous paper or anything equivalent. Consequently, the concentrations in the rst compartment may become dierent from those in the second compartment. Thus, diusion will take place to equilibrate the concentrations. This diusion process is modeled using a new element, the KA-element. Its internal bond graph structure is identical to that of the RF-element described in the previous section. However, RF-elements were only provided with the state informations of the emitting CFelements. Since in the diusion, the resulting ow is no longer a function of potential dierences, the corresponding KA-Elements will need to know the values of the variable to be equilibrated from both compartments. This variable { for example the molar or mass fraction { will be provided by the mixture information element discussed in the next section. Diusion is usually much slower than all of the other phenomena already discussed, yet the phenomenon cannot be neglected in the modeling eort, since otherwise, dierent concentrations of the same element in neighboring connected compartments may not be equilibrated at all, but may exist even in steady state, which is certainly incompatible with physical evidence. The KA-elements, contrary
to the RF-elements described earlier, are not coupled, as they describe microscopic transport phenomena that occur for each element independently, except for the constraint imposed by the total mass balance. IDEAL MIXTURES
Let us now proceed to the next more diÆcult case of a mixture. It is called \ideal mixture." An ideal mixture is de ned in such a way that masses and volumes still add up, but additional entropy is produced in the process of mixing the components. Together with the entropy, also the free enthalpy changes. At this point, the previously proposed way of modeling leads to a problem: CF-elements are not supposed to know about each other. Yet, the additionally generated entropy and free enthalpy need to be distributed among the participating components. To this end, we either need an additional bond graph element that distributes the newly generated entropy and free enthalpy among the participating CF-elements, or alternatively, each CF element needs to know its own molar fraction to compute the appropriate correction terms. In our implementation, we chose the latter route. The required information is provided to the participating CFelements by the Mixture Information (MI) element. Contrary to all previously introduced elements, the MI-element does not carry any energy ( ows). It only provides information ows (Figure 3). Pure information ows are dubious from a physical perspective, but they are justi ed when they are used locally among bond graph elements that, in the physical reality, model dierent aspects of one and the same phenomenon, as is the case here.
CF1
{M1}
{x }
{M2}
MI
{x }
1
2
CF2
Figure 3: Mixture Information Element for Ideal Mixtures Shown Here for the Case of Only Two Components When mixing two or more dierent components (chemical reactions are not being considered in this paper), their energy must be preserved. However in the case of an ideal mixture, irreversible processes are being considered, leading to an increase in entropy. Since the volume, pressure, temperature, and mass are conserved in an ideal mixture, the energy balance can be written as: id T = g id Smixed (2) mixed M id id id (=) Hmixed = gmixed M + T Smixed = 0) (3) As requested, the enthalpy H is conserved. The change in speci c entropy due to mixing can be written as (Stephan and Mayinger 1992) X sidmixed = R xk ln(xk ) (4) k
where xk is the molar fraction, and consequently, the change of free (Gibbs) enthalpy can be evaluated as: X id gmixed = T R xk ln(xk ) (5) k
How are these changes modeled using bond graphs? Evidently, as additional entropy is being generated irreversively, thus using an RS-element, the corresponding heat
ow must come from somewhere. The above equation shows, where the energy comes from. It is deducted from the mass ow, as the free enthalpy of the mass undergoing the mixture is reduced. This is shown in Figure 4. CF11
T. S1 p q1 g1(T,p) . M1
CF21
T. S2 p q2 g2(T,p) . M2
T. S1 p q1
1 1 1
CF12
mix
∆g1 . M1
g1 (T,p) . M1
RS
x
T
M
11
CD DVA
MI
. ∆Sid 1 mix
M
T. S2 p q2
1 1 1
11
x
21
21
CF22
mix
∆g2 . M2
g2 (T,p) . M2
RS
T
. mix ∆Sid 2
Figure 4: Entropy of Mixing (The 0-junctions Associated with Each of the C- elds Were Suppressed for Simplicity) The left hand side of Figure 4 shows two components before mixing, represented by their corresponding CFelements. The right hand side shows the same two components after mixing. The two RS-elements represent the generation of mixing entropy at the expense of free enthalpy. What happens to temperature and pressure? It would be possible to compute the temperature T and the pressure p as functions of the speci c enthalpy h and the speci c volume v. Since neither h nor v are changed in the process, T and p cannot change either. In our code, we compute T and p as functions of the speci c entropy s and the speci c volume v: T = T(s; v) (6) p = p(s; v) (7) Since s changes its value, the formulae T(s; v) and p(s; v) must get modi ed in the process of mixing, such that T and p remain constant. Alternatively, it is possible to keep the formulae the same, but calculate a modi ed entropy value (a coordinate transformation) that corrects for the dierent formulae being used: T = T(v; sintern) (8) p = p(v; sintern ): (9) where: sintern := s sidmixed: (10)
It may be of interest to brie y discuss causes and effects in Figure 4. Let us assume we start out with a pure substance M1, and we now start to mix to it a substance M2. Initially, the C- eld CF22 inherits all of the properties of CF21 . However, as material id ows in, CF22 computes the change in free enthalpy gmixed in accordance with Equation 5, and thereby, the free enthalpy g2mix of CF22 changes. This change produces the mix required g2, which in turn leads to an entropy ow S_ id2 into CF22 , which changes the speci c entropy of the mixture. What happens to CF12 ? Since there is no mass ow of component M1, no mixing entropy is produced. Yet, the entropy of the mixture changes, and consequently, T and p of CF12 will temporarily change. Now the equilibration elements between CF12 and CF22 become active, which equilibrate T and p, and in the process generate the additional mixing entropy required. In steady state, the temperature T and the pressure p of both CF12 and CF22 resume approximately their original values, and the total mixing entropy added to the mixture corresponds to that needed in accordance with Equation 4. The equilibration acts as a P-controller. There may remain a nal bias, because, as soon as the total mass transfer into the mixture has taken place, there is no mechanism left to equilibrate the free enthalpy values, and a g2 6= 0 may remain that does not generate any entropy ow, since by now, the mass
ow M_ 2 is equal to zero. In the worst case, the entire mass M2 is added to the mixture in a single Dirac event. Consequently, the mass
ow M_ 2 is zero except during the event, when it is in nitely large. During the event, the entire mixing entropy should be generated, but numerically, our code has no way of accomplishing this. In the simulation, the mixing entropy will remain zero, and the temperature T of the mixture will assume a lower value accordingly. NON-IDEAL MIXTURES
Non-ideal mixtures are de ned in such a way that now, changes in volume due to the mixture are also considered. For example, if wine is mixed with water, the volume of the mixture is smaller than the sum of the volumes of the components. However, if the mixing takes place in a closed system, the volume of the mixture must be the sum of the individual volumes, and consequently, the pressure of the mixture will now be smaller than the pressure of its components. Figure 5 shows the generation of mixing entropy in this case. Since T and p are no longer constant, additional energy ows p q and T S_ are generated that result in two additional entropy ows into the CF-element of the mixture. It can be seen that the process of mixing makes use of the general RF-element as introduced in (Greifeneder and Cellier 2001a). Evidently, entropy gets generated by means of the mRS-elements until the temperature of the mixture equals that of the components. If the components are at dierent temperatures (cold milk getting poured into hot coee), the temperature of the mixture assumes a tem-
T1 . S1 p1 q
CF11
T1mix . S1 p1mix q
1 .
1
1
S1 ∆T1
g1 (T1,p1) . M1 mix
g1 (T1,p1) . M1 . M 1 ∆g1
1
RS
CF12
1
q1 ∆p1
T1mix . ∆S1
RS mRS
CD DVA
MI
0 T2 . S2 p2 q2
CF21
g2(T2,p2) . M2
T2mix . S2 p2mix q2
1 .
1
1
S2 ∆T2
q2 ∆p2
g2 (T2,p2) . M2 mix
. M 2 ∆g2
RS
CF22
T2mix . ∆S2
RS mRS
0
Figure 5: Entropy of Mixing in Non-ideal Closed Mixtures perature in between those of the two components. Since the entropy ow is dictated by the mass ow, one of the mRS-elements \consumes" entropy (assumes a negative Rvalue), whereas the other generates it. Notice that the entropy \consumption" in one of the mRS-elements of the thermal domain is perfectly consistent with thermodynamics, since it is always overcompensated for by the generation of entropy in the other mRS-element. The reader is reminded that the separation of a mixture into component C- elds is only a mathematical construct, not physical reality. In practice, the non-ideal mixture usually takes place in an open environment, i.e., the pressure remains constant, whereas the volume gets reduced. This process can be modeled as depicted in Figure 6.
ment, whereas the DVA-elements ensure that the pressure of the mixture, in steady state, equals that of the environment. In the simulation code, these bond graphs are implemented as follows. The speci c excess volume vEx and the Ex speci c excess entropy s of a non-ideal mixture are tabulated in the literature as functions of temperature and pressure. Given the current temperature T and the pressure p of the mixture, these quantities can be computed. Using these values, T and p can be corrected as follows: T = T(v + vEx; s sEx) (11) Ex Ex p = p(v + v ; s s ) (12) A non-linear iteration takes place until T and p no longer change. These are the values that the mixture CF-elements put out initially. In general, both the temperature and the pressure will reduce their values during the initial iteration. As a consequence, the RS-elements start to generate entropy, which ows into the mixture, and raises both the temperature and the pressure again. As long as the mass
ow into the mixture continues, the temperature and pressure will rise, as additional entropy gets generated. In the steady state, the sum of the three entropy ows into the CF-element, S,_ adds up to zero. At that time, the temperature is above that of the ideal mixture, whereas the pressure is still below that of the ideal mixture. The lower pressure is what is expected to happen in a closed system. The higher temperature is needed to compensate for the entropy generated by the dierence in pressures of the unmixed and the mixed components. This phenomenon is often referred to as the heat of mixing. Temperature and pressure only get adjusted to the values of the environment if the CF-elements of the mixture exchange energy with the environment, as shown in Figure 6. MULTI-ELEMENT MULTI-PHASE SYSTEMS
CF11
CD DVA
3
3
3
Ø
3
RF
3
Ø
3
CF12
MI
Ø 3
3
RF
3
Ø
3
CF22
CD DVA
Øoutside 3
3 CD DVA
CF21
Figure 6: Entropy of Mixing in Non-ideal Open Mixtures The CD-elements to the environment ensure that the temperature of the mixture approaches that of the environ-
The authors propose to model each phase independent of the others (cf. the section on RF-elements in multi-element systems), and neglect in uences of secondary importance as needed. This approach is meaningful, as the equilibration elements (the CD-elements and DVA-elements) have a tendency to stabilize the system and to reduce the importance of secondary eects. By decoupling the phases, the uid and gaseous phases may assume dierent ow velocities, which is commonly the case. Figure 7 shows a system consisting of two components, each with a uid and a gaseous phase traveling along a pipe that is compartmentalized. Only two compartments are shown. The bottom half of the graph shows the uid phase, whereas the top half depicts the gaseous phase. The left half shows one compartment, whereas the right half shows the other.
Gas
Gas
CF21 3
3
DVA CD
3
3
+
3
Vges
3
DVA CD
Ø
3
+ 3
Gas
CF11
Ø
CF12
3
Fl.
CF11
E
Fl.
CF 21
E
{x , ∆S , ∆V } 21
21
21
21
MI
1
12
12
E
DVA CD
12
E
12
3
3
12
12
CD Condensation/ Evaporation DVA
3
3
Ø
phaseboundary
3
3 E
DVA CD
E
22
22
MI2
Gas
CF 11
3
DVA CD
Ø
{x , ∆S , ∆V }
21
{M ,T ,p } 21
RF DVA CD
{x , ∆S , ∆V }
3
11
21
E
DVA CD
3
11
3
21
Ø
E
3
3
Fl.
3
3
3
CF 12
11
3
21
Ø
Ø
CD Condensation/ Evaporation DVA
3
{M ,T ,p }
3
{x , ∆S , ∆V }
DVA CD
3
CD DVA RF
3
3
{M ,T ,p }
3
air
3 3
CD Condensation/ Evaporation DVA 3
phaseboundary
DVA CD
DVA CD
3
CD Condensation/ Evaporation DVA 3
CD Condensation/ Evaporation DVA
3
Ø
3 3
Gas
3
3
Ø
DVA CD
3
RF DVA CD
3
steam
CF 21
3
Vges
3
Ø
Gas
CF22
CD DVA RF
3
22
Fl.
CF22
3
{M ,T ,p } 22
22
22
3
Figure 7: Model of a Two-element, Two-phase, Twocompartment Convective System
Ø 3
The vertical bonds show the exchange of energy between the dierent phases of the same components. Beside the usual equilibration elements, thermal conduction and volume equilibration, also condensation and evaporation are being modeled (Greifeneder and Cellier 2001b). Activated bonds are used to indicate that the condensation and evaporation elements require knowledge of the overall volume to determine their own partial pressures. The horizontal bonds show the convective ows from one comparment to the next. Beside from the equilibration elements, each phase uses coupled RF-elements to describe the convective ows. No KA-Elements were introduced, because diusion eects are of second order small in the given context, and can therefore be neglected. The diagonal bonds show secondary eects of temperature and volume interchange between two components, one in its uid phase and the other in its gaseous phase. Mixture information (MI) elements are shown for the
uid phase only, as the gases are assumed ideal. MODEL OF A PRESSURE COOKER
As an example of the theory discussed in this3 paper, the model of a pressure cooker is being presented . In a rst approximation, the pressure cooker can be represented as shown in Figure 8. When the pressure cooker is heated, more and more of the water turns into steam by means of evaporation. The air component of the gas phase is needed to provide the pressure cooker at room temperature with the pressure of the environment. Without the air, some water would have to evaporate even at room tem3 The pressure cooker, a multi-phase, multi-element system, had already been used as example of a multi-phase system in (Greifeneder and Cellier 2001b), because multi-phase systems of a single element are hardly physical due to pressure/volume restrictions. However, lacking the multi-element-theory, the model could not be discussed in detail, which shall be done now.
Fl.
CF 21
water
Figure 8: Simpli ed Pressure Cooker Model with Two Gaseous Phases and a Single Fluid Phase perature in order to produce equilibrium pressure, which would be considerably lower than 1 bar. A more complete, yet more stylized, model is shown in Figure 9. Here, each bubble represents one component, i.e., one C- eld together with its vector 0-junction. Beside from water, steam, and air, two more gaseous components were added, representing both air and steam in the boundary layer close to the wall of the pressure cooker. Thus, the gaseous phase has now two compartments, one representing the inside of the pressure cooker (the bulk), the other representing the boundary layer close to the wall. This compartmentalization was necessary, since the assumption of the entire gaseous phase being homogeneous is untenable, as it would lead to poor simulation results. At some point in time, the authors also considered the inclusion of air bubbles in the water and of water droplets in the air, but it was decided that the in uences of these additional components were of second order small. Air and steam were modeled as ideal gases. The inaccuracies associated with this assumption are of second order small. The assumption has the advantage, that the partial pressure of the steam can be computed easily as p V : The disadvantage of this solution is that psteam = Vsteam the temperature and pressure tables for liquid water had to be slightly corrected in the vicinity of the boiling point in order to provide a clean transition to the gaseous phase. The usual equilibration elements (the CD-elements and DVA-elements) were included between water and steam, between water and air, as well as between steam and air, both in the bulk and in the boundary layer. Only CDelements were used between the two compartments (bulk and boundary layer), because the convective transport be
tween these two layers (RF-elements) is driven by the pressure dierence between these two layers. Hence the DVAelement and the RF-element would be competing for the equilibration of pressure, and a DVA-element is not needed since the RF-element will accomplish the desired equilibration of pressure. To model the necessary diusion processes between the same elements of neighboring compartments, responsible for the equilibration of their concentrations, KA-elements were placed in parallel with the RF-elements for air and steam between the bulk and the boundary layer.
SE: 293 K
CD (t)
Air in Boundary layer
CD (t)
Steam in Boundary layer
DVA CD
CD RF
KA
Air
CD
the SE-element at the top represents the cooling of the pressure cooker by letting cold water ow over it. Mixture information (MI) elements are not shown in Figure 9 for reasons of clearity. However, they are needed, rst to provide the KV-elements with the total volume of the corresponding gaseous compartment and second to provide the RF-Elements with the information necessary for the diusion process. The following simulation experiment was conducted. At time = 0, the pressure cooker, which at that time is at room temperature, (T 293K), and has just been closed, (p 101kPa, humidity 0:5), is placed on a hot surface (T = 393K). As expected, both pressure and temperature rise. The pressure release valve, that would prevent a real pressure cooker from exploding, was omitted from the model. It was assumed that the walls are strong enough to withstand arbitrarily high pressure values. After half of the simulation period, the pressure cooker is removed from the stove and is placed under cold water (T=293K). Dew forms immediately in the boundary layer, whereas condensation in the bulk starts somewhat later. Figure 10 shows the temperature trajectories of the ve components as functions of time. During the heating phase, the ve temperatures are almost identical. During the cooling phase, the boundary layer cools down most rapidly, the bulk follows somewhat more slowly, and the water cools down last.
CD
KA
RF CD
DVA CD
steam
Temperatures
CD (t)
400
CD (t)
Air Steam Water Boundary Air Boundary Steam
380
DVA
CD
KV
CD
DVA
water
KV
CD (t)
SE: 393 K Figure 9:4 Stylized Bond Graph Model of the Pressure Cooker Additional CD-elements were included between steam in the bulk and air in the boundary layer and vice-versa. Evaporation and condensation (KV-element) take place between the water and the steam in the bulk. Condensation takes also place along the wall, i.e., between the steam in the boundary layer and the water. The SE-element at the bottom of Figure 9 represents the heating element, whereas 4 The directions of the bonds are arbitrary. They were chosen from left to right and from the bottom up to coincide with positive power
ows during the heating phase, except for those bonds describing condensation phenomena, where the direction of natural energy ow was chosen.
Temperature/K
360
340
320
300
280
0
500
1000
1500
2000
2500
Time/s
Figure 10: Temperature Graphs of the Simulated Pressure Cooker Figure 11 shows the pressure trajectories. The pressure of the bulk is indistinguishable from that of the uid phase. Only the boundary layer exhibits temporarily a pressure dierent from that of the other components. During the heating phase, all pressures are indistinguishable from each other. The knee in the curve (roughly at time 150 sec) represents the point where the water begins to boil. At that point in time, the temperature has reached a value of roughly 380 K, which, at a pressure of 130 kPa, indeed corresponds to the boiling point of water. During
The humidity is initially identically in both compartments. During the rst part of the heating phase, the humidity decreases, as the saturation pressure { located in the denominator of the humidity { has the same gradient as the rising temperature. Small dierences can be seen, as the boundary layer heats up a bit faster than the bulk, and therefore, its humidity decreases faster. The humidity starts climbing again after approximately 150 seconds. This is caused, just like the knee in the pressure trajectories, by the fact that the water begins to boil at this time. As the temperatures of the system no longer increase much and since additional steam will be present in the gaseous phase, the humidity in both compartments rises until it reaches an equilibrium state of approximately 32.75%. As, with the beginning of the cooling phase, the temperatures in the boundary layer drop down rapidly, the corresponding humidity quickly reaches 100%, and dew starts to form on the cold surface of the pressure cooker. Now, the two gaseous compartments are no longer identical in their compositions, and therefore, diusion occurs. The (slower) cooling down of the bulk together with the diffusion between the bulk and the boundary layer pull the humidity of the bulk up, until, roughly at time 1315 sec, the humidity of the bulk reaches 100%, and steam starts to condensate directly via the phase boundary. The humidity inside the pressure cooker will remain at 100% until the end of the simulation, as the only way to lower the humidity would be to raise the temperature again, or open the pressure cooker. Figure 13 shows the mass fractions of steam in the two gaseous compartments. The mass fraction of steam is de ned as: msteam $steam = msteam (14) + mair i.e., it de nes the percentage of steam contained in the gaseous phase.
the cooling phase, the pressure in the boundary layer drops temporarily below that of the bulk, because the boundary layer cools down more rapidly than the bulk, and because water condensates more rapidly in the boundary layer, and the two RF-elements cannot resupply the boundary layer with air/steam mixture from the bulk arbitrarily fast. Pressures Boundary layer Air, Steam, Water
200
180
Pressure/kPa
160
140
120
100
80
0
500
1000
1500
2000
2500
Time/s
Figure 11: Pressure Graphs of the Simulated Pressure Cooker Figure 12 shows the humidity trajectories of bulk and boundary layer. Humidity is de ned as partial (13) ' = ppsteam H2 O sat whereby ppartial steam is the partial pressure of the steam, and H O psat2 is the saturation pressure of water at the given temperature.
mass fractions 25
Bulk Boundary layer
humidity 100
20 90
mass fraction/%
80
70
humidity/%
60
15
10 50
40
5
30
20
0
Bulk Boundary layer 0
0
500
1000
1500
2000
2500
Time/s
10
500
1000
1500
2000
2500
Time/s
Figure 12: Humidity Graphs of the Simulated Pressure Cooker
Figure 13: Mass Fractions of Steam in the Two Gaseous Compartments The initial value of $steam is de ned by the humidity of the air at the time when the pressure cooker is closed. It
stays constant, until, at time 150 sec, the water begins to boil. It then rises until the new ow equilibrium is reached. At that time, the percentage of steam in the gaseous phase has reached a value of 23:6%. When cooling starts, the boundary layer cools down more rapidly than the bulk. Also the pressure of the boundary layer drops more rapidly than that of the bulk. However, the pressure equilibrates much more rapidly than the temperature. Thus, the pressure in the bulk (and in the water) decreases more rapidly than the temperature, the boiling point of the water decreases, and consequently, additional water boils o. As a consequence, the mass fraction of steam in the bulk rises temporarily. However, the mass fraction starts dropping again due to pressure equilibration and diusion. At time 1315 sec, steam starts to condensate from the bulk, and consequently, the mass fraction drops sharply. The nal equilibration of the two mass fractions occurs primarily by means of diusion. CONCLUSIONS
The paper discusses dierent aspects of the rather complicated processes of modeling multi-element systems. It was found that modeling each element separately as a storage element (a C- eld), and connecting them by means of dissipative elements (R- elds) simpli es the modeling task, offers insight into the physical functioning of multi-element systems, and leads to mathematical models that can be simulated in a numerically stable and highly accurate fashion. The modeling methodology, as discussed in this paper, is still limited to multi-element systems without chemical reactions. The discussion of the latter may, in the future, form a paper on its own. The thermodynamics of chemical reaction systems were discussed already in (Greifeneder 2001). The example of a pressure cooker was used to illustrate the functioning of the methodology, and to demonstrate the practicality of the advocated approach to modeling. REFERENCES
Cellier, F.E. 1991. Continuous System Modeling, SpringerVerlag, New York. Greifeneder, J. 2001. Modellierung thermodynamischer Phanomene mittels Bondgraphen, Diplomarbeit, Universitat Stuttgart, Germany. Greifeneder, J. and F.E. Cellier 2001a. \Modeling Convective Flows Using Bond Graphs," Proceedings ICBGM'2001, International Conference on Bond Graph Modeling and Simulation, Phoenix, AZ, pp. 276-284. Greifeneder, J. and F.E. Cellier 2001b. \Modeling MultiPhase Systems Using Bond Graphs," Proceedings ICBGM'2001, International Conference on Bond Graph Modeling and Simulation, Phoenix, AZ, pp. 285-291.
Moksnes, P.O. 1997. Modeling two-phase thermo- uid systems using bond graphs, Doktor Ingeni/oravhandling, Norges teknisk-naturvitenskapelige universitet, Trondheim. ISBN 82-471-0054-1. Stephan, K. and F. Mayinger 1992. Thermodynamik, Vol. 2, Mehrstosysteme und chemische Reaktionen; Grundlagen und technische Anwendungen, SpringerVerlag, Berlin, Heidelberg. Thoma, J. and B. Ould Bouamama 2000. Modelling and Simulation in Thermal and Chemical Engineering. A Bond Graph Approach, Springer-Verlag, Berlin, Heidelberg, New York. AUTHOR BIOGRAPHIES
is studying Technische Kybernetik (Engineering Cybernetics) at the University of Stuttgart, Germany. At the moment, he is working on his Diplomarbeit ( nal project), and expects to graduate withing the next six months. Mr. Greifeneder's main scienti c interests concern modeling, simulation, and control methodologies. In 1999/2000, Mr. Greifeneder spent a year as an exchange student with the University of Arizona, where the foundations for the research eort presented in this paper as well as the previous two papers were laid. JURGEN A. GREIFENEDER
received his B.S. degree in Electrical Engineering from the Swiss Federal Institute of Technology (ETH) Zurich in 1972, his M.S. degree in Automatic Control in 1973, and his Ph.D. degree in Technical Sciences in 1979, all from the same university. Following his Ph.D., Dr. Cellier worked as a Lecturer at ETH Zurich. He joined the University of Arizona in 1984 as Associate Professor, where he is currently a Full Professor of Electrical and Computer Engineering. Dr. Cellier's main scienti c interests concern modeling and simulation methodologies, and the design of advanced software systems for simulation, computer-aided modeling, and computer{aided design. Dr. Cellier has authored or co-authored more than 200 technical publications, among them a textbook entitled Continuous System Modeling, published by Springer-Verlag, New York in 1991. Dr. Cellier has organized numerous international conferences on Modeling and Simulation. Most notably, he was one of two co-founders of the International Conference on Bond Graph Modeling and Simulation, a series of conferences organized bi-annually by SCS, which has become the most important event related to bond graphs worldwide. Dr. Cellier currently serves as Vicepresident of Conferences of the Society for Modeling and Simulation, SCS. FRANC OIS E. CELLIER