Next Article in Journal
Path Planning in Sparse Reward Environments: A DQN Approach with Adaptive Reward Shaping and Curriculum Learning
Next Article in Special Issue
Properties of Some Classes of Structured Minmaxmin Problems
Previous Article in Journal
Non-Imaging Differential Diagnosis of Lower Limb Osteoarthritis: An Interpretable Machine Learning Framework
Previous Article in Special Issue
A Duality Framework for Mathematical Programs with Tangential Subdifferentials
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Collision of an Obstacle by an Elastic Bar in a Gravity Field: Solution with Discontinuous Velocity and Space-Time Primal-Dual Active Set Algorithm

by
Victor A. Kovtunenko
1,2
1
Department of Mathematics and Scientific Computing, Karl-Franzens University of Graz, NAWI Graz, Heinrichstr. 36, 8010 Graz, Austria
2
Siberian Division of the Russian Academy of Sciences, Lavrentyev Institute of Hydrodynamics, Novosibirsk 630090, Russia
Algorithms 2026, 19(1), 88; https://doi.org/10.3390/a19010088
Submission received: 16 December 2025 / Revised: 9 January 2026 / Accepted: 14 January 2026 / Published: 20 January 2026
(This article belongs to the Special Issue Nonsmooth Optimization and Its Applications)

Abstract

A class of one-dimensional dynamic impact models is investigated with respect to non-smooth velocities using variational inequalities and space-time finite element approximation. For the problem of collision of a rigid obstacle by an elastic bar in the gravitational field, a benchmark based on particular solutions to the wave equation is constructed on a partition of rectangle domains. The full discretization of the collision problem is carried out over a uniform space-time triangulation and extended to distorted meshes. For the solution of the corresponding variational inequality, a semi-smooth Newton-based primal-dual active set algorithm is applied. Numerical experiments demonstrate advantages over time-step approximation: a high-precision numerical solution is computed in a few iterations without any spurious oscillations.

1. Introduction

We study a class of dynamic contact and impact models with discontinuous velocities, whose motion is described by the one-dimensional (1D) wave equation. The space-time (ST) finite-element (FE) approximation provides us with a weak solution to evolutionary problems in a variational setting [1,2,3]. For benchmarking, the collision of a rigid obstacle by an initially undeformed elastic bar moving with an initial speed is considered in a gravity field. A benchmark solution before rebound is constructed analytically along characteristics of the wave equation, comprising piecewise quadratic functions. Approximate iterative solutions after rebound are computed by the use of a space-time primal-dual active set (PDAS) algorithm stemming from semi-smooth Newton (SSN) methods [4,5,6]. For implementation issues of the PDAS for contact dynamic models, we cite [7,8,9].
The general context of stationary and dynamic modeling in contact mechanics can be found in [10,11,12]. We refer to the existence of solutions to hyperbolic variational inequalities established in [13,14,15], in particular, to the boundary obstacle problem for a wave equation considered in [16,17,18,19]. Relevant results for parabolic variational inequalities are given in [20,21,22]. We cite optimization-based methods for evolutionary models [23,24,25,26], their controllability [27,28], asymptotic analysis [29,30,31] and regularization framework [32,33,34]. The variational theory of constrained optimization problems describing non-smooth contact of elastic bodies, in particular non-penetrating cracks, was developed in [35,36,37] and other works. Within the broader context of nonlinear dynamic modeling and vibration control in complex mechanical systems, we mention some relationships between impact noise and vibration acoustics, e.g., see the real-world application to underwater vehicles in [38].
For the Galerkin method and FE approximation of time-dependent problems, we refer the readers to [39,40,41], in particular, to the 1D linear elastodynamic problem with unilateral constraints [42]. Assuming smooth velocities, there was developed a Hilber–Hughes–Taylor α -method, which generalizes the Newmark family of time-stepping schemes; see [43,44,45]. Within the theory of measure differential inclusions, a time-stepping concept is elaborated when a discontinuous velocity is multiplied by the restitution coefficient. In this way, the dynamic of an impacting bar was treated numerically in [46] in accordance with experimental studies from [47].
In contact dynamics, even well-established time-stepping methods meet principal difficulties encountering instability. On the one hand, a solution may start to oscillate in contact nodes and rapidly collapse by decreasing step size. On the other hand, when spurious oscillations are suppressed by damping, mechanical energy may become dissipative in time. For remedy, in [48,49,50] we suggested a new method of space-time approximation accounting for non-smooth velocities, which is based on the PDAS iterative algorithm over uniform ST-triangulations. The ST-PDAS solution is of high precision and free of spurious oscillations, whereas the energy is non-dissipative.
For the benchmarks, in [48,49,50], there were derived in the closed form non-smooth solutions to a 1D wave equation constrained by a boundary obstacle under different initial and boundary data. Avoiding damping and conservative forces, the analytical solution in the space-time domain was given by piecewise linear functions comprised along characteristics of the wave equation within arbitrary times. In the current contribution, we adapt the ST-PDAS algorithm for treatment of the 1D wave equation in a gravity field. In this case, a nonlinear solution can comprise piecewise quadratic functions on a partition of the space-time domain within some proper time bound. The non-linearity challenges obtaining novel theoretical and numerical results. Namely, the main new elements are the inclusion of a constant gravity force, the construction of a non-smooth analytical benchmark solution (see Theorem 1), and the associated numerical tests. In the presence of gravity, we can express the solution to the collision problem in the closed form only prior to rebound.
To gain insight into the principal difficulty here, we consider an example model in one variable describing the motion of a point mass with the gravity g < 0 starting at t = 0 at the deep x = H < 0 ; see the illustration in the left plot of Figure 1. After scaling by mass, we will consider the unit of g to be velocity over time. Initiated by the speed v 0 > 0 , the mass moves in time t > 0 upwards along the trajectory x = H + v 0 t g t 2 / 2 until colliding with the obstacle x = 0 at the time τ > 0 that solves the quadratic equation
H + v 0 τ g 2 τ 2 = 0 .
The collision time justifying (1) is calculated as follows:
τ = v 0 v 0 2 2 g H g = 2 H v 0 + v 0 2 2 g H for v 0 2 g H .
The trajectory x = u ( t ) can be described by the following nonlinear Cauchy problem:
u t t ( t ) = λ ( t ) g , 0 u ( t ) λ ( t ) 0 for t > 0 , u ( 0 ) = H , u t ( 0 ) = v 0 .
Here we use the subscript t on a variable, which is common shorthand for the time derivative, and the subscript t t for the second time derivative. The contact conditions in (3) are given in the complementarity form, where λ implies a non-tensile contact force. The problem allows multiple solutions after collision,
u ( t ) = ( t τ ) v 0 g 2 ( t + τ ) , λ ( t ) = 0 for t [ 0 , τ ) , u ( t ) = 0 , λ ( t ) = g for t [ τ , r ) , u ( t ) = ( r t ) v 1 g 2 ( r t ) , λ ( t ) = 0 for t r ,
with an arbitrary rebound velocity v 1 0 at an arbitrary rebound time r τ . In the derivation of expression (4) we have used the identity (1). The solution is non-smooth, obeying discontinuous velocity and distributional acceleration. A non-unique trajectory x = u ( t ) is drawn in the right plot of Figure 1. We extend the point-mass model to an elastic 1D bar. We construct a solution analytically before rebound starts and use it as a benchmark for computer simulation. After rebound, a numerical solution is computed.
The structure of the paper is the following: The dynamic contact problem for an initially undeformed elastic bar, which moves with an initial speed in the gravitational field and collides with a rigid half-space obstacle, is formulated in Section 2. The primal-dual variational formulation of the collision problem is introduced in a 2D space-time rectangle. We construct analytically its weak solution, allowing discontinuous velocity and mechanical strain on a partition along characteristics of the equation of motion before rebound. This provides us with a benchmark for computer simulations implemented by piecewise linear FEM over uniform ST-triangulation in Section 3. We adapt an ST-PDAS algorithm for iteration of the complementarity conditions. In Section 4, the displacement field on the contact boundary and mechanical energy are examined with respect to the numerical error under decreasing step size. From our experiments we conclude that the ST-PDAS solution is of high precision and free of spurious oscillations. In Section 5, a globalization strategy based on the use of finite differences is suggested for distorted meshes to preserve the contact force balance.

