WOLFRAM SYSTEM MODELER
This is a placeholder model. It requires the PlanarMechanics library.
The following documentation is taken from the main example of the downloadable model. Once you have downloaded all the model dependencies, the model can be downloaded here.
This model shows the Newton's Cradle experiment.
The cradle is modeled using the PlanarMechanics Modelica library. Five spheres are connected to a revolute joint through a stiff rod and hung next to each other. One of the spheres is released at a 22.5 degree angle, and gravity will pull it downward in a swinging motion, which will lead the sphere to collide with the adjacent sphere.
The collision between the spheres is modeled as a spring with a gap.
Multibody and PlanarMechanics systems have visualizers to show what a real-world system would look like.
To show a 3D animation of the model, follow the steps below:
Explore how the energy is conserved in the system by plotting the totalKineticEnergy, totalPotentialEnergy, and totalEnergy variables.
The variables will be plotted directly when simulating the model.
You should now see the following graph:
Also try plotting the Contact and AngleVelocityAcceleration plots. Do this by double clicking the plot in the Stored Plots section.
Changing parameters for the simulation can be done rapidly in Simulation Center. The impactd parameter describes the energy that is lost due to friction when the balls collide with each other. The default value for this parameter is 0, which means that no energy is lost due to collisions.
Try changing the impactd parameter to see how it affects the system:
This domain example is an informational resource made freely available by Wolfram Research.
A summary of the licensing terms can be found at:
The full legal code can be found at: