[★★★☆☆] Bouncing of a Ball
In this example we show the application of the RigidWall
and
RestitutionWall
constraints. It is also possible to define a
rigid wall with finite dimension. The model script can be downloaded.
A mass point is used to idealize the ball. As this is a dynamics problem of rigid body, there is no need to define any material models to provide stiffness matrix. For this reason, it is possible to just define a point mass at the target point.
Text Only | |
---|---|
No matter how the gravity load is applied, it is required to define a constant amplitude that provides a constant level of either gravity force or acceleration. We define a proper amplitude first.
Text Only | |
---|---|
To apply the gravity, we use a constant vertical acceleration load, to do so,
Text Only | |
---|---|
Alternatively, a vertical load can be applied
Text Only | |
---|---|
Since the initial state is always in equilibrium, an initial condition can be added.
Free Fall
Now the model is ready to run a free fall simulation.
Text Only | |
---|---|
A default Newmark time integration algorithm will be assigned if no valid integrator is defined. The output is
Text Only | |
---|---|
The analytical displacement can be simply computed as
Rigid Wall Constraint
We define two infinite rigid wall constraints inclined \(\pi/4\) and \(3\pi/4\) to form a right angle. The ball can bounce between two walls. Two walls are both anchored at the origin and have infinite dimension, the outer normals are \((1,1)\) and \((-1,1)\), respectively. The penalty factor is chosen to be \(0.1\) in this particular example. Accounting for the time step defined below (\(0.005\)), the actual penalty factor applied to the effective stiffness is \(0.1/0005/0.005=4000\).
The penalty factor can be altered to achieve different levels of satisfactions of the constraint. But higher values also result in greater high frequency noise.
It may be of interest to record the motion of the ball.
Then configure the analysis,
Text Only | |
---|---|
The results are shown as follows.
The energy of the system is not conserved. To alleviate this problem, one can use the
RestitutionWall
constraint.
Restitution Wall Constraint
Elastic Collision
The constraints can be replaced by
Here the coefficient of restitution is set to 1.
Plastic Collision
One can define a plastic collision by using a coefficient of restitution smaller than unity.