Simulation of 2 Spring and 1 Mass System: VPython Tutorial 5 (Visual Python)

Simulation of Two Spring and one Mass System.
Simulation of Two Spring and one Mass System. (Source: Tech For Curious)

This VPython tutorial shows the simulation of two Spring and one Mass system. The generalised Spring-Mass system can be understood efficiently by exploring a single mass attached to two springs. In this system, we have two springs, one end of each spring is attached to the rigid support whereas another end is attached to the mass. The motion of mass is influenced by the forces of both springs.

Continue reading “Simulation of 2 Spring and 1 Mass System: VPython Tutorial 5 (Visual Python)”

Simulation of Pendulum: VPython Tutorial 3 (Visual Python)

Simulation of Pendulum
Simulation of Pendulum using VPython. (Credit: Tech for Curious)

A pendulum is the first instrument which comes to mind when someone thinks about Physics. The pendulum is a simple instrument which consists of a bob attached to a string whose other end is tied to a pivot at some height. When the pendulum is left on itself, the bob hangs down with stretched string and remain stationary. If someone gives bob slight push, the pendulum starts moving and swings back and forth. The push provides the pendulum a kinetic energy which helps in the motion of the pendulum. Continue reading “Simulation of Pendulum: VPython Tutorial 3 (Visual Python)”

Simulation of Spring-Mass System: VPython Tutorial 2 (Visual Python)

Simulation mass spring system
Simulation of mass-spring system on VPython. (Credit: Tech for Curious)

The spring-mass system is one of the simplest systems in physics. The spring-mass system consists of a spring whose one end is attached to a rigid support and the other end is attached to a movable object. When the spring is stretched or compressed, the spring tries to restore its position which results in oscillation of object around the equilibrium position. The equilibrium position is defined as the position when spring is at its normal length and the object does not experience any force. Continue reading “Simulation of Spring-Mass System: VPython Tutorial 2 (Visual Python)”

Simulation of Bouncing Ball: VPython Tutorial 1 (Visual Python)

Simulation of Falling ball in vpython
Simulation of Falling ball in VPython. (Credit: Tech For Curious)

Visual Python (VPython) is a module in Python programming language which provides a platform to make 3D models and simulations. In VPython, you can create various objects like sphere, box, cone, cylinder etc. You can assign different attributes to these objects like size, mass, color, position, velocity, acceleration etc. You can use all the commands and codes of Python language in VPython also. In this post, we are going to simulate a ball which falls under the effect of gravity and bounces off after striking the floor. Continue reading “Simulation of Bouncing Ball: VPython Tutorial 1 (Visual Python)”