2. Weak Solution to Collision Problem in Gravity Field

We consider a uniform linear elastic bar of length L > 0 , unit mass and rigidity, which allows either tension or compression strain. Let the bar in its undeformed state occupy the space interval x [ H L , H ] posed vertically at the deep H < 0 below the origin. It starts motion upwards with the prescribed initial speed v 0 > 0 at t = 0 under the gravity g < 0 scaled by mass; see the illustration in Figure 2.
In the ST-rectangle Q : = ( 0 , T ) × ( 0 , L ) with the boundary Q and some final time T > 0 , the bar displacement u ( t , x ) is described by the wave equation
u t t ( t , x ) u x x ( t , x ) = g for ( t , x ) Q ,
and supported by initial conditions at t = 0 ,
u ( 0 , x ) = H , u t ( 0 , x ) = v 0 for x ( 0 , L ) .
Here and thereafter, the subscripts with respect to t and x stand for partial derivatives. When t = 0 and x ( 0 , L ) , the position of the elastic bar is x L + u ( 0 , x ) ( H L , H ) . We assume that the bar is free at one end, x = 0 , which is described by zero strain,
u x ( t , 0 ) = 0 for t ( 0 , T ) ,
and it collides with the rigid obstacle at the other end x = L . The non-penetration is described by complementarity conditions at the contact boundary Γ : = { t ( 0 , T ) , x = L } ,
0 u ( t , L ) λ ( t ) 0 for t ( 0 , T ) .
In (8), λ stands for the normal contact force, which in case of smooth functions equals the normal reaction
λ ( t ) = u x ( t , L ) for t ( 0 , T ) .
Next we derive a variational formulation to the boundary value problem (Equations (5)–(9)).
For smooth functions u , v in the closure Q ¯ : = Q Q , the following Green formula holds
Q ( u t t u x x ) v d x d t = Q ( u t v t + u x v x ) d x d t + 0 L u t v d x | t = 0 T 0 T u x v d t | x = 0 L .
Multiplying the wave Equation (5) with a smooth function v ( t , x ) in Q ¯ and integrating by parts over Q, with the help of Green’s formula and conditions (Equations (6), (7) and (9)) we get
Q g v d x d t = Q ( u t v t + u x v x ) d x d t 0 L v 0 v | t = 0 d x 0 T λ v | x = L d t
for test functions such that
v ( T , x ) = 0 for x ( 0 , L ) .
Conditions prescribed either at initial time by Equation (6) or at final time by Equation (11) distinguish the linear sub-spaces,
H 0 1 ( 0 , T ) : = { v H 1 ( 0 , T ) , v ( 0 ) = 0 } , H 0 1 ( 0 , T ) : = { v H 1 ( 0 , T ) , v ( T ) = 0 } .
Within the Petrov–Galerkin concept, we look for a weak solution in the trial space,
V 0 : = L 2 ( 0 , T ; H 1 ( 0 , L ) ) H 0 1 ( 0 , T ; L 2 ( 0 , L ) ) ,
justifying Equation (10) for functions v from the test space,
V 0 : = L 2 ( 0 , T ; H 1 ( 0 , L ) ) H 0 1 ( 0 , T ; L 2 ( 0 , L ) ) .
Namely, we find the pair ( u + H , λ ) V 0 × L 2 ( 0 , T ) such that
u ( t , L ) 0 , λ ( t ) 0 for t ( 0 , T ) , 0 T λ u | x = L d t = 0 , Q ( u t v t + u x v x + g v ) d x d t 0 L v 0 v | t = 0 d x = 0 T λ v | x = L d t
for all test functions v V 0 . In the case of a smooth solution u H 2 ( Q ) , variational Equation (12) follows that Equations (5)–(9) hold pointwise.
It is worth noting that, if variational smoothness u H 1 ( 0 , L ) holds only, then strain u x on the contact boundary at x = L associated in Equation (9) to λ is determined generally as the H 1 / 2 -distribution. In this case, reducing λ from the primal-dual formulation (Equation (12)), we can relax it to the variational inequality. Find u + H V 0 such that
u ( t , L ) 0 for t ( 0 , T ) , Q u t ( v t u t ) + u x ( v x u x ) + g ( v u ) d x d t 0 L v 0 ( v | t = 0 + H ) d x 0 for all v u V 0 such that v ( t , L ) 0 for t ( 0 , T ) .
The contact force λ can be recovered from Equation (10). For T τ + L before rebound starts, we construct a weak solution to the boundary value problem (Equations (5)–(9)), hence to variational problems (Equations (12) and (13)), in the closed form.
Theorem 1.
For the collision time τ determined in Equations (1) and (2) and the final time T = τ + L , let the gravitational force g and initial speed v 0 satisfy the bilateral bounds
g L v 0 g τ 1 .
On the partition of the rectangle Q ¯ = I A along straight-line characteristics into two sets,
I : = ( t , x ) Q ¯ : x L τ t , A : = ( t , x ) Q ¯ : x L τ t ,
solution to the collision problem (Equations (5)–(9)) is given by explicit formula
u ( t , x ) = ( t τ ) v 0 g 2 ( t + τ ) in I , ( L x ) v 0 g t + g 2 ( L x ) in A ,
with the contact force on the contact boundary,
λ ( t ) = 0 on Γ I , v 0 + g t on Γ A .
Moreover, it not penetrates the obstacle over all space-time points,
u L x for ( t , x ) Q ¯
The mechanical energy of the bar defined by the time-dependent integral formula
E ( t ) : = 1 2 0 L ( u t 2 + u x 2 ) d x for t [ 0 , T ]
is comprised by the following functions:
E ( t ) = 1 2 L ( v 0 g t ) 2 for t [ 0 , τ ) , 1 2 L ( v 0 g t ) 2 + 1 2 g ( v 0 g t ) ( t τ ) 2 + 1 3 g 2 ( t τ ) 3 for t [ τ , τ + L ] .
For convenience, the partition in Equation (15) is drawn in Figure 3.
Before starting a proof, we give a physical interpretation to the bilateral bounds in Equation (14). In virtue of Equation (2), v 0 g τ = v 0 2 2 g H 0 . From one side, if v 0 g τ < g L , then the initial speed v 0 is too low for the elastic wave to reach the endpoint x = 0 at t = τ + L before the bar starts leaving contact. On the other side, the upper threshold prevents too high initial speeds v 0 g τ > 1 such that the full bar would be compressed into a point (that is, u ( t , · ) = L x in Equation (18)) at some time t ( τ , τ + L ) .
Proof. 
The composition defined in Equations (16) and (17) fulfills the following:
u t = v 0 g t , u x = 0 , u t t = g , u x x = 0 in I ; u = H , u t = v 0 as t = 0 , u x = 0 as x = 0 , L on I ; u = ( t τ ) ( v 0 g 2 ( t + τ ) ) , u t u x = v 0 g t on I A ; u t = g ( L x ) , u x = v 0 + g ( t L + x ) , u t t = 0 , u x x = g in A ; u = 0 , u x = v 0 + g t as x = L , u x = 0 as x = 0 on A .
It comprises a continuous piecewise quadratic function with the continuous normal derivative u t u x across the interface I A having the normal ( 1 , 1 ) / 2 . This function satisfies the wave Equation (5), initial Equation (6) and boundary Equations (7) and (9).
We check the non-penetration condition (Equation (18)) and inequalities in Equation (8). The tensile contact force in Equation (9) needs
u x ( t , L ) = v 0 + g t 0 for t ( τ , τ + L ) .
The linear function suffices to justify Equation (22) at the end points, that is,
v 0 + g τ 0 , v 0 + g ( τ + L ) 0 ,
which is assumed within Equation (14). For all L x 0 and t τ in I, from Equation (16) we estimate
u = ( t τ ) ( v 0 g τ g 2 ( t τ ) ) ( t τ ) ( v 0 g τ ) L x for t ( 0 , τ ) ,
since it holds according to Equation (2),
0 v 0 g τ = v 0 2 2 g H .
For t τ in I, the fulfillment of upper bound,
u = ( t τ ) ( v 0 g 2 ( t + τ ) ) L x for t τ L x
at the end points t = τ and t = τ + L ,
0 v 0 g τ 1 , 0 v 0 g τ g 2 L 1 ,
is guaranteed by Equation (14). Similarly, for t τ in A, we estimate the linear term
u = ( L x ) ( v 0 g t + g 2 ( L x ) ) L x for t τ L x
at the end points ( t , x ) = ( τ , L ) and ( t , x ) = ( τ + L , 0 ) :
0 v 0 g τ 1 , 0 v 0 g τ g 2 L 1 ,
which holds true in virtue of Equation (14). Equations (23)–(25) verify together the non-penetration condition (Equation (18)) holding over the whole rectangle Q ¯ , in particular, at the contact boundary Γ within the complementarity conditions (Equation (8)).
Let us denote for brevity the jumps of u over two faces of the interface,
[ [ u ] ] = u | A I u | I A .
Green’s formula for piecewise-smooth functions u , v on the partition Q ¯ = I A gives
I A ( u t t u x x ) v d t d x = I A ( u t v t + u x v x ) d t d x I A 1 2 [ [ ( u t u x ) v ] ] d S + 0 L u t v d x | t = 0 T 0 T u x v d t | x = 0 L .
If [ [ v ] ] = 0 such that [ [ ( u t u x ) v ] ] = [ [ u t u x ] ] v , then Equation (21) yields the variational equation for test functions v V 0 ,
I A g v d t d x = I A ( u t v t + u x v x ) d t d x 0 L v 0 v | t = 0 d x 0 T u x v d t | x = L .
It follows Equation (10) with λ = u x at x = L , and variational Equations (12) and (13).
Inserting Equation (21) into Equation (19), straightforward calculation leads to Equation (20) for the mechanical energy. The proof is completed.    □
Further we will use the explicit Equations (14)–(20) from Theorem 1 for an analytical benchmark in computer simulation.

3. Full ST-FEM Discretiazation and ST-PDAS Algorithm

The full space-time discretization of the displacement u is realized over standard piecewise linear functions on uniform triangular meshes T h building the FE-space,
V h : = v h C 0 ( Q ¯ ) , v h | K P 1 ( K ) for all K T h , v h ( · , 0 ) = 0 .
The respective trial and test function FE sub-spaces are
V 0 h : = v h V h , v h ( 0 , · ) = 0 , V 0 h : = v h V h , v h ( T , · ) = 0 .
Let V h be spanned by a set of hat-shaped basis functions { ϕ h } associated with nodes ( t h , x h ) Q ¯ and supported in patches composed of adjacent triangles K T h possessing the vertex ( t h , x h ) . Next we discretize the contact force λ along the contact boundary Γ .
On Γ , the mesh T h is represented by equidistant time points t m : = h m for m = 0 , , M , with the time-step h : = T / M prescribed by integer M. These points build the partition [ 0 , T ] = m = 1 M T ¯ m into intervals T m : = ( t m 1 , t m ) . Let the basis functions ϕ 0 , , ϕ M correspond to the boundary nodes ( t 0 , L ) , , ( t M , L ) , and other ϕ h = 0 on Γ . For discrete u h V h , we approximate its discontinuous gradient by the piecewise constant function u h x ( · , L ) over T m . Inserting in Equation (26) u = u h and v = ϕ h V 0 h , we have
Q ( u h t ϕ h t + u h x ϕ h x + g ϕ h ) d x d t 0 L v 0 ϕ h | t = 0 d x = 0 T u h x ϕ h | x = L d t .
For each of ϕ h = ϕ m having the support on ( T m T m + 1 ) Γ as m = 0 , , M 1 , where T 0 : = , the integral over the contact boundary reads
0 T u h x ϕ m d t | x = L = h 2 u h x ( · , L ) | T m Γ + u h x ( · , L ) | T m + 1 Γ ϕ m | x = L .
This determines the Lagrange multiplier λ h = ( λ 1 , , λ M ) by piecewise constants
λ m : = u h x ( · , L ) | T m Γ , m = 1 , , M .
Using Equations (27)–(29) we discretize the primal-dual variational problem (Equation (12)) as follows: Find u h + H V 0 h and λ h R M such that for all basis functions ϕ h V 0 h ,
u h | T m 0 , λ m 0 , m = 1 , , M , m = 1 M λ m u h ( t m 1 , L ) + u h ( t m , L ) = 0 , Q ( u h t ϕ h t + u h x ϕ h x + g ϕ h ) d x d t 0 L v 0 ϕ h | t = 0 d x = 0 T λ h ϕ h | x = L d t .
Further we express Equation (30) in an algorithmic way.
It is useful to introduce the residuals on Γ :
r ( ϕ m ) : = Q ( u h t ϕ m t + u h x ϕ m x + g ϕ m ) d x d t 0 L v 0 ϕ m δ m 0 d x , m = 0 , , M 1 ,
which allow to calculate the Lagrange multiplier recurrently according to Equation (28),
λ 0 : = 0 , λ m + 1 = 2 h r ( ϕ m ) λ m for m = 0 , , M 1 .
If u h ( t m 1 , L ) and u h ( t m , L ) have the same sign on T m for all m, then complementarity conditions in Equation (30) can be rewritten as nonlinear equations
λ m = min ( 0 , λ m u h ( t m 1 , L ) + u h ( t m , L ) 2 ) , m = 1 , , M .
In Equation (33), either u h ( t , L ) = 0 for t T m A ( u h , λ h ) , or λ m = 0 for complementary T m I ( u h , λ h ) , where we distinguish between active and inactive intervals T m ,
A ( u h , λ h ) : = { T m : λ m u h ( t m 1 , L ) + u h ( t m , L ) 2 < 0 } , I ( u h , λ h ) : = { T ¯ m : λ m u h ( t m 1 , L ) + u h ( t m , L ) 2 0 } .
Using Equations (31)–(34), Equation (30) leads to the following implicit problem: Find u h + H V 0 h and λ h R M such that
u h ( t m 1 , L ) + u h ( t m , L ) = 0 on A ( u h , λ h ) , λ m = 0 on I ( u h , λ h ) , λ m + 1 = 2 h r ( ϕ m ) λ m for m = 0 , , M 1 , r ( ϕ h ) = 0 for ϕ h | Γ = 0 , Q ( u h t ϕ h t + u h x ϕ h x + g ϕ h ) d x d t 0 L v 0 ϕ h | t = 0 d x = r ( ϕ h )
for all basis functions ϕ h V 0 h . The primal-dual active set algorithm iterates Equation (35) over active sets (Equation (34)).
Based on our experiments, we support the initialization and iteration steps of Algorithm 1 by the following implementation hints.
  • 1a. Final time extension: Since basis functions ϕ 1 , , ϕ M in the trial space V 0 h differ from basis functions ϕ 0 , , ϕ M 1 in the test space V 0 h , it is useful to extend the computational domain by two fictitious times t M + 1 , t M + 2 .
  • 2a. Contact force balance: To keep the force balance in Equation (9), which might be violated, we implement finite differences at the time before collision t = τ h and at the extension
    u h k ( t , L ) u h k ( t , L h ) h = 0 for t = t , t M + 1 , t M + 2 .
Algorithm 1: (ST-PDAS.)
1. Initialization: Start with sets A 0 = and I 0 = [ 0 , T ] , set iteration number k = 0 .
2. Iteration: Find u h k + H V 0 h such that u h k = 0 on A h k solving the linear equation:
Q ( u h t k ϕ h t + u h x k ϕ h x + g ϕ h ) d x d t 0 L v 0 ϕ h | t = 0 d x = 0
for all basis functions ϕ h V 0 h with ϕ h = 0 on A h k .
3. Complementary: Compute the residual r h k R M :
r k ( ϕ m ) = Q ( u h t k ϕ m t + u h x k ϕ m x + g ϕ m ) d x d t 0 L v 0 ϕ m δ m 0 d x
and recurse the Lagrange multiplier λ h k R M :
λ 0 k : = 0 , λ m + 1 k = 2 h r k ( ϕ m ) λ m k for m = 0 , , M 1 .
4. Update: Reset active and inactive sets:
A k + 1 = T m : λ m k u h k ( t m 1 , L ) + u h k ( t m , L ) 2 < 0 , I k + 1 = T ¯ m : λ m k u h k ( t m 1 , L ) + u h k ( t m , L ) 2 0 .
5. Termination: Exit if A k + 1 = A k or cycling, else increase k = k + 1 and go to iteration step.
Further, we report on our computing tests of the ST-PDAS solution, and validate it for the analytical benchmark from Theorem 1.

4. Numerical Tests of Collision in Gravity Field

