0% found this document useful (0 votes)
47 views12 pages

Cae PDF

This document describes a software application designed to help students visualize and understand hydraulic and pneumatic networks. The application uses a bond graph approach and numerical integration to model fluid systems. It includes graphical animation and instrumentation to display simulation results. A key feature is allowing students to interact with the simulation, enabling them to test hypotheses and assumptions about fluid behavior. The application aims to help students comprehend complex nonlinear phenomena in fluid systems that can be difficult to explain qualitatively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views12 pages

Cae PDF

This document describes a software application designed to help students visualize and understand hydraulic and pneumatic networks. The application uses a bond graph approach and numerical integration to model fluid systems. It includes graphical animation and instrumentation to display simulation results. A key feature is allowing students to interact with the simulation, enabling them to test hypotheses and assumptions about fluid behavior. The application aims to help students comprehend complex nonlinear phenomena in fluid systems that can be difficult to explain qualitatively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

A Software Application

for Visualizing and


Understanding Hydraulic
and Pneumatic Networks
TONY WONG,1 PASCAL BIGRAS,1 DANIEL CERVERA2
1
Department of Automated Manufacturing Engineering, École de technologie supe´rieure, University of Que´bec, 1100,
rue Notre-Dame ouset, Montre´al, Que´bec H3C 1K3, Canada
2
Department of Mechanical Engineering Technologies, Colle`ge de Valleyfield, 169, rue Champlain, Salaberry-de-Valleyfield,
Que´bec J6T 1X6, Canada

Received June 2003; accepted 14 November 2004

ABSTRACT: Hydraulic and pneumatic networks are highly nonlinear and difficult to
analyze. This study presents a software application designed to help students, visualize and
understand fluid systems’ dynamic behaviors. The application uses a combined bond graph
and singular perturbation approach for system equation formulation. A standard iterative and
adaptive integrator provides online numerical solutions to the system equations. Coupled to
the integrator’s output are a graphical animation subsystem and an instrumentation
subsystem. The animation subsystem is responsible for rendering movable components on
screen, at every simulation time-step, creating the illusion of continuous movement. The
instrumentation subsystem collects and displays numerical data in numerical and graphical
forms. An interesting contribution of this fluid system analyzer is its ‘‘user-in-the-loop’’
feature. This feature allows students to become active participants by enabling them
to interact with network components while a simulation run is in progress. ß 2005 Wiley
Periodicals, Inc. Comput Appl Eng Educ 13: 169180, 2005; Published online in Wiley InterScience
(www.interscience.wiley.com); DOI 10.1002/cae.20037

Keywords: modeling; simulation; nonlinear phenomena; hydraulic pneumatic network;


bond graphs

INTRODUCTION

Hydraulic and pneumatic networks are highly nonlin-


Correspondence to T. Wong (tony.wong@etsmtl.ca). ear and difficult to analyze. These systems exhibit
ß 2005 Wiley Periodicals Inc. nonlinear behavior because of restricted flows, finite

169
170 WONG, BIGRAS, AND CERVERA

displacements, and nonnegligible static and dynamic mechanics. Their studies involved groups of technical
frictions. Pneumatic network nonlinearity is even college students and first-year university engineering
stronger because of air compressibility. It is always a students. It was shown that most students exhibit
challenge to explain the effects of these nonlinear confused reasoning when asked to explain simple
phenomena on the overall network behavior. This observations. Below is an extract of some answers
study presents a software application designed to help taken from Cervera’s student survey [2]. Authors’
students, understand these complex phenomena with- commentary is shown in bold characters enclosed
out resorting to sophisticated finite element analysis. within parenthesis.
In order to achieve this goal, the proposed appli- ‘‘Pressure is itself a material entity (false). A
cation translates the hydraulic and pneumatic net- pump produces it (false). We can circulate, manip-
works into state-space form. The networks under ulate the pressure or use it to move a cylinder (false).
study are obtained from a graphical editor that acts as Pressure is a function of the fluid’s flow rate
the main user interface of the software application. (partially true). The smaller the pipe the faster is
The state-space translation step involves the use of a the flow and the pressure is higher (partially true).
bond graph causality assignment technique to deter- Thus, a cylinder’s strength depends on the size of the
mine the proper input-output relationships of the fluid pipe (false).’’
systems. Most hydraulic and pneumatic components The students perceive the ‘‘pressure’’ not as an
do not have fixed input-output assignments and they explanatory concept but as a real physical object. For
have to be determined according to network topology. them, pressure as a physical object, can be moved
An adaptive numerical integrator then solves the re- around within the system. And it is this physical
sulting system equations. At constant time interval, object that acts on the cylinder’s piston and thus
the computed outputs are forwarded to the software making it moves. Also, they consider a proportional
application’s animation and instrumentation sub- relationship between the pressure and flow rate. By a
systems. The animation subsystem is responsible for similar deduction process, they conclude that the force
online graphical rendering of dynamic variables, produced by a cylinder is a function of the size of the
while the instrumentation subsystem is responsible connecting pipe.
for data collection and display.
To further enhance the visualization and under-
standing process, the software application also in-
cludes a special subsystem that permits in-simulation
Example of Nonlinearities
interactions. This important feature allows students to We believe that one of the factors contributing to these
change the states of most fluid system components misconceptions is the nonlinear relationship govern-
while a simulation is in progress. It is thus easy for ing the pressure and the flow rate in fluid systems [4].
instructors to design what-if scenarios and help Students tend to relate quantities in linear or pro-
students to test their hypothesis and assumptions. portional terms. Their faulty representation is often
Therefore, the students are not passive spectators but the result of the general application of an idea, which
active participants in the learning process. states that linear behaviors can approximate nonlinear
behaviors when the variations are small. As we will
show, this is not always true in fluid systems even in
PROBLEM IDENTIFICATION very simple cases.
Consider a simple hydraulic setting with a single
It has been noticed that students having learning dif- restriction and the fluid is assumed to be noncom-
ficulties can not explain or resolve apparently simple pressible. This setting is illustrated in Figure 1.
problematic situations. Even when the solution to We shall neglect the effects of gravity and assume
these problems does not involve any calculation, but the velocity of the fluid at point 1 as negligible com-
simple qualitative description of the observed phe- pared to that at point 2. Using Bernoulli’s equation,
nomenon. These students were unable to establish a we have according to Reference [5]
correct relationship between: (i) the situation con-
1
fronting them; (ii) the phenomenon observed; (iii) the P1 ¼ P2 þ rV22 ð1Þ
concepts implied. This inability to formulate a correct 2
tripartite relationship is the result of misconception where Pi is the pressure at point i, Vi is the velocity of
[1]. the fluid and r its density. If we consider that the
In Cervera [2] and in Youssef [3], the idea of opening surface at point 2 is A then the relation be-
misconception was explored in the field of fluid tween the flow rate Q and the pressure difference at
SOFTWARE APPLICATION FOR HYDRAULIC AND PNEUMATIC NETWORKS 171

point 2 is described by
rffiffiffiffiffiffiffiffiffiffiffisffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
 ðk1Þ=k

pffiffiffiffiffiffiffiffi 2k P2
Q2 ¼ A RT1 1 ð7Þ
k1 P1
which is a highly nonlinear function of P1 and P2. To
further complicate the situation, the flow rate is dif-
ferent at point 1 and point 2 since gas is compressible.
Most students will at first be confused by this
Figure 1 One-dimensional fluid flow with single
phenomenon. To bypass this difficulty, we can instead
restriction.
use the mass flow m_ . Because of mass conservation,
mass flow is invariant along a pipe. The mass flow is
related to fluid flow by

points 1 and 2 can be written as m_ ¼ r2 Q2 ð8Þ


sffiffiffi
By combining Equations (4), (5), (7), and (8), we can
2pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
Q¼A P1  P2 ð2Þ derive the following mass flow expression
r
rffiffiffiffiffiffiffiffiffiffiffisffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
 2=k  ðkþ1Þ=k
AP1 2k P2 P2
where V ¼ Q/A. Evidently, this flow rate is not a linear m_ ¼ pffiffiffiffiffiffiffiffi  ð9Þ
function of the pressure. Moreover, simple linear ap- RT1 k  1 P1 P1
proximation does not hold when the pressure dif- In practical situations, we need to take into account an
ference is near zero. Consequently, most students will additional effect in the mass flow expression. It is
have difficulty conceiving the correct representation the so-called diffusion phenomenon where the fluid
of this phenomenon. velocity at point 2 cannot exceed the speed of sound
We now turn the one dimensional fluid flow of [6]. When the fluid velocity at point 2 equals to that of
Figure 1 into a pneumatic setting. The pneumatic set- sound, lowering the pressure at the restriction’s output
ting is highly nonlinear because gas is compressible. will not cause the mass flow to increase. With this
We shall again neglect the effects of gravity. Again added phenomenon, we have to rewrite Equation (9)
according to References [5] and [6], the differential as
form of Bernoulli’s equation gives 8
< AP rffiffiffiffiffiffiffiffiffiffi ffisffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
 2=k  ðkþ1=kÞ
dP 1 1 2k P2 P2
þ dðV 2 Þ ¼ 0 ð3Þ m_ ¼ pffiffiffiffiffiffiffiffi 
r 2 : RT1 k  1 P1 P1
where r is a function of the pressure P. If we assume P2
if < rc
an isentropic process for the fluid flow and apply the P1
ideal gas hypothesis then we have sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
 ðkþ1Þ=ðk1Þ
2 P2
1 1 k if  rc
r ¼ P k C k ð4Þ kþ1 P1
ð10Þ
P
r¼ ð5Þ
RT where
 k=ðk1Þ
where R is the gas constant, k is the specific heat 2
coefficient ratio, T the temperature, and C a constant. rc ¼ ð11Þ
kþ1
By replacing Equation (4) into Equation (3) and in-
tegrating between point 1 and point 2, we get Because of these cascading considerations, the final
1 k  ðk1Þ=k ðk1Þ=k
 1  mass flow expression has the form of a piecewise
Ck P2  P1 þ V22  V12 ¼ 0 function. Even in such a simple setting, fluid systems
k1 2
ð6Þ exhibit nonlinearity. In a more practical setting where
basic fluid components are involved, the relationships
Again, we assume the velocity of the fluid at point 1 as must include other nonlinear phenomena. For ex-
negligible compared to that of point 2. Knowing that ample, fluid accumulation in a cylinder is a function
V ¼ Q/A, the flow rate at point 2 can easily derived by of volume variations caused by rod displacement. This
combining Equations (4), (5), and (6). The flow rate at nonlinear relationship results in the coupling of the
172 WONG, BIGRAS, AND CERVERA

fluid part and the mechanical part of the system.


Furthermore, the mechanical part also possesses
nonlinear characteristics such as finite piston length,
static and dynamic frictions. All these nonlinear Figure 2 A bond connecting two multi-ports m1 and
characteristics and phenomena contribute to the m2. The half arrow indicates that power flows from m1
overall complexity of most simple fluid systems. to m2.

FLUID SYSTEM MODELING


Graphically a bond is a directed line connected to
In order to obtain an effective software application for two ports sharing the bond variables. The direction of
hydraulic and pneumatic network visualization and the line shows the power flow between ports and is
understanding, it is necessary to employ a systematic called the power half arrow. The direction of the
and efficient approach for its design and implemen- power flow is chosen by convention and does not need
tation. By modeling all hydraulic, pneumatic, and to reflect the true polarity of the flow. Figure 2 illus-
mechanical components as multi-port devices, one trates the power flow between two multi-ports m1
can apply the bond graph theoretic approach for net- and m2.
work topological recognition [7,8]. The bond graph We define a bond graph as BG ¼ <G, I>. G is a
approach is a general technique that results in directed and labeled graph and I a function identifying
system equation formulation. It is well suited for the multi-port type. We represent the graph G as a
hydraulic, pneumatic, and general mechanical sys- triplet G ¼ (M, B, lm), where M ¼ {m1, . . ., mjMj} is
tems because of its so-called causality analysis the set of multi-ports, B ¼ {b1, . . ., bjBj} is the set of
capability [9]. bonds and jMj, jBj denotes the cardinality of the set M
In this design approach, all components are and B. For each bond b 2 B, there is an ordered couple
modeled as multi-port devices. There are two vari- (mi, mj) joined by b which defines the power direction
ables associated with each device port. They represent of the bond. While lm is the set of bonds incident to a
the effort-quantity (pressure, force, etc.) and the flow- multi-port m 2 M. Also, we define lþ: B ! M, a
quantity (flow, speed, etc.) of the device. However function that returns the starting multi-port of a bond.
device port’s directional information is not known a Similarly, we define l: B ! M as a function re-
priori. That is, input-output relationship of the device turning the ending multi-port of a bond. We thus have
ports is dependent on the network’s topology. By 
lm ¼ fbb 2 B; lþ ðbÞ ¼ mg [ fbjb 2; B; l ðbÞ ¼ mg
using bond graph’s causality analysis technique, one
can determine input-output relationship of every con- ð13Þ
nected port online. Finally, the identifying function I of the bond graph is
The goal of bond graphs is to represent a dynamic simply I:M ! T where T 2 {SF, SF, R, L, TF, GY, 0-
system by means of basic multi-port devices and their junction, 1-junction} are the basic multi-port element
interconnections by bonds. These basic multi-ports labels.
exchange and modulate power through their bonds. Table 1 shows the set of basic multi-ports. The
There exist two power variables and two correspond- fourth column presents the constitutive laws of
ing energy variables on each connected bond. They the basic multi-ports. A constitutive law determines
are: (i) effort variable e(t)—pressure (force); (ii) flow the relationships of the associated variables for a given
variable i(t)—flow rate (velocity); (iii) momentum multi-port. The second column shows the usual power
f(t)—pressure momentum; (iv) displacement variable flow convention of the multi-ports. The third column
q(t)—volume. The effort variable is the time deriva- presents the mandatory, constrained, preferred, and
tive of some momentum and conversely, the momen- indifferent computational causality of the multi-ports.
tum is the time integral of an effort, The small stroke, called the causal stroke, at one end
Z
of a bond indicates the direction of travel of the effort
eðtÞ ¼ dfðtÞ=dt; fðtÞ ¼ f0 þ eðtÞdt ð12aÞ variable information. The reaction to the effort in-
formation is the presence of a flow variable traveling
The same relationship applies to the flow variable and in the opposite direction. Thus, the causal stroke re-
the displacement variable, presents the flow causality at one end of a bond. The
Z opposite end of a bond must have complementary
iðtÞ ¼ dqðtÞ=dt; qðtÞ ¼ q0 þ iðtÞdt ð12bÞ causality. This constitutes the fundamental causal
constraint of a bond graph.
SOFTWARE APPLICATION FOR HYDRAULIC AND PNEUMATIC NETWORKS 173

Table 1 Bond Graph’s Basic Multi-Ports Elements


Multi-port name Powerflow Computational causality Constitutive laws

Effort source eðtÞ ¼ EðtÞ

Flow source iðtÞ ¼ IðtÞ

Resistor eðtÞ ¼ fR iðtÞ


iðtÞ ¼ fR1 eðtÞ

R
Capacitor eðtÞ ¼ fC1 iðtÞdt
iðtÞ ¼ fC deðtÞ=dt

R
Inertia iðtÞ ¼ fL1 eðtÞdt
eðtÞ ¼ fL diðtÞ=dt

Transformer e1 ¼ m e2
i2 ¼ m i1
i1 ¼ m1 i2
e2 ¼ m1 e1

Gyrator e1 ¼ r i2
e2 ¼ r i1
i1 ¼ r 1 e2
i2 ¼ r 1 e1

0-junction e1 ¼    ¼ en1 ¼ en
i1 þ    þ in1 þ in ¼ 0

1-junction i1 ¼ . . . ¼ in1 ¼ in
e1 þ    þ en1 þ en ¼ 0

The 1-port sources Se and Sf represent the in- sets. There exist four types of causal constraints in
teraction of a system with its environment. In fluid bond graphs. Mandatory causality—The constitutive
systems, they may represent pressure and flow laws allow only one of the two port variables to be the
sources. The 1-port resistive element R, capacitor output. Sources Se and Sf have mandatory causality.
element C, and Inertia element L act as power dis- Preferred causality—For the storage elements C and
sipation and storage elements. The 2-port transformer L, there can be time derivative causality or time
and gyrator are power continuous elements (no power integral causality. The preferred causality here refers
storage and no power dissipation). The n-port junction to the integral causality of these elements. Constrain-
elements are also power continuous. The constitutive ed causality—For TF, GY, 0- and 1-junction there are
laws of a 0-junction are analogous to the Kirchoff’s relations between the causality of the different ports
current law. The constitutive laws of a 1-junction are of the element. The relations are causal constraints
analogous to the Kirchoff’s voltage law. because the causality of a particular port imposes the
In bond graphs, the inputs and outputs are charac- causality of the other ports. Indifferent causality—
terized by the effort causality and flow causality. Thus, Indifferent causality means there is no causal
causality assignment is a process by which the bond constraints. The linear resistor element R exhibits
variables e(t) and i(t) are partitioned into input-output indifferent causality since both power variables e(t),
174 WONG, BIGRAS, AND CERVERA

i(t) can be made member of the input and output 1971), it is possible to obtain a global state-space re-
sets. presentation of the system. Figure 3 depicts this parti-
Most traditional causality assignment procedures tioning scheme graphically.
use a local constraint propagation scheme to label In this scheme the set of transformer, gyrator, and
bond causality. From some starting point, usually one n-port junction elements are grouped together forming
of the source elements, bond causality is assigned a so-called junction structure. The Se and Sf elements
sequentially, according to the multi-port connected to are inputs to the junction structure. While the C, L, and
the bond, until all element ports are labeled. These R elements have input-output relationships with the
causality assignment procedures must also satisfy the junction structure. Using the computational causality
four causality types and the fundamental causal con- assigned to each element port, it is easy to determine
straint. the input bond variables and the output bond
The sequential causality assignment procedure or variables. We then write the set of equations
SCAP is an example of causal labeling by local representing the partitioned bond graph. For the re-
propagation [9]. The following pseudocode describes sistive elements, we have
the causality assignment procedure.
v ¼ RðwÞ ð15Þ
Procedure SCAP: input(BG), output(BG)
where w, v are the input and output variable vectors
P M
while (j P j > 0) { and R is the impedance functions vector. Similarly for
the storage elements we have
x m, where I(m) ¼ SE _ I(m) ¼ SF
if ({x} ¼ ¼ Ø) z ¼ SðxÞ ð16Þ
x m, where I(m) ¼ C _ I(m) ¼ L
if ({x} ¼ ¼ Ø) where S is a function vector and x is called the energy
x m, where I(m) ¼ R variable vector or simply state vector. The set of
P¼P{ m } equations governing the junction structure is
2 3
assign(x, lx)

z
If conflict(BG) abort x_ J J2 J3 4 5
¼ 1 v ð17Þ
If complete(BG) return BG w J4 J5 J6
u
}
The assign(x, lx) procedure selects the appro- where u is the source vector and Ji are matrices re-
priate mandatory, preferred, or constrained causality presenting the constraints imposed by the junction
(shown in Table 1) for multi-port x. It also attempts to structures to the set of element ports. By substituting
assign causality to transformer, gyrator, and n-port Equations (15) and (16) into Equation (17) we obtain
junction elements that are connected to x by using the x_ ¼ J1 SðxÞ þ J2 RðwÞ þ J3 u
set of bonds lx. After the assign procedure, a check is ð18Þ
w ¼ J4 SðxÞ þ J5 RðwÞ þ J6 u
made to ensure that no causal conflict exists in the
bond graph. Otherwise, the procedure will abort. Thus, without loss of generality, the system model
Normally a causal conflict indicates the presence of comprising all network components is
topological loops (differential/algebraic loops), de-
x_ ¼ HðxÞ þ Bðx; uÞ
pendent storage elements, or simply design errors. ð19Þ
y ¼ GðxÞ þ Dðx; uÞ
Such degenerated networks produce a set of differ-
ential algebraic equations and its solution is often where x is the state vector, y is the outputs vector, and
time consuming. More details on causality assignment u is the inputs vector of the system. The input-output
techniques can be found in References [9,10].

State-Space Formulation
For each causality, the numerical model of the i-th
component is a nonlinear ODE system of form
x_ i ¼ hi ðxi Þ þ bi ðxi ; ui Þ
ð14Þ
yi ¼ gi ðxi Þ þ di ðxi ; ui Þ
where xi is the state vector, yi is the outputs vector and
ui is the inputs of the i-th component. Using the par- Figure 3 Partition of a bond graph based on the
titioning scheme given in Reference [11] (Rosenberg input-output sets of multi-port elements.
SOFTWARE APPLICATION FOR HYDRAULIC AND PNEUMATIC NETWORKS 175

coupling between network components can be model- approach allows us to have a larger time-step since
ed as only the slow subsystem must be integrated. However,
because the latter is iterative in nature, it is not
u ¼ Cy ð20Þ
possible to guarantee hard real-time performance.
Finally, the global model of all interconnected com-
ponents is obtained by substituting Equation (20) into
Equation (19). Since there is no algebraic loop, the DESIGN AND IMPLEMENTATION
model can then be written as follows:
In the proposed software application, the process of
x_ ¼ HðxÞ ð21aÞ
construction, simulation and data display is a set of
simple tasks. In the construction task, hydraulic,
y ¼ GðxÞ ð21bÞ pneumatic, and mechanical components are selected
We can consider the system equations as an from the component palettes. Using hydraulic (pneu-
assembly of two coupled subsystems: one depicting matic) links and connecting them to component ports,
one can create component interconnections to form a
the slow-varying part and the other depicting the fast-
network. Each network component contains a numer-
varying part of the system. In physical terms, the
ical model whose parameters are adjustable via the
slow-varying part represents the mechanical interac-
user interface. A student can accept the default values,
tions and the elasticity of the pneumatic fluid. Using
use specific settings given by instructor or specify
similar reasoning, the fast-varying part represents the
values directly from manufacturer’s data sheets. For
elasticity of the hydraulic fluid. By applying the
singular perturbation approach [12], the global model the simulation task, numerical simulation is perform-
can then be rewritten as: ed in either continuous mode or step-by-step mode. In
continuous mode, system equations solution and
x_ s ¼ Hs ðxs ; xf Þ ð22aÞ graphical animation updates are continuously execut-
ed every time-step. In step-by-step mode, the student
ex_ f ¼ Hf ðxs ; xf Þ ð22bÞ is responsible for time-step increment (by depressing
a key or a mouse click) so that it is possible to slow
y ¼ Gðxs ; xf Þ ð22cÞ down or speed up the simulation process. Finally, the
data display task consists of data collection using
where xs and xf are the vectors of the state variables measurement components. Data are displayed syn-
associated to the slow and fast subsystems and e is a chronously with the simulator output in both numer-
small positive parameter associated to the time con- ical and graphical forms. Data collected are persistent
stant of the fast subsystem. Since the parameter e is until the next simulation run. The measurement com-
close to zero, a good approximation solution of the ponents can also perform formatted storage opera-
slow subsystem can be obtained by posing e ¼ 0. The tions. This enables extensive post-simulation analysis
global model is then given by using external data analysis tools.
x_ s ¼ Hs ðxs ; xf Þ ð23aÞ The above-described tasks are best realized
by the use of object-oriented technologies. In the
0 ¼ Hf ðxs ; xf Þ ð23bÞ

y ¼ Gðxs ; xf Þ ð23cÞ
In this model, the set of nonlinear differential
equations of the fast varying part is transformed into
a set of nonlinear algebraic equation [12]. This result
greatly facilitates the construction of the numerical
integrator that can operate in quasi real-time. An
adaptive integrator, part of the software application
subsystems, is used to ensure the accuracy of the
solution at each time-step. Note that the global model
includes a static part (23b) and a dynamic part (23a).
The integrator with adaptive time-steps is based on
multiple evaluations of the model. At each model Figure 4 Simplified application objects relation-
evaluation, the static part must be solved. This ships.
176 WONG, BIGRAS, AND CERVERA

components. This involves the recalculation of net-


work states and their propagation to all connected
components by a graph traversal. To implement in-
simulation interactions every network component that
possesses user-interactivity must register itself with an
object called in-simulation observer. During a simula-
tion run, all mouse and keyboard events (or simply
user events) are filtered and routed to the in-
simulation observer. The observer passes along the
Figure 5 In-simulation interactions modeling using user events to the registered components. Consequent-
the Observer pattern. ly, it is the network components that are responsible
for user event processing. Figure 5 shows the object
object-oriented approach, a software application is the diagram of the in-simulation interaction subsystem. It
result of a collection of cooperating objects [13,14]. is actually an implementation of the classical object-
We obtain the objects for the software application by oriented observer pattern [15].
analyzing its specification along a responsibility as- A network component is programmed to recog-
signment point of view [15]. Thus, all objects must nize only meaningful events. For example, dragging
have non-trivial responsibilities assigned to them. the body of a hydraulic pump during a simulation run
Otherwise they are discarded from the design. has no meaning. However, dragging its displacement
control will signal the pump to update its displace-
ment value. After a successful event processing by a
In-simulation Interactions
registered component, the in-simulation observer will
As shown in Figure 4, there is a logical interface inform the Integrator, via the Editor, to propagate state
between the integrator output and the graphical changes to other connected components. The simula-
animation subsystem. The latter subsystem is respon- tion then restarts at the same point in time using the
sible for updating color changes and the rendering of newly recalculated state variables.
moving parts on behalf of the network components.
The graphical animation subsystem also collaborates
Instrumentation
closely with network components and the network
editor to allow in-simulation interactions. An in- It is worth noting that instrumentation (i.e., adding
simulation interaction permits a student to change or measurement points to the system) does not
modify a component’s state while a simulation run is increase system complexity. Since instrumentation
in progress. Thus, the student can stop or start motors, merely associates a set of system variables to the set
select different distributor pistons, modify cylinder’s of output variables, there is no extra overhead
longitudinal position and so on. in processing instrumentation measurement points.
In order to allow in-simulation interactions, the In the software application, the grapher object
application establishes a so-called mechanical chain is responsible for online plotting of instrument-
to determine the effect of changes on other network ed network variables. Finally, instrumentation is

Figure 6 Two component palettes of the simulation package.


SOFTWARE APPLICATION FOR HYDRAULIC AND PNEUMATIC NETWORKS 177

transient to steady-state transitions. Usually, mechan-


ical displacements (linear translations and rotational
movement) can be expressed easily by graphical
animations. However, dynamic entities such as
pressure differential, flow resistance, and temperature
variations are much more difficult to express. A color-
coded scheme is suitable for representing these
dynamic variables. In this scheme a set of colors is
mapped to a range of variable values. While a simu-
lation run is in progress, the student can notice
component internal changes by observing its color
variations. For a more quantitative evaluation, the
student can also connect measurement components to
the network. These measurement components display
or plot numerical data at each time-step.

APPLICATIONS
Figure 7 Components are interconnected by the use
of links.
The fluid system construction makes use of a set of
component palettes. Some of these component pal-
ettes are shown in Figure 6.
preprocessed in the causality analysis phase so that By using the ‘‘drag and drop’’ technique, the
no negative impact can affect the overall simulation student can lay out components on the workspace. In
time. order to create a useful hydraulic or pneumatic sys-
The Animator object uses a color-coded scheme tem, one has to connect together the appropriate
to represent state changes in transient regime and component ports. This task is shown in Figure 7.

Figure 8 Typical two-speed hydraulic system with instrumentation and grapher output.
178 WONG, BIGRAS, AND CERVERA

Figure 9 Hybrid hydraulic-pneumatic system with compressor group.

A typical two-speed hydraulic network provides Also in Figure 8 is a grapher object, which shows
different forward and backward cylinder speeds. The the cylinder position as a function of simulation time-
user can control cylinder’s forward and backward steps.
motion by activating the distributor pistons. This The simulator also allows hydraulic and pneu-
typical network is shown in Figure 8. matic system coupling at mechanical contact points.

Figure 10 Numerical model parameters for a double acting cylinder.


SOFTWARE APPLICATION FOR HYDRAULIC AND PNEUMATIC NETWORKS 179

This capability permits the study of different system has been awarded the Québec Education Minister’s
dynamics and their interplay. In Figure 9, the mech- Award for ‘‘best educational software’’ in the year
anical contact point is the interface between the 2000.
pneumatic and hydraulic cylinders. This hybrid net-
work shows an interesting application where a pneu-
matic cylinder, driven by its compressor group, is the REFERENCES
prime moving force.
The hydraulic cylinder, which is coupled to the [1] D. Cervera, Élaboration d’un environnement d’expéri-
pneumatic one, acts as a retaining force on behalf of mentation en simulation, incluant un cadre théorique
the load. Note that this hybrid configuration offers pour l’apprentissage de l’énergie des fluides. Ph.D.
different retaining force for forward and backward Dissertation, faculté des sciences de l’éducation,
cylinder motions since there is two flow controls Université de Montréal, 1998.
installed on the hydraulic cylinder. Again, the student [2] D. Cervera and A. Métioui, Énergie des fluides:
can control forward or backward motion by activating Analyse conceptuelle et représentation des élèves,
technical report (PAREA), Collège de Valleyfield,
the distributor pistons or by dragging one of the
Québec, 1993.
cylinder’s pistons. [3] A. Youssef, A. Métioui, P. Bigras, and D. Cervera, Les
As indicated earlier every hydraulic, pneumatic, représentations des étudiants du collégial profession-
and mechanical component possesses a numerical nel à l’égard des principes de fonctionnement des
model that is fully adjustable. Figure 10 shows a circuits hydrauliques, technical report, École de tech-
typical component dialog box for parameter input. In nologie supérieure, University of Québec, 1991.
most cases, non-ideal component characteristics are [4] T. Wong, P. Bigras, and D. Cervera, A software tool for
possible. For example, Figure 10 depicts an input understanding nonlinear phenomena in hydraulic and
dialog box for a double acting cylinder. The student pneumatic systems, Proceedings of the American
can select from several joint leak degrees (negligible, Society of Engineering Education Conference, session
low, medium, and high) to obtain non-ideal character- 2220, paper 514, 2002.
[5] R. R. Munson, D. F. Young, and T. H. Okiishi,
istics caused by aging and wears of the component.
Fundamentals of fluid mechanics, Wiley, New York,
1998.
[6] B. W. Andersen, The analysis and design of pneumatic
CONCLUSIONS systems, Wiley, New York, 1967.
[7] A. Mukherjee and R. Karmakar, Modeling and simu-
This study presented the motivation and the design of lation of engineering systems through bondgraphs,
a software application for visualizing and under- CRC Press LLC, Boca Raton, FL, 2000.
standing hydraulic and pneumatic networks. The [8] D. C. Karnopp, D. L. Margolis, and R. C. Rosenberg,
intent is to help students analyze fluid system behav- System dynamics: A unified approach, Wiley,
iors. This application is suitable for small-to-medium New York, 1990.
scale fluid system analysis. It uses a combined bond [9] J. D. Dijk, On the role of bond graph causality in
modelling mechatronic systems. Ph.D. Dissertation,
graph and singular perturbation approach for system
University of Twente, CIP-Gegevens, 1994.
equation formulation. A standard adaptive integrator [10] T. Wong, P. Bigras, and K. Khayati, Causality assign-
solves the system equations that are divided into a ment using multi-objective evolutionary algorithms,
slow-varying part and a fast-varying part. The logical IEEE Int Conf Syst, Man and Cybern 4 (2002), 3641.
interface of the integrator output and the graphical [11] R. C. Rosenberg, State-space formulation for bond
animation and instrumentation subsystems are also graph models of multi-port systems, Transactions of
detailed in the study. The graphical animation sub- the ASME, J Dyn Syst Meas Control 93 (1971),
system is responsible for updating color changes and 123125.
rendering of moving parts on behalf of network [12] H. K. Khalil, Nonlinear systems, Macmillan,
components. An important feature of this computer New York, 1992.
application is its ability to permit in-simulation in- [13] J. Rumbaugh, M. Blaha, W. Premerlani, F. Eddy, and
W. Lorensen, Object-oriented modeling and design,
teractions. It allows the students to manipulate
Prentice Hall, Englewood Cliffs, NJ, 1991.
network components while a simulation run is in [14] R. Allen, A formal approach to software architecture.
progress. This feature should facilitate hydraulic Ph.D. Dissertation, Carnegie Mellon University,
and pneumatic network understanding by putting 1997.
the students in the simulation loop. Finally, this [15] A. Shalloway and R. Trott, Design patterns explained:
software application is in use in number of univer- A new perspective on object-oriented design, Addison-
sities and technical colleges throughout Québec. It Wesley, New York, 2001.
180 WONG, BIGRAS, AND CERVERA

BIOGRAPHIES

Tony Wong holds BEng and MEng degrees Daniel Cervera holds his PhD degree in
in electrical engineering from the École de education sciences from Université de
Technologie Supérieure. He received his Montréal. Dr. Cervera has taught at Collège
PhD in computer engineering from École de Valleyfield for the past 30 years. His
Polytechnique de Montréal. Dr. Wong is a current research interests are in the field of
professional engineer and chair of the abstract representations of technical and
automated manufacturing engineering scientific knowledge.
department, École de Technologie Supér-
ieure. His current research interests are
multiobjective optimization using evolutionary algorithms and its
parallel implementations.

Pascal Bigras received the BEng degree in


electrical engineering and the MEng
degree from the École de Technologie
Supérieure of Montréal in 1991 and 1993,
respectively, and his PhD in automatic
control from École Polytechnique de
Montréal in 1997. Dr. Bigras is an associate
professor at the École de Technologie
Supérieure. His current research interests
are simulation and nonlinear and robust control.

You might also like