The purpose of this note is to describe the history of
an object-oriented simulation software and current
implementations of component libraries for the modelling
of fluid power drive systems. This review reflects
the experiences and personal views of the author.
History
In 1992 the Swedish company Dynasim AB offereda new simulation package called Dymola. I became
aware of this program in 1994 and was immediately convinced that their approach to modelling of dynamic
systems was the right one to model hydraulic drives. They used “object oriented modelling” which could be
described as: “ability of a computer program to represent a physical object regardless of the environment
where that object is used.” This means that a model is not given as a sequence of assignment statements – as
e.g. in then very popular simulation language ACSL – or a connection of signal processing blocks – as in the
nowadays very often used Simulink – but described by equations (in the mathematical sense).
And the coupling of submodels is based on energy considerations. For a hydraulic pump follows that it has
two hydraulic interfaces, called connectors, where the inport pressure and volume flow rate or the output
pressure and flow rate are transmitted to the neighbouring component. The product of those two variables is
the hydraulic power.
The second feature that convinced me was the handling of events. In the ACSL package that I used at that
time, so called SCHEDULE statements were available that evaluated a switching function to detect events,
e.g. the impact of a piston at the cylinder end. However, the programming of these switching functions
was tedious and error prone. Dymola simply uses relations like “... if x >= x_max then ...” and that makes
programming of models much easier and works flawlessly.
These features are possible because Dymola doesn’t simply sort and convert programming statements
into C code but – based on computer algebra – analyses the equations, rearranges and if possible
simplifies them to finally generate C code for an executable exe file.
Last but not least, with Dymola I could build system models in a graphical way by just selecting components
from a library and connecting them – nowadays this seems the natural way but in 1994 most simulation
packages were purely text based.
In the beginning I used Dymola as a front end for ACSL, i.e. Dymola wrote the simulation model in a
*.csl file using ACSL statements, and ACSL integrated and plotted the results. When studying the line dynamics
in a piston of an axial piston pump I ended up with a model that was very hard to solve with ACSL and
needed more than 3 hours. Almost desperate, I tried the Dymola integrator and was more than surprised that
after less than a minute I had a solution. This high quality of numerical algorithms has been a trademark
of Dymola since then.
The tool Dymola uses this language Modelica. Depending
on preferences, the user can do all modelling in a textual or a graphical way. The first approach is
typically used for basic models that can best be described by equations. It gives expert users very powerful
features to describe their system.
The graphical approach helps to build system models that are composed of many components. The
modeller sees the system structure with one glance and a pneumatics or hydraulics specialist also understands
this simulation model because all components have the standard ISO icons.
The user has two main modes. One is used for modelling and the other for running simulation. All commands
can be given via mouse or keyboard. All typical features for plotting or analysing (e.g. linearise, plot of
Bode or root locus plots) are available. The output as ACSL model is no longer available but Simulink
models can be generated as block.


The first version of this library of hydraulic components
had been written in an older object-oriented language and was converted to Modelica in 1999. The
pressures in the systems are used as state variables and computed by integration of the volume flow rates into
lumped volumes. There are several models for the oil compressibility the user can choose from.
HyLib is intended for simulation of hydrostatic drives, e.g. in vehicles, working machines or machine
tools. Typical actuators like cylinders or motors are available as are valves or long lines, and all the required
basic processes like throttling, pressure build up or flow forces.
A typical model, e.g. a constant displacement pump, is composed of an ideal hydraulic model, leakage paths,
models for the oil at its ports and if applicable mechanical parts like shafts.