Let the parameters of the problems be the bar length L = 1 , the initial depth H = 1 , the final time T = 6 , and the gravity g = 0.01 . We set the initial speed v 0 = H / 2 + g = 0.51 , such that v 0 2 2 g H = | H / 2 g | = 0.49 yields the collision time τ = 2 in Equation (2), and v 0 g τ = v 0 2 2 g H satisfies the bilateral bounds (Equation (14)) in Theorem 1. The uniform ST-triangulation T h of the rectangle Q = ( 0 , 6 ) × ( 0 , 1 ) is illustrated in Figure 4 in the left plot (a) in its undeformed state, and in the right plot (b) after deformation. Here, the mesh size h = 6 / M = 0.125 yields M + 1 = 49 constrained points at the contact boundary Γ , and the number of degrees of freedom DOF = ( M + 1 ) ( M / 6 + 1 ) = 441 in Q ¯ .
We computed the collision problem in the primal-dual variational formulation (Equations (34) and (35)) iteratively using Algorithm 1. For h = 0.125 , the history of displacement iterates u h 0 ( t h , x h ) , u h 1 ( t h , x h ) , and u h 2 ( t h , x h ) over the rectangle is depicted in Figure 5. It is worth noting here that the small value prescribed for g reduces nonlinear phenomena; otherwise, large g may cause oscillation.
For all mesh sizes tested in the range h = 0.02 , , 0.5 , which corresponds to M = 13 , , 301 constrained points, and the DOF = 39 , , 15964, the algorithm terminated without cycling after three iteration steps. For the fine mesh as h = 0.02 , the ST-PDAS iterates are presented in Figure 6 at M = 301 time points on the contact boundary as x = 1 . There are depicted in the left plot (a): the three iterates of displacement u h 0 ( t h , 1 ) u h 1 ( t h , 1 ) u h 2 ( t h , 1 ) ; in the center plot (b): the three iterates of Lagrange multiplier λ h 0 ( t h ) = 0 , λ h 1 ( t h ) , λ h 2 ( t h ) ; and in the right plot (c): the iterates k = 0 , , 3 of active set A h 0 = , A h 1 A h 2 = A h 3 . In Figure 6 one can observe a typical for PDAS monotone behavior of displacements for k 0 and active sets for k 1 , whereas there is no monotony for Lagrange multipliers.
To test the accuracy of the ST-PDAS solution, we compare it with the exact solution given in the rectangle [ 0 , 3 ] × [ 0 , 1 ] according to Equations (15)–(20). The numerical tests are computed for decreasing mesh sizes h = 0.1 , 0.05 , 0.0 3 ¯ , 0.025 , 0.02 . In the left plot (a) of Figure 7 there are presented at the contact boundary Γ : the five curves of displacement u h ( t h , 1 ) at mesh nodes for t h [ 0 , 6 ] , and the curve u ( t , 1 ) for t [ 0 , 3 ] . Here one cannot visually distinguish between the curves even on coarse meshes. The right plot (b) draws the maximum over t h [ 0 , 3 ] of the absolute error | u h ( t h , 1 ) u ( t h , 1 ) | versus decreasing h. The curve shows a linear convergence of numerical order 0.96 for displacements under the mesh refinement. The convergence rates are computed using least squares fit in the log-log plot. The linear rate matches a theoretical expectation for piecewise linear space-time elements.
The discrete energy E h is defined according to the integral formula
E h ( t ) : = 1 2 0 L ( u h t 2 + u h x 2 ) d x for t [ 0 , T ]
for the FEM-solution u h ( t , · ) . The values E h ( t h ) computed at t h [ 0 , 6 ] are depicted in the left plot (a) of Figure 8 together with the exact energy E ( t ) given by analytical Equation (20) as t [ 0 , 3 ] . The five curves of discrete energy by varied mesh size h in the range 0.1 , 0.05 , 0.0 3 ¯ , 0.025 , 0.02 show a discontinuous piecewise smooth behavior. No spurious oscillations are observed. The right plot (b) draws the maximum of the relative error | E h ( t h ) E ( t h ) | / | E ( t h ) | · 100 % over t h [ 0 , 3 ] , which is below 1.34%, and we observe a super-linear convergence rate of numerical order 1.45 for the energy approximation as h drops. The energy convergence rate corresponds to the square of the H 1 -norm for a weak solution to the non-smooth problem.
In the recent work [50], comparative benchmarks are presented for multiple impacts of a rigid obstacle by an initially deformed bar when neglecting gravity. The comparison with three of the most efficient methods in the literature is reported: the Nitsche-based Verlet time integration scheme proposed in [51], the restitution coefficient method from [46], and the mass redistribution method from [52]. Test cases highlight ST-FEM advantages in accuracy, iteration count, and energy conservation metrics. For relevant methods we refer also to the recently suggested Nitsche-based BEM-FEM coupling approach [53].
Finally, we validate the globalization strategy for the extension of the ST-FEM algorithm.

5. Globalization Strategy

We start with a cycling test case when the contact force balance is violated and the finite difference Equation (36) is dropped. The cycling is documented in Figure 9 depicting four iterates of displacement u h k ( t h , 1 ) , Lagrange multiplier λ h k ( t h ) , and active set A h k . In the right plot (c), one can observe that A h 4 = A h 2 happens; hence, the termination step of Algorithm 1 cannot be attained.
Therefore, we will apply finite differences (Equation (36)) for all inactive nodes when extending numerical tests to distorted meshes. However, in this case we may lose accuracy of the discrete solution. The uniform triangle mesh as h = 0.125 drawn in the Figure 4a is distorted with random shifts in interior points ( t h , x h ) Q within intervals ( 0.05 h , 0.05 h ) in both the t and x directions. The distorted mesh is depicted in Figure 10a. Applying Algorithm 1 on this nonuniform mesh, iteration diverges as shown in the center plot (b) for the first four iterates. The iteration, implemented by the finite-difference Equation (36) on all nodes within inactive sets I k + 1 in Equation (40), remedies the convergence after 4 iteration steps A h 0 = , A h 1 A h 2 A h 3 = A h 4 as drawn in the Figure 10c.

6. Conclusions

We develop a space-time primal-dual active set algorithm, stated in a primal-dual variational form, for the solution of nonlinear collision problems with non-smooth velocities accounting for a gravity g. The ST-PDAS solution is tested for the benchmark problem of a 1D elastic bar colliding with a rigid obstacle, which allows an analytical solution before rebound. Numerical tests validate convergence of the ST-PDAS iteration, as well as the high accuracy and non-dissipative behavior that is free of spurious oscillations under mesh refinement. A globalization strategy for further extension of numerical experiments is suggested based on preserving the contact force balance within inactive sets by using finite differences.
Compared to the previous works on the ST-PDAS algorithm, the main advantage concerns non-linearity phenomena. The closed-form solution stated in Theorem 1 is novel and merely extends classical d’Alembert methods with a gravitational term. It extends known prior works on longitudinal waves in bars and transverse waves in beams (see, e.g., [13]). However, analytical derivation in the presence of gravity is limited for postrebound dynamics. Extension of the analytical solution, when expressed by convergent series, to times after starting rebound could be the next task.
Whereas the algorithm aligns P1 finite elements for small g, increasing the gravity g may becomes approximation unstable. The discretization can be improved by the use of P2 polynomials in FE. The other issue concerns the fact that exceeding the bilateral bounds stated in Equation (14) for the problem data might lead to violation of the non-penetration condition (Equation (18)) inside the space-time rectangle. This needs further development of the ST-PDAS theory and computation.

Funding

This research received no external funding.

Data Availability Statement

Data is contained within the article.

Acknowledgments

