A planar mechanical library in the AMESim simulation software -
Part II: Library composition and illustrative example
Wilfrid Marquis-Favre
∗
Eric Bideaux Serge Scavarda
Abstract
This paper presents the composition of a planar mechanical library for the simulation tool AMESim.
This library is composed of 5 body components: one fixed to the frame of reference and the four others
corresponding to moving bodies with one to four connecting ports. These body components may be connected
to any of the joint components defined in the library. There are four basic joint components for: 1. a
translational joint, 2. a revolute joint, 3. a double translational joint, 4. a double translational-revolute joint.
Actuated versions of the translational and revolute joints are also available. Two more joint components
are also defined for coupling perpendicular motion planes. Finally four more specific components enable a
linear actuator in planar motion, a spring-damper, a 1 dimension to 2 dimensions coupling and a given action
to be modeled. The use of this planar mechanical library is illustrated using the example of a seven-body
mechanism.
Keywords : AMESim, planar mechanics, dynamics equations, constraint equations, Lagrange multipliers,
Baumgarte stabilization.
1 Introduction
As explained in part I of this two part paper the motivation for the planar mechanical library for the simulation
tool AMESim [AME04] is to enlarge the domain of applications using this tool. The philosophy of AMESim has
imposed constraints in the formulation of dynamics equations. The multibody system domain has certainly been
one of the most important vectors for the development of computer aided analyses and design tools. In particular
for solving the Differential-Algebraic Equations problem, research has concentrated on finding and improving
efficient numerical methods. Today the challenge of computer aided engineering is to provide tools that are
able to undertake analyses and design investigation of the multiphysical domain (mechatronics), this includes
linear and/or nonlinear, lumped and/or distributed parameter models. The open question is if the complete
engineering kit has to be incorporated into a unique simulation tool or if it is preferable to make existing tools
communicate through the concept of cosimulation, for instance [Sch00]. The planar mechanics library is a step
towards the first option.
Some simulation tools, such as Dymola, have also developed an object-oriented policy and propose a multi-
body mechanical library [Ott93]. Like AMESim, modeling relies on coupling the components that are connected
to the others by power ports. One common and important feature is that these simulation tools deal with mul-
tiphysical domains. Nevertheless one difference is that Dymola submodels do not have to be a priori explicitly
assigned and to have an organized set of equations, whereas AMESim submodels require this. If one is familiar
with bond graph, Dymola submodels correspond to an acausal bond graph while AMESim submodels correspond
to a causal bond graph (e.g. [Dau00] or [Kar90]).
In fact the modularity property and the connecting port concept requires working with a set of dependent
generalized coordinates and using the Lagrange multiplier method. Part I enabled generic models for both body
and joint components to be set up. The body component model consists of a set of differential equations in
terms of the absolute position of the body mass center and the absolute angular position of the body. The joint
∗
Laboratoire d’Automatique Industrielle, Institut National des sciences Appliquées de Lyon, Bât. St Exupéry, 25, avenue Jean
1