Elsevier

Computer-Aided Design

Volume 39, Issue 8, August 2007, Pages 694-707
Computer-Aided Design

Interactive simulation of one-dimensional flexible parts

https://doi.org/10.1016/j.cad.2007.05.005Get rights and content

Abstract

In this paper, we present a system for simulating one dimensional flexible parts such as cables or hose. The modelling of bending and torsion follows the Cosserat model. For this purpose we use a generalized spring–mass system and describe its configuration by a carefully chosen set of coordinates. Gravity and contact forces as well as the forces responsible for length conservation are expressed in Cartesian coordinates. But bending and torsion effects can be dealt with more effectively by using quaternions to represent the orientation of the segments joining two neighbouring mass points. This augmented system allows an easy formulation of all interactions with the best appropriate coordinate type and yields a strongly banded Hessian matrix. An energy minimizing process accounts for a solution exempt from the oscillations that are typical of spring–mass systems. The whole system is numerically stable and can be solved at interactive frame rates. It is integrated in a virtual reality software for use in applications such as cable routing and assembly simulation.

Introduction

The automotive industry aims to reduce development costs and time while meeting the demand for quality and for an increasing model range. In order to meet this challenge, more and more work is done digitally. Styling reviews, digital mock-ups and assembly simulations are used at an early stage in the development process. Thus, potential problems can be detected and solved much earlier, long before the first physical prototype is built. Assembly simulation is one of the applications used in the construction design process: the virtual prototype is tested and optimized for feasibility and ease of assembly. Like in other virtual reality applications, the physical behaviour of the components needs to be simulated: collisions must be detected and contact forces must be calculated to impede the interpenetration of objects and to make them slide on each other when collisions occur. Our work is based on the virtual reality software veo, developed by DaimlerChrysler Research and Technologies, which already has a real-time collision detection and interactive contact simulation [1] as well as a real-time multibody dynamics [2]. This software had to treat flexible parts as rigid bodies, however, because it did not have a realistic way of dealing with flexible bodies. This implies that deformations that can occur in the physical world cannot be simulated, which limits the possibilities of the tool. A typical example of this would be an assembly simulation in which a cable should be pushed slightly aside to permit the mounting of another part. Studies from the business units show that most of the problems concerning flexible parts are encountered with cables, wire harnesses and hoses. These parts are also involved in another particular application: the routing. On the one hand, wire harnesses are becoming more and more complex as the use of electrical and electronic components in vehicles grows; on the other hand, they often need to be modified to accommodate for changes in surrounding parts or for optimization. To meet the interests of the business units, we have chosen to first concentrate on simulating these parts since they cover the most urgent need. For these bodies, one of their dimension (the length) is much bigger than the other two and their centreline contains most of the information needed to represent them. This one-dimensional nature leads to simplifications in the simulation compared to other objects such as flexible surfaces or bodies.

Several approaches have been used for simulating various types of flexible bodies. We focus in particular on one-dimensional bodies, where the spectrum of solutions ranges from purely graphical representation of oscillations without any physics and with very low computational requirements [3] to a complete finite element simulation, such as has been used to predict the mechanical properties of cloth [4]. The domains which have contributed to the simulation of flexible parts are as diverse as the flexible parts themselves: hair and cloth simulation (see [5], [6] for a survey on hair simulation and [7] for a survey on cloth simulation) for use in computer graphics, thread simulation for surgical training or laparoscopy, assembly simulation tools... Among the most popular computational models are differential equations [8], chains of rigid bodies [9] or spring–mass systems [10]. Mass-spring systems are a versatile way of simulating deformations and have been used for simulating a variety of flexible parts. [11] use a triangular mesh for modelling cloth. [10] implements a cable as a spring–mass model with stiff linear springs for the length conservation and torsion springs (the energy is proportional to the angle between two segments) for the bending. Hergenröther [9] models a cable as a chain of cylinder segments connected by ball joints. The chain at first has two segments and is iteratively refined, doubling the number of segments at each iteration, thus giving an inexact but fast dynamic simulation and a more exact, slower static one. [12] implements an impulse-based simulation for cables: impulses are applied at the beginning of each time-step for ensuring that the constraints are enforced in the rigid-body chain. [13] uses geometrically exact dynamic splines for modelling cables. Suturing ropes are simulated in [14] with a Follow the Leader algorithm: after a node has been moved to its new position, its neighbours are then moved along the line joining their old position to the new position of the moved node so that they are at the correct distance from the grasped node. The other nodes are then moved iteratively. In the case of contradictory moving directions (there are two grasped nodes, or collisions...), the resulting displacement is an average of the displacement induced by each of the constraints, which do not necessarily preserve the constraints, but the inaccuracies are not visually noticeable and are averaged out after a few iterations.

Few approaches deal with torsion. This is unfortunate since, as shown for example in [15], torsion plays a crucial part in the deformation of a cable. One of the most interesting approaches taking the torsion into account is the one from Pai [8]. He uses a Cosserat model as a base for the simulation of suture strands during laparoscopic surgery. These strands are objects visually well approximated by a curve but nevertheless present three-dimensional body properties like twisting. In the typical use case in surgery simulation, the position and direction of the strand are defined at one end (corresponding to the end fixed in human tissues) and the forces and moments are defined at the other end, corresponding to the needle haptic device. The ordinary differential equation resulting from the Cosserat model is integrated in two passes to calculate all the variables. Another implementation of this model can be found in [16], [17] for modelling hair. Each master strand is discretized as a smooth sequence of helical segments. The variables are then the constant curvatures and torsions of those segments. The shape of the strand can be calculated by integration. The system can be solved either by energy-minimization [16] or dynamically with a Lagrangian formulation [17]. A similar formulation, using also the curvatures and torsion as variables can be found in [18] for path-planning techniques.

Being aware of the importance of torsion for the deformations of a cable, it became one of our main interests. After several attempts, we have finally chosen a generalized spring–mass system for modelling the cables. This system uses a mixed coordinate system that contains at the same time ordinary position coordinates and quaternions representing the orientation of segments on the basis of which the torsion is easy to calculate. For enforcing constraints like the conservation of length, we introduce an integral force analogous to the action of a proportional–integral controller.

Section snippets

The Cosserat model for rods

The Cosserat model for rod-like solids (with one dimension–the length–much greater than the other two cross-section dimensions) is a model from continuum mechanics. It models such a three-dimensional body as a one-dimensional one while taking into account the properties of the cross-section. A rod is then represented by its centreline (a curve in the usual three-dimensional space) associated to frames (whose vectors are the so-called directors) which represent material orientation and

Shooting method for ODE

The Cosserat model gives us a set of ordinary differential equations where the tensions and inner moments are coupled to the positions and orientations. In order to solve this, we need to know either the forces, moments, position and orientation at one end of the cable, or a combination of them distributed over the two ends. Since it is much easier for the user in the absence of force feedback to specify the position and orientation at one point, for example, with a spacemouse, we wanted to

Mixed coordinates

We are looking for a coordinate system in which the torsion is easily expressed and not too noise-sensitive. The torsion depends on the difference of orientation along the tangent to the centreline of two segments. This orientation can be described as a rotation of SO(3) from a reference orientation. From the several representations of rotations of SO(3), we have chosen unit quaternions. (Quaternions are 4-tuples that can be seen as a generalization of complex numbers. They will be described in

Forces

The interactions taken into account are bending and torsion, weight, stretch (inextensibility), normalization of quaternions and coherence between the quaternions and the space coordinates. Handles (fixed points) can be defined optionally: each one defines the additional constraint that the cable should pass by a particular point with a particular orientation. By default, the two endpoints are considered to be fixed in position and orientation: their coordinates are excluded from the solver

General principles

Since the cables and hoses do not have a high dynamic range, considering a static solution at each time step is sufficient for most of the applications we are concerned with, like wire routing or assembly simulation. Dynamic phenomena like fast oscillations are excluded by the quasi-static system: the system is after each time step at equilibrium. Numerical oscillations, which are often a problem for stiff spring–mass systems, are also excluded by the absence of speeds as variables. We use an

Integration in a virtual reality environment

The simulation is integrated in the virtual reality software veo of DaimlerChrysler Research and Technology. It provides the whole environment for the simulation, such as graphics, scenes and objects handling. The cable is represented as a sequence of spheres and cylinders. The spheres are set at the discretization points. The cylinders are set along the segments joining two consecutive points. The cylinders and spheres can be moved (in the geometrical limits permitted by the simulation) easily

Conclusion and future work

In this paper, we presented a virtual environment suitable for the simulation of cables. Our approach modelled the cable with an extended spring–mass system that was solved with an energy minimizing algorithm. The cable was modeled using the Cosserat theory, taking into account the conservation of length, the weight, the bending and the torsion. In order to easily formulate the bending and torsion interaction, we used a mixed coordinate system where each mass point had three space coordinates

References (21)

  • M. Buck et al.

    Interactive rigid body manipulation with obstacle contacts

    Journal of Visualization and Computer Animation

    (1998)
  • Sauer J., Schömer E.. A constraint-based approach to rigid body dynamics for virtual reality applications. In: Proc....
  • R. Barzel

    Faking dynamics of ropes and springs

    IEEE Computer Graphics and Applications

    (1997)
  • Finckh H, Stegmaier T, Planck PH. Numerische Simulation der mechanischen Eigenschaften textiler Flächengebilde -...
  • K. Ward et al.

    A survey on hair modeling: Styling, simulation, and rendering

    IEEE Transactions on Visualization and Computer Graphics

    (2007)
  • N. Magnenat-Thalmann et al.

    State of the art in hair simulation

  • Thomaszewski B, Wacker M. Bending models for thin flexible objects. In: WSCG short communication proceedings....
  • D.K. Pai

    Strands: Interactive simulation of thin solids using Cosserat models

    Computer Graphics Forum

    (2002)
  • Hergenröther E, Daehne P. Real-time virtual cables based on kinematic simulation. In: Proceedings of the WSCG 2000....
  • Loock A, Schömer E. A virtual environment for interactive assembly simulation: From rigid bodies to deformable cables....
There are more references available in the full text version of this article.

Cited by (103)

  • Cable-path optimization method for industrial robot arms

    2022, Robotics and Computer-Integrated Manufacturing
  • A review of techniques for modeling flexible cables

    2020, CAD Computer Aided Design
    Citation Excerpt :

    From another point of view, these models can also be classified as quasi-static models and dynamic models. The former are often solved using the energy minimization method [41–43] and shooting method [44] while the latter require solving the equations of motion, which are ordinary differential equations (ODEs), via numerical time integration schemes [45–47]. Numerical methods for integration can be divided into first-order methods (such as the Euler method [45,48,49]), second-order methods (such as the Störmer–Verlet (symplectic Euler)) method [50,51]), and higher-order methods (such as the Runge–Kutta method [52,53]).

View all citing articles on Scopus
View full text