V.A.K. acknowledges the support by the University of Graz.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Gangl, P.; Gobrial, M.; Steinbach, O. A space-time finite element method for the eddy current approximation of rotating electric machines. Comput. Meth. Appl. Math. 2025, 25, 441–457. [Google Scholar] [CrossRef]
  2. Junker, P.; Wick, T. Space-time variational material modeling: A new paradigm demonstrated for thermo-mechanically coupled wave propagation. Comput. Mech. 2024, 73, 365–402. [Google Scholar] [CrossRef]
  3. Steinbach, O.; Zank, M. Coercive space-time finite element methods for initial boundary value problems. Electron. Trans. Numer. Anal. 2020, 52, 154–194. [Google Scholar] [CrossRef]
  4. Ito, K.; Kunisch, K. Lagrange Multiplier Approach to Variational Problems and Applications; SIAM: Philadelphia, PA, USA, 2008. [Google Scholar] [CrossRef]
  5. Hintermüller, M.; Kovtunenko, V.A.; Kunisch, K. Generalized Newton methods for crack problems with non-penetration condition. Numer. Meth. Partial Differ. Equ. 2005, 21, 586–610. [Google Scholar] [CrossRef]
  6. Hintermüller, M.; Kovtunenko, V.A.; Kunisch, K. A Papkovich–Neuber-based numerical approach to cracks with contact in 3D. IMA J. Appl. Math. 2009, 74, 325–343. [Google Scholar] [CrossRef]
  7. Barboteu, M.; Bonaldi, F.; Dumont, S.; Mahmoud, C. An energy-consistent discretization of hyper-viscoelastic contact models for soft tissues. Comput. Meth. Appl. Mech. Eng. 2024, 421, 116785. [Google Scholar] [CrossRef]
  8. Barboteu, M.; Bonaldi, F.; Dumont, S.; Mansour, R. An energy-consistent model of persistent adhesive contact for hyperelastic materials: Theory, discretization, and applications. Commun. Nonlinear Sci. Numer. Simul. 2025, 155, 109604. [Google Scholar] [CrossRef]
  9. Eberhard, P.; Hüeber, S.; Jiang, Y.; Wohlmuth, B.I. Multilevel numerical algorithms and experiments for contact dynamics. In Multifield Problems in Solid and Fluid Mechanicsl; Helmig, R., Mielke, A., Wohlmuth, B.I., Eds.; Springer: Berlin/Heidelberg, Germany, 2006; Volume 28, pp. 271–319. [Google Scholar] [CrossRef]
  10. Chouly, F.; Hild, P.; Renard, Y. Finite Element Approximation of Contact and Friction in Elasticity; Birkhäuser: Cham, Switzerland, 2023. [Google Scholar] [CrossRef]
  11. Gustafsson, T.; Stenberg, R. Finite element methods for elastic contact: Penalty and Nitsche. Raken. Mek. 2025, 58, 46–58. [Google Scholar] [CrossRef]
  12. Jean, M.; Moreau, J.; Raous, M. Contact Mechanics; Springer: Berlin/Heidelberg, Germany, 2012. [Google Scholar] [CrossRef]
  13. Amerio, L. Continuous solutions of the problem of a string vibrating against an obstacle. Ann. Mat. Pura Appl. 1978, 59, 67–96. [Google Scholar]
  14. Kashiwabara, T.; Itou, H. Unique solvability of a crack problem with Signorini-type and Tresca friction conditions in a linearized elastodynamic body. Phil. Trans. R. Soc. A 2022, 380, 20220225. [Google Scholar] [CrossRef]
  15. Petrov, A. Solvability of a pseudodifferential linear complementarity problem related to a viscoelastodynamic contact model. Appl. Anal. 2018, 97, 1372–1384. [Google Scholar] [CrossRef]
  16. Fernández-Real, X.; Figalli, A. On the obstacle problem for the 1D wave equation. Math. Eng. 2020, 2, 584–597. [Google Scholar] [CrossRef]
  17. Kim, J.U. A boundary thin obstacle problem for a wave equation. Commun. Partial. Differ. Equ. 1989, 14, 1011–1026. [Google Scholar] [CrossRef]
  18. Muñoz-Rivera, J.E.; Portillo-Oquendo, H. Exponential decay for a contact problem with local damping. Funkcialaj Ekvacioj 1999, 42, 371–388. [Google Scholar]
  19. Schatzman, M.; Bercovier, M. Numerical approximation of a wave equation with unilateral constraints. Math. Comput. 1989, 53, 55–79. [Google Scholar] [CrossRef]
  20. Akagi, G.; Efendiev, M. Lyapunov stability of non-isolated equilibria for strongly irreversible Allen–Cahn equations. Proc. R. Soc. Edinb. Sect. A 2025, 155, 1–21. [Google Scholar] [CrossRef]
  21. Carstensen, C.; Gwinner, J. A theory of discretization for nonlinear evolution inequalities applied to parabolic Signorini problems. Ann. Mat. Pura Appl. 1999, 177, 363–394. [Google Scholar] [CrossRef]
  22. Carvajal, J.J.; Damircheli, D.; Führer, T.; Fuica, F.; Karkulik, M. A space-time finite element method for parabolic obstacle problems. arXiv 2025, arXiv:2503.07808. [Google Scholar] [CrossRef]
  23. Alekseev, G.; Spivak, Y. Optimization-based numerical analysis of three-dimensional magnetic cloaking problems. Comput. Math. Math. Phys. 2021, 61, 212–225. [Google Scholar] [CrossRef]
  24. Di-Fratta, G.; Pfeiler, C.M.; Praetorius, D.; Ruggeri, M. The mass-lumped midpoint scheme for computational micromagnetics: Newton linearization and application to magnetic skyrmion dynamics. Comput. Meth. Appl. Math. 2023, 23, 145–175. [Google Scholar] [CrossRef]
  25. Graciani, E.; Mantič, V. Evaluation of the incremental ERR in interface cracks with frictional contact and its application in the coupled criterion of finite fracture mechanics. Comptes Rendus MÉCanique 2025, 353, 1365–1383. [Google Scholar] [CrossRef]
  26. Sultanova, N. Aggregate subgradient smoothing methods for large scale nonsmooth nonconvex optimisation and applications. Bull. Aust. Math. Soc. 2015, 91, 523–524. [Google Scholar] [CrossRef][Green Version]
  27. Ammar-Khodja, F.; Micu, S.; Münch, A. Controllability of a string submitted to unilateral constraint. Ann. Inst. H. Poincaré (C) Anal. Non Linéaire 2010, 27, 1097–1119. [Google Scholar] [CrossRef]
  28. Casas, E.; Kunisch, K.; Tröltzsch, F. On the value function for optimal control of semilinear parabolic equations. Nonlinear Anal. Real World Appl. 2026, 88, 104508. [Google Scholar] [CrossRef]
  29. Gou, K.; Mallikarjunaiah, S. Three-dimensional numerical modeling of a stationary v-notch in a porous material constituted by a non-linear response relationship. Math. Mech. Solids 2025. [Google Scholar] [CrossRef]
  30. Rudoy, E.; Itou, H.; Lazarev, N. Asymptotic justification of the models of thin inclusions in an elastic body in the antiplane shear problem. J. Appl. Ind. Math. 2021, 15, 129–140. [Google Scholar] [CrossRef]
  31. Rudoy, E.M.; Sazhenkov, S.A. The homogenized dynamical model of a thermoelastic composite stitched with reinforcing filaments. Phil. Trans. R. Soc. A 2024, 382, 20230304. [Google Scholar] [CrossRef]
  32. Anh, N.T.V.; Khan, A.A.; Liu, Z.; Migorski, S. Inverse problems for evolutionary hemi-quasi-variational inequalities with applications. Set-Valued Var. Anal. 2025, 33, 26. [Google Scholar] [CrossRef]
  33. Burger, M.; Dirks, H.; Frerking, L.; Hauptmann, A.; Helin, T.; Siltanen, S. A variational reconstruction method for undersampled dynamic x-ray tomography based on physical motion models. Inverse Probl. 2017, 33, 124008. [Google Scholar] [CrossRef]
  34. Jin, B.; Kian, Y.; Zhou, Z. Reconstruction of a space-time-dependent source in subdiffusion models via a perturbation approach. SIAM J. Math. Anal. 2021, 53, 4445–4473. [Google Scholar] [CrossRef]
  35. Bach, M.; Kovtunenko, V.A.; Khludnev, A.M. Derivatives of the energy functional for 2D-problems with a crack under Signorini and friction conditions. Math. Meth. Appl. Sci. 2000, 23, 515–534. [Google Scholar] [CrossRef]
  36. Khludnev, A.M.; Kovtunenko, V.A.; Tani, A. Evolution of a crack with kink and non-penetration. J. Math. Soc. Jpn. 2008, 60, 1219–1253. [Google Scholar] [CrossRef]
  37. Khludnev, A.M.; Sokolowski, J. Modeling and Control in Solid Mechanics; Birkhäuser: Basel, Switzerland, 1997. [Google Scholar] [CrossRef]
  38. Zhang, K.; Guo, D.; Lu, K.; Fu, C.; Wang, H.; Dong, C. Reduce the longitudinal and radial vibrations of the autonomous underwater vehicle using the anti-resonance method. J. Vib. Control 2025. [Google Scholar] [CrossRef]
  39. Al-Taweel, A.; Hussain, S.; Mallikarjunaiah, S. Error analysis of an upwind weak Galerkin finite element method for time-dependent hyperbolic problems. Num. Meth. Partial Differ. Equ. 2025, 41, e70017. [Google Scholar] [CrossRef]
  40. Elguedj, T.; Gravouil, A.; Combescure, A. A mixed augmented Lagrangian-extended finite element method for modelling elastic–plastic fatigue crack growth with unilateral contact. Int. J. Numer. Meth. Engng. 2007, 71, 1569–1597. [Google Scholar] [CrossRef]
  41. Nikiforov, D.; Stepanov, S.; Lazarev, N. Online meshfree generalized multiscale finite element method for flows in fractured media. Lobachevskii J. Math. 2024, 45, 5391–5401. [Google Scholar] [CrossRef]
  42. Yoong-Ormaza, C.; Thorin, A.; Legrand, M. The wave finite element method applied to a one-dimensional linear elastodynamic problem with unilateral constraints. In 11th International Conference on Multibody Systems, Nonlinear Dynamics, and Control; American Society of Mechanical Engineers: Boston, MA, USA, 2015; Volume 6. [Google Scholar] [CrossRef]
  43. Kovtunenko, V.A.; Atlasiuk, O.M. Poroelastic medium with non-penetrating crack driven by hydraulic fracture: FEM approximation using HHT-α and semi-smooth Newton methods. Algorithms 2025, 18, 579. [Google Scholar] [CrossRef]
  44. Kovtunenko, V.A.; Renard, Y. FEM approximation of dynamic contact problem for fracture under fluid volume control using HHT-α and semi-smooth Newton methods. Appl. Numer. Math. 2025, 218, 148–158. [Google Scholar] [CrossRef]
  45. Kovtunenko, V.A.; Renard, Y. Convergence analysis of semi-smooth Newton method for mixed FEM approximations of dynamic two-body contact and crack problems. J. Comput. Appl. Math. 2026, 471, 116722. [Google Scholar] [CrossRef]
  46. Paoli, L.; Schatzman, M. Numerical simulation of the dynamics of an impacting bar. Comput. Meth. Appl. Mech. Eng. 2002, 196, 2839–2851. [Google Scholar] [CrossRef]
  47. Stoianovici, D.; Hurmuzlu, Y. A critical study of the applicability of rigid-body collision theory. J. Appl. Mech. 1996, 63, 307–316. [Google Scholar] [CrossRef]
  48. Kovtunenko, V.A. Space-time finite element based primal-dual active set method for the non-smooth problem of impact of rigid obstacle by elastic bar. Comput. Math. Model. 2025, 36, 571–596. [Google Scholar] [CrossRef]
  49. Kovtunenko, V.A. Space-time primal-dual active set method: Benchmark for collision of elastic bar with discontinuous velocity. Computation 2025, 13, 210. [Google Scholar] [CrossRef]
  50. Kovtunenko, V.A.; Petrov, A.; Renard, Y. Space-time FEM solution of dynamic contact problem with discontinuous velocity for multiple impact of deformed bar using PDAS method. Math. Meth. Appl. Sci. 2025. [Google Scholar] [CrossRef]
  51. Chouly, F.; Renard, Y. Explicit Verlet time-integration for a Nitsche-based approximation of elastodynamic contact problems. Adv. Model. Simul. Eng. Sci. 2018, 5, 31. [Google Scholar] [CrossRef]
  52. Khenous, H.B.; Laborde, P.; Renard, Y. Comparison of two approaches for the discretization of elastodynamic contact problems. Comptes Rendus Math. 2006, 342, 791–796. [Google Scholar] [CrossRef]
  53. Aimi, A.; Cattivelli, S.; Chouly, F.; Guardasoni, C. Nitsche’s Energetic BEM-FEM Coupling for Wave Propagation in 2D Multidomains. 2025. Available online: https://www.researchgate.net/publication/399190480_Nitsche’s_energetic_BEM-FEM_coupling_for_wave_propagation_in_2D_multidomains (accessed on 13 January 2026).
