arXiv:2610.36407cs.ROOct 2026

Manuscript Offprint

arXiv:2610.36407

A 2-DOF MultiBody Track Joint for Race Car Optimization

Srikanth Sivaramakrishnan, Behzad Danaei, Adwait Verulkar, Ryan Trinter

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

TrackJoint is a Modelica MultiBody component that turns a three-dimensional road surface into a joint with two degrees of freedom. The two joint coordinates are the distance travelled along a reference line and the sideways offset from that line. Together they give the position, orientation and angular velocity of a single frame_b connector. All road geometry reaches the joint as a small set of periodic piecewise-quintic splines, so one component can represent any circuit whose splines have been fitted beforehand. The road constraint is closed with d'Alembert's principle. The two generalized forces that belong to the joint coordinates are set to zero, so no Lagrange multipliers are needed. The joint is connected to a multibody race car in Dymola and the pair is exported as one FMI 3.0 FMU. The same FMU is then used for time-domain simulation and for CasADi/IPOPT minimum lap-time optimization, with no change to the model in between. This works because the joint keeps the arc-length coordinate as a real state and publishes its time derivative, which is the quantity that lets the problem be rewritten with distance We report results for minimum lap time simulations on the Singapore Formula 1 circuit.

Keywords: Modelica, MultiBody, Functional Mockup Unit, race car simulation, minimum lap time, track model, Monge patch, kinematic joint, d'Alembert principle, optimal control, optimization, CasADi, FMIOPT

1 Introduction

Race-car simulation in Modelica relies on a road model that generates accurate surface geometry in terms of position, orientation and angular velocity for each tire contact patch. Inside a generic MultiBody vehicle simulation this is naturally expressed by a Modelica joint that constrains the chassis of the vehicle to lie on the road surface while leaving the in-plane road coordinates free. For ideal flat surfaces this role is filled by Modelica.Mechanics.MultiBody.Joints.Planar. Although analytically defined ribbons have been used in earlier race-car work (Perantoni and Limebeer 2015; Lovato et al. 2021), they are typically hand-coded inside a surrogate optimization model rather than packaged as a reusable MultiBody component. The idea of a reusable path-following joint that constrains motion to a spline-parametrized curve has been formulated symbolically in a graph-theoretic multibody setting by Hall et al. (2014). This method is used to reduce complex automotive suspension linkages into a single degree-of-freedom joint for computational efficiency. A more closely related precedent is the Claytex.Mechanics.MultiBody.Joints.Rail joint of the commercial Claytex library (Briant 2021), which constrains a frame_b to follow a one-dimensional B-spline rail parametrized by arc length s and resolves the wrench through the spline-derivative projection that we also adopt below. The Claytex component is, however, restricted to a curve: it leaves a single translational degree of freedom and exposes the orientation either as a heading frame slaved to the rail tangent or as three independent angle splines.

This paper presents TrackJoint, a Modelica Multi-Body joint that takes the Claytex Rail idea as its starting point and extends it from a 1-DOF rail to a 2-DOF Monge-patch racetrack surface. The body is now free to move both along a planar reference line (s) and laterally across it (w); the orientation triad is constructed analytically from the surface partials rather than from a separate angle table; and the wrench is closed by two d'Alembert relations rather than one. The underlying surface model is the Monge patch (Limebeer and van de Merwe 2025; do Carmo 1976)

rb(s,w)=r(s)+wng(s)+z(s,w)ez,(1)\boldsymbol{r}_{b}(s,w)=\boldsymbol{r}(s)+w\boldsymbol{n}_{g}(s)+z(s,w)\boldsymbol{e}_{z}, \tag{1}

where rb(s,w)\boldsymbol{r}_{b}(s,w) is the world-frame position of the track point identified by (s,w)(s,w), r(s)=(rx(s),ry(s),0)\boldsymbol{r}(s)=(r_{x}(s),r_{y}(s),0) is the planar reference line, ng(s)=(−∂sry(s),∂srx(s),0)\boldsymbol{n}_{g}(s)=(-\partial_{s}r_{y}(s),\partial_{s}r_{x}(s),0) its ground-plane left normal and

z(s,w)=rz(s)+z1(s)w+z2(s)w2+z3(s)w3(2)z(s,w)=r_{z}(s)+z_{1}(s)w+z_{2}(s)w^{2}+z_{3}(s)w^{3} \tag{2}

the lateral cubic in w proposed by Limebeer and van de Merwe (2025) for elevation. The six channel splines {rx,ry,rz,z1,z2,z3}\{r_x, r_y, r_z, z_1, z_2, z_3\} are obtained from a separate fitting pipeline that processes a measured racetrack point cloud and exports them as periodic piecewise-quintic ( C4C^4 at the knots) B-splines anchored on the minimum-curvature line of the circuit (Verulkar et al. 2026; Heilmeier et al. 2020; Braghin et al. 2008). Here (ex,ey,ez)(e_x, e_y, e_z) denotes the fixed world Cartesian basis. The present paper takes those splines as given and concentrates on the Modelica joint that consumes them.

The contribution of this paper is a Modelica implementation of a track joint that exposes the road surface as a single reusable MultiBody component suitable for both time-domain simulation and optimization. For efficiency the per-step evaluation is implemented with Horner expansion of the Monge cubic, constant-time segment lookup on the uniform break vector and a shared spline evaluator, so that the same component is cheap to evaluate at every collocation point of a CasADi/IPOPT (Andersson et al. 2019; Wächter and Biegler 2006) minimum lap-time problem. The model also ensures sufficient accuracy to the LiDAR measurements of the track and can be used in time-domain simulation of a multibody race car driven around a closed circuit.

The remainder of the paper is organized as follows. Section 2 recalls the Monge-patch surface formulation and fixes the notation used by the joint. Section 3 derives the joint equations from (1)–(2). Section 4 discusses the Modelica implementation and the FMI export. Section 5 reports the two downstream use cases.