WOLFRAM SYSTEM MODELER

BouncingBalls1D

Bouncing ball in 1D

Wolfram Language

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

Information

 

Bouncing Balls: Handle Events and Discontinuities

 

Introduction

A number of balls are positioned in a rectangular room with walls and given initial velocities. They then bounce against each other and the walls.

In order to get the full experience of this example, you need the following:

 

These pages show an overview of the example. For the full example, open the accompanying notebook BouncingBalls.nb.

View the model text for this model.

 

Visualize

Create a custom interactive visualization of the balls in the room. Distribute the result as an interactive CDF document.

animate

Visualize the trajectory of each ball with the Wolfram Language's ParametricPlot function.

parametric

 

Parameters (2)

e

Value: 0.7

Type: Real

Description: coefficient of restitution

g

Value: 9.81

Type: Real

Description: gravity acceleration