Figure 1. Collision of obstacle by mass in a gravity field (left); a trajectory x = u ( t ) (right).
Figure 1. Collision of obstacle by mass in a gravity field (left); a trajectory x = u ( t ) (right).
Algorithms 19 00088 g001
Figure 2. Collision of obstacle at x = 0 by elastic bar moving with initial speed v 0 in gravity field g.
Figure 2. Collision of obstacle at x = 0 by elastic bar moving with initial speed v 0 in gravity field g.
Algorithms 19 00088 g002
Figure 3. Partition of the rectangle Q with T = τ + L into sets I and A.
Figure 3. Partition of the rectangle Q with T = τ + L into sets I and A.
Algorithms 19 00088 g003
Figure 4. The uniform triangle mesh for h = 0.125 before deformation (a), and x L + u h ( t , x ) after deformation (b).
Figure 4. The uniform triangle mesh for h = 0.125 before deformation (a), and x L + u h ( t , x ) after deformation (b).
Algorithms 19 00088 g004
Figure 5. ST-PDAS iterates k = 0 , 1 , 2 of displacement u h k ( t h , x h ) in Q ¯ for h = 0.125 .
Figure 5. ST-PDAS iterates k = 0 , 1 , 2 of displacement u h k ( t h , x h ) in Q ¯ for h = 0.125 .
Algorithms 19 00088 g005
Figure 6. ST-PDAS iterates: displacement u h k ( t h , 1 ) (a); multiplier λ h k ( t h ) (b); active set A h k (c).
Figure 6. ST-PDAS iterates: displacement u h k ( t h , 1 ) (a); multiplier λ h k ( t h ) (b); active set A h k (c).
Algorithms 19 00088 g006
Figure 7. Discrete displacement u h ( t h , 1 ) (a), and absolute displacement error to exact solution u ( t , 1 ) when step-size h decreases (b).
Figure 7. Discrete displacement u h ( t h , 1 ) (a), and absolute displacement error to exact solution u ( t , 1 ) when step-size h decreases (b).
Algorithms 19 00088 g007
Figure 8. Discrete energy E h ( t h ) (a), and relative energy error with respect to exact E ( t ) when time step h decreases (b).
Figure 8. Discrete energy E h ( t h ) (a), and relative energy error with respect to exact E ( t ) when time step h decreases (b).
Algorithms 19 00088 g008
Figure 9. ST-PDAS cycling: displacement u h k ( t h , 1 ) (a); multiplier λ h k ( t h ) (b); active set A h k (c).
Figure 9. ST-PDAS cycling: displacement u h k ( t h , 1 ) (a); multiplier λ h k ( t h ) (b); active set A h k (c).
Algorithms 19 00088 g009
Figure 10. Distorted mesh (a); active set A h k for divergent iterates (b) and convergent iterates (c).
Figure 10. Distorted mesh (a); active set A h k for divergent iterates (b) and convergent iterates (c).
Algorithms 19 00088 g010
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kovtunenko, V.A. Collision of an Obstacle by an Elastic Bar in a Gravity Field: Solution with Discontinuous Velocity and Space-Time Primal-Dual Active Set Algorithm. Algorithms 2026, 19, 88. https://doi.org/10.3390/a19010088

AMA Style

Kovtunenko VA. Collision of an Obstacle by an Elastic Bar in a Gravity Field: Solution with Discontinuous Velocity and Space-Time Primal-Dual Active Set Algorithm. Algorithms. 2026; 19(1):88. https://doi.org/10.3390/a19010088

Chicago/Turabian Style

Kovtunenko, Victor A. 2026. "Collision of an Obstacle by an Elastic Bar in a Gravity Field: Solution with Discontinuous Velocity and Space-Time Primal-Dual Active Set Algorithm" Algorithms 19, no. 1: 88. https://doi.org/10.3390/a19010088

APA Style

Kovtunenko, V. A. (2026). Collision of an Obstacle by an Elastic Bar in a Gravity Field: Solution with Discontinuous Velocity and Space-Time Primal-Dual Active Set Algorithm. Algorithms, 19(1), 88. https://doi.org/10.3390/a19010088

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop