WOLFRAM SYSTEM MODELER

BouncingBalls1D

Bouncing ball in 1D

Wolfram Language

In[1]:=
SystemModel["EducationExamples.Physics.BouncingBalls.BouncingBalls1D"]
Out[1]:=

Information

A ball is dropped from a given height h, dropping onto a hard surface, and bouncing back according to the restitution coefficient e. This example shows the event handling capabilities of System Modeler.

Analysis

Simulate with a large number of different initial heights h the ball is dropped from and show the bounces of the ball.

height

Varying the coefficient of restitution or the gravity shows different behavior.

restitutiongravity

Also see the balls bouncing in a 2D space in BouncingBalls2D.

In order to get the full experience of this example, you need a desktop Wolfram Language product. A free trial download is available at www.wolfram.com/mathematica/trial/

For the full example, open the accompanying notebook BouncingBalls.nb.

Parameters (2)

e

Value: 0.7

Type: Real

Description: coefficient of restitution

g

Value: 9.81

Type: Real

Description: gravity acceleration