Conference PaperPDF Available

A Symbolic-Numeric Approach to Tube Modeling in CAD Systems

Authors:

Abstract

In this note we present a symbolic-numeric method to the problem of tube modeling in CAD systems. Our approach is based on the Kirchhoff kinetic analogy which allows us to find analytic solutions to the static Kirchhoff equa- tions for rods under given boundary conditions. Keywords: Kirchhoff rod; boundary value problems; automatic differentiation
A Symbolic-Numeric Approach to Tube Modeling in
CAD Systems
Gerrit Sobottka and Andreas Weber
Institut f¨
ur Informatik II, Universit¨
at Bonn, R¨
omerstr. 164, Bonn, Germany
E-mail: {sobottka,weber}@cs.uni-bonn.de
Abstract. In this note we present a symbolic-numeric method to the problem of
tube modeling in CAD systems. Our approach is based on the Kirchhoff kinetic
analogy which allows us to find analytic solutions to the static Kirchhoff equa-
tions for rods under given boundary conditions.
Keywords: Kirchhoff rod; boundary value problems; automatic differentiation
1 Introduction
In this short note we address the problem of physics based tube modeling which fre-
quently occurs in computer aided design (CAD) applications. The task at hand is to
connect a tube of given length and with certain material properties to connectors fixed
in space. In particular, we aim to predict the internal forces and torques along the tube
for dimensioning purposes as well as the final configuration. The equilibrium shape
of the tube is governed by the well known static Kirchhoff equations. Along with the
boundary conditions at both ends defined by the position and orientation of the con-
nectors we have to solve a two-point boundary value problem (BVP). Such BVPs can
be solved employing standard shooting techniques which usually perform at slow con-
vergence rates. Our approach is based on the analytic solution to the static Kirchhoff
equations and is a continuation of our work described in [1], to which we refer for more
details on the basis of the method. In addition to adding a new case of boundary con-
ditions we will also show how the “symbolic-numeric method” introduced in [1] can
be made “more symbolic” by using the Jacobian Matrix in symbolic form within the
numerical part.
2 Related Work
While the number of publications on solution methods for Kirchhoff equations is large,
the task of tube modeling based on these equations has rarely been addressed before.
Gr´
egoire and Sch¨
omer [2] use an extended spring-mass system that is solved with an
energy minimizing algorithm. In [3] Healey and Metha present a method to solve asso-
ciated BVPs by augmenting the system of boundary conditions by a constraint on the
magnitude of the quaternions used for the parameterization of the rotations. In particu-
lar, they show that if these constraints are met at the end points they are also met on the
2
whole domain. In [4] a geometrically exact approach is proposed, which is based on the
explicit solution of the kinematic relation based on Rodriguez’ formula. Henderson and
Neukirch [5] study spatial equilibria of clamped elastica based on Kirchhoff rods. In
contrast to their work we do not restrict ourselves to the case where the tangents at the
end points are collinear. In [6] Nizette and Goriely study explicit solution of the static
Kirchhoff equations in terms of Euler-Kirchhoff filaments.
3 Physics Based Tube Modeling
3.1 The symbolic part
Let r(s):[a1, a2]R7→ R3be the centerline of the tube. The centerline is furnished
with a set of right-handed orthonormal triads {d1,d2,d3},such that d3=r0is the
tangent of the centerline and d1,d2span the cross section plane at each point of the
rod. Further, we assume the tube to be inextensible, unshearable, and initially straight.
The equilibrium state is given by the static Kirchhoff equations:
F0=0,(1)
M0+d3×F=0,(2)
M=u1·d1+u2·d2+b·u3·d3,(3)
where Fand Mare the internal force and the torque of the rod. Note that since we as-
sume the tube to have a circular cross section we use the scaled form of the constitutive
equation for M,where b= 1/(1 + ν)with νbeing Poisson’s ratio.
Further, we have the kinematic relation di=u×di,where u={u1, u2, u3}is
the twist vector. The components of the twist vector as well as the local directors {di}
are conveniently expressed in terms of Euler angles (ϕ, θ, ψ)w.r.t. to the global frame
{ex,ey,ez}.With
F=F·ez,(4)
M0
z=M0
z·ez= 0,(5)
M0
3=M0
3·d3= 0,(6)
H=1
2·M·u+F·d3,(7)
being first integrals, which do not depend on the arc length parameter, we obtain the
following equations for the Euler angles:
ϕ0=MzM3·z
1z2,(8)
ψ0=M3Mz·z
1z2+M3·1
b1,(9)
z02= 2F·(hz)·1z2(MzM3·z)2,(10)
where z= cos θand h= 1/F ·HM2
3/2b.The right hand side of z02is a cubic
polynomial in zwith the roots z1, z2, z3,such that 1z1z21z3. The
3
solution is given by
z=z1+ (z2z1)·sn2[λ(s+s0), k],(11)
where λ=p1/2·F·(z3z1), k =p(z2z1)/(z3z1),and sn is one of the Ja-
cobi elliptic function. With the function zat hand the solutions for ϕand ψare obtained
by directly integrating the above equations [1]:
ϕ=Zs
0
MzM3·z(σ)
1z2(σ)dσ+ϕ0,(12)
ψ=Zs
0
M3Mz·z(σ)
1z2(σ)dσ+ψ0+M3·s·1
b1.(13)
Since the system integral His a function of θand θ0[1] the set of quanti-
ties determining the configurations of the centerline of the tube is given by η=
{F, Mz, M3, θ(0), θ(0)0}.
Since the tube is clamped at s= 0 and can freely rotate at the other end (s=L) the
boundary conditions imposed by the underlying problem are thus given as r(0) = x0,
d1(0) = d10,d2(0) = d20 ,r(L) = xLand hd3(L),tLi= 1,where xLand tLare the
coordinates of the point and the tangent to be matched at s=L.
3.2 Numerical computations
Thus the solution of this two point boundary value problem is reduced to the solution
of the following set F(η) = 0 of non-linear equations:
r(L)xL= 0,
1 hd3,tLi= 0,
θ0θ0
0= 0.
(14)
Standard numeric solution techniques [7,8] require that the Jacobian matrix is
known numerically at every iteration point. These methods use numeric approxima-
tions to the partial derivatives at the iteration points, if those are not given as program
code. As we have derived a symbolic expression for the function F, we will show how
we can come up with rather efficient code for the Jacobian, too.
4 Using the Jacobian Matrix in Symbolic Form
Using the common subexpression elimination algorithm of Maple the function Fcan
be described by a computation sequence involving the following number of commands:
43 assignments + 29 additions + 65multiplications + 5 divisions
+19 functions + 5integrals (15)
The 19 function evaluations consist of 9 trigonometric and square root functions and
10 instances of the Jacobi elliptic functions sn. The 5 integrals come from the necessity
to have the centerline of the space curve available in a form that allows for boundary
4
conditions at two distinct points, i.e. to explicitly carry the integration of the tangent
vector [1,6].
Standard tools for automatic differentiation and also the automatic differentiation
procedure available in Maple cannot handle integral operators in their inputs. Thus we
could not use a straight-forward automatic differentiation approach on the computation
sequence of Fto obtain a computation sequence for the Jacobian matrix.
Whereas the symbolic differentiation algorithm of Maple can handle occurring in-
tegrals, the symbolic expression representing Fwas too large for a straight-forward
symbolic differentiation.
However, with the following method we successfully derived symbolic computation
sequences for the Jacobian matrix.
We used auxiliary symbolic functions for the roots z1,z2, and z3of the cubic poly-
nomial occurring on the right-hand-side of (10) and its partial derivatives.
Using these auxiliary functions in the expression of Fwe could successfully com-
pute the Jacobian matrix in symbolic form using Maple.
This computation required several minutes of computation time.
A computation sequence could be obtained by Maple generated from the expres-
sions of the Jacobian and assignment of the expressions of the roots z1,z2, and z3
and its partial derivatives to the auxiliary symbolic functions.
Notice that all symbolic partial derivatives of the expressions of the roots z1,z2,
and z3could be obtained by Maple easily.
Using the optimize function on computational sequences the result for computing
the Jacobian required the following number of commands:
260 assignments + 174 additions + 419 multiplications
+31 divisions + 76 functions + 24 integrals (16)
Notice that because of the symbolic differentiation rules for “special functions”
used by Maple the computation sequence contains calls to various of Jacobi’s elliptic
function and also to incomplete elliptic integrals of the second kind.
Remark. If equation (14) is solved via a corresponding minimization problem of a
real valued function mF, then the gradient function of mFcan be expressed in symbolic
form similarly. The computational costs for this gradient after common subexpression
elimination is almost identical to the one for the Jacobian after common subexpression
evaluation, i.e. is also given by the number of commands stated in (16).
References
1. Liu, S., Weber, A.: A symbolic-numeric method for solving boundary value problems of
Kirchhoff rods. In Ganzha, V.G., Mayr, E.W., Vorozhtsov, E.V., eds.: Computer Algebra
in Scientific Computing (CASC ’05). Volume 3718 of Lecture Notes in Computer Science.,
Kalamata, Greece, Springer-Verlag (2005) 387–398
2. Gr´
egoire, M., Sch¨
omer, E.: Interactive simulation of one-dimensional flexible parts. In: SPM
’06: Proceedings of the 2006 ACM symposium on Solid and physical modeling, Cardiff,
Wales, United Kingdom, ACM Press (2006) 95–103
5
3. Healey, T.J., Mehta, P.G.: Straightforward computation of spatial equilibria of geometrically
exact Cosserat rods (2003) http://tam.cornell.edu/Healey.html.
4. Simo, J.C., Vu-Quoc, L.: On the dynamics in space of rods undergoing large motions a
geometrically exact approach. Computer Methods in Applied Mechanics and Engineering 66
(1988) 125–161
5. Henderson, M.E., Neukirch, S.: Classification of the spatial equilibria of the clamped elastica:
numerical continuation of the solution set. International Journal of Bifurcation and Chaos 14
(2004) 1223–1239
6. Nizette, M., Goriely, A.: Towards a classification of Euler-Kirchhoff filaments. Journal of
Mathematical Physics 40 (1999) 2830–2866
7. Hopkins, T.R., Phillips, C.: Numerical Methods in Practice A Guide to the NAG Library.
Addison-Wesley, Reading, MA, USA (1988)
8. Press, W.H., Teukolsky, S.A., Vetterling, W.T., Flannery, B.P.: Numerical Recipes in C++,
Second Edition. Cambridge University Press (2002)
... By now, there is analytical method and numerical method. The former uses Euler angles as variables to get the change law along the arc coordinate [4,5] while the latter uses Euler parameters to discrete a cable to ensure the minimum potential energy of all parts [6,7]. In fact the two solving methods have certain simplification or hypothesis, so the model also contains certain error but few experiments have been done to verify solving methods in references. ...
... According to references [3,4], cable geometry configuration could be reflected by translation and rotation of the cable cross-section along the centerline, shown as Figure 1. A fixed reference system O-ξηζ and the Frenet system of cable cross-section P-NBT are established. ...
... To get cable geometry configuration, it is necessary to calculate the coordinates in the fixed reference system according to the Euler angle change law along the arc coordinate. In references [3,4], the coordinates (ξ, η, ζ) is got by rotation matrix of the two reference systems. Unfortunately, the calculation process is very complex, even mathematical calculation software could not realize but detailed calculation process did not be expressed in the two references. ...
Article
Full-text available
For large complex electromechanical products, cable digital design has a problem of low accuracy because of its large deformable characteristics. To solve the problem, an efficacious method is proposed to do cable geometry physical modeling, simulation and test for two-end constrained spatial flexible cables. Euler angles are used as generalized parametric variables to describe cable configuration on the base of Kirchhoff elastic rod theory. Via establishment of a cylindrical coordinate system according to Saint-Venant principle using end constraint, Euler angles’ Analytical solutions of the Kirchhoff equations are gained. Based on an open source geometry kernel system and using numerical integration ideas, a cable configuration simulation platform is developed in C++ environments. Then, a cable geometry measurement bench is founded with the use of 3D laser scan technology. Finally, a cable configuration simulation and experimental example is given to verify the accuracy of the proposed model and relative algorithm, through 3D positional deviation analysis.
... Liu and Weber (2005) presented a symbol-numerical integration method for hair simulation that can be applied at different boundary conditions. A unified method was developed to match the parameters and integration constants required by the explicit solutions and given boundary conditions (Sobottka and Weber, 2006). ...
... A symbolic method was developed to solve boundary condition problems associated with static Kirchhoff equations, which are uniformly adapted to different boundary conditions. The approaches that are most closely related to the works presented in this paper are described in the works of Liu and Weber (2005) and Sobottka and Weber (2006), wherein an Euler angle-based integration was developed. However, these reports did not describe the conversion of the arc coordinates into Cartesian coordinates, which are very difficult to realize. ...
Article
Full-text available
Purpose In this study, a modeling method for a clamped deformable cable simulation based on Kirchhoff theory is proposed. This methodology can be used to describe the physical deformation configuration of any constrained flexible cable in a computer-aided design/manufacturing system. The modeling method, solution algorithm, simulation and experimental results are presented to prove the feasibility of the proposed methodology. The paper aims to discuss these issues. Design/methodology/approach First, Kirchhoff equations for deformable cables are proposed based on the nonlinear mechanics of thin elastic rods, and the general solution of the equations described by the Euler angles is given in the arc coordinate system. The parametric form solution of the Kirchhoff equations, which is easy to use, is then obtained in a cylindrical coordinate form based on Saint Venant’s theory. Finally, mathematical expressions that reflect the clamped cable configuration are given, and the deformable process is simulated based on an open source geometry kernel and is then tested by a 3D laser scanning technology. Findings The method presented in this paper can be adapted to any boundary condition for constrained cables as long as the external force and torque are known. The experimental results indicate that both the model and algorithm are efficient and accurate. Research limitations/implications A more comprehensive study must be executed for the physical simulation of more complicated constrained cables, such as the helical spring and asymmetric constraint. The influence of the material properties of the cable on the calculation efficiency must be considered in future analysis. Originality/value The semi-analytical algorithm of the cable simulation in cylindrical coordinates is a novel topic and is more accurate and efficient than the common numerical solution.
Conference Paper
The efficient accurate modeling of thin, approximately one-dimensional structures, like cables, fibers, threads, tubes, wires, etc. in CAD systems is a complicated task since the dynamical behavior has to be computed at interactive frame rates to enable a productive workflow. Traditional physical methods often have the deficiency that the solution process is expensive and heavily dependent on minor details of the underlying geometry and the configuration of the applied numerical solver. In contrast, pure geometrical methods are not able to handle all occurring effects in an accurate way. To overcome this shortcomings, we present a novel and general hybrid physical-geometric approach: the structure’s dynamics is handled in a physically accurate way based on the special Cosserat theory of rods capable of capturing effects like bending, twisting, shearing, and extension deformations, while collisions are resolved using a fast geometric sweep strategy which is robust under different numerical and geometric resolutions. As a result, fast editable high quality tubes can easily be designed including their dynamical behavior.
Article
Full-text available
The dynamics of a fully nonlinear rod model, capable of undergoing finite bending, shearing, and extension, is considered in detail. Unlike traditional nonlinear structural dynamics formulations, due to the effect of finite rotations the deformation map takes values in 3 × SO(3), which is a differentiable manifold and not a linear space. An implicit time stepping algorithm that furnishes a canonical extension of the classical Newmark algorithm to the rotation group (SO(3)) is developed. In addition to second-order accuracy, the proposed algorithm reduces exactly to the plane formulation. Moreover, the exact linearization of the algorithm and associated configuration update is obtained in closed form, leading to a configuration-dependent nonsymmetric tangent inertia matrix. As a result, quadratic rate of convergence is attained in a Newton-Raphson iterative solution strategy. The generality of the proposed formulation is demonstrated through several numerical examples that include finite vibration, centrifugal stiffening of a fast rotating beam, dynamic instability and snap-through, and large overall motions of a free-free flexible beam. Complete details on implementation are given in three appendices.
Conference Paper
Full-text available
We study solution methods for boundary value problems associated with the static Kirchhoff rod equations. Using the well known Kirchhoff kinetic analogy between the equations describing the spinning top in a gravity field and spatial rods, the static Kirchhoff rod equations can be fully integrated. We first give an explicit form of a general solution of the static Kirchhoff equations in parametric form that is easy to use. Then by combining the explicit solution with a minimization scheme, we develop a unified method to match the parameters and integration constants needed by the explicit solutions and given boundary conditions. The method presented in the paper can be adapted to a variety of boundary conditions. We detail our method on two commonly used boundary conditions.
Article
Full-text available
We consider equilibrium configurations of inextensible, unshearable, isotropic, uniform and naturally straight and prismatic rods when subject to end loads and clamped boundary conditions. In a first paper [Neukirch & Henderson, 2002], we discussed symmetry properties of the equilibrium configurations of the center line of the rod. Here, we are interested in the set of all parameter values that yield equilibrium configurations that fulfill clamped boundary conditions. We call this set the solution manifold and we compute it using a recently introduced continuation algorithm. We then describe the topology of this manifold and how it comprises different interconnected layers. We show that the border set of the different layers is the well-known solution set of buckled rings.
Conference Paper
In this paper, we present a system for simulating one dimensional flexible parts such as cables or hoses. The modeling of bending and torsion follows the Cosserat model. For this purpose we use a generalized spring-mass system and describe its configuration by a care- fully 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 neighboring 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.
Article
Euler-Kirchho# filaments are solutions of the static Kirchho# equations for elastic rods with circular cross-sections. These equations are known to be formally equivalent to the Euler equations for spinning tops. This equivalence is used to provide a classification of the di#erent shapes a filament can assume. Explicit formulas for the di#erent possible configurations and specific results for interesting particular cases are given. In particular, conditions for which the filament has points of self-intersection, self-tangency, vanishing curvature or when it is closed or localized in space are provided. The average properties of generic filaments are also studied. They are shown to be equivalent to helical filaments on long length scales. KEYWORDS: Rods, Spinning tops, Kirchho# equations, Elliptic functions. PACS: 46.30.Cn, 03.20.+i I Introduction The study of elastic deformations in rods has a long tradition in mathematics, physics and engineering, dating back to Euler and Lagrange. E...
Interactive simulation of one-dimensional flexible parts Straightforward computation of spatial equilibria of geometrically exact Cosserat rods
  • M Grégoire
  • E Schömer
  • T J Healey
  • P G Mehta
Grégoire, M., Schömer, E.: Interactive simulation of one-dimensional flexible parts. In: SPM '06: Proceedings of the 2006 ACM symposium on Solid and physical modeling, Cardiff, Wales, United Kingdom, ACM Press (2006) 95–103 5 3. Healey, T.J., Mehta, P.G.: Straightforward computation of spatial equilibria of geometrically exact Cosserat rods (2003) http://tam.cornell.edu/Healey.html.
Numerical Methods in Practice - A Guide to the NAG Library
  • T R Hopkins
  • C Phillips
  • T.R. Hopkins