Posts

Simple harmonic motion simulation - (Basic)

Image
 Simple harmonic motion simulation - (Basic) Everything in life is vibration  - Albert Einstain In mechanics and physics, simple harmonic motion (sometimes abbreviated SHM) is a special type of periodic motion where the restoring force on the moving object is directly proportional to the magnitude of the object's displacement and acts toward the object's equilibrium position. An Introduction to Flapping Wing Aerodynamics (CHAPTER-1) Wei Shyy, Hikaru Aono, Chang-kwon Kang, Hao Liu Cambridge University Press SOURCE CODE OUTPUT Hope this is useful to you.  To know more and discuss follow the following link  https://github.com/JohnpaulJ1509   https://www.instagram.com/phy.sci/?hl=en.

Bouncing ball simulation

Image
  Bouncing Ball Simulation "Philosophy [nature] is written in that great book whichever is before our eyes -- I mean the universe -- but we cannot understand it if we do not first learn the language and grasp the symbols in which it is written."   -Galileo Galilei image courtesy of Professor Andrew Davidhazy, Rochester Institute of Technology Bouncing ball in real life seems to be a simple phenomenon. The physics of a bouncing ball deal with the physical behavior of bouncing balls, particularly its motion before, during, and after impact against the surface of another body. Several aspects of a bouncing ball's behavior can be introduced in high school or undergraduate level physics courses. However, the exact modeling of the behavior is complex. The motion of a ball is generally described by projectile motion (which can be affected by gravity, drag, the Magnus effect, and buoyancy). At the same time, its impact is usually characterized through the coefficient of restituti...
Image
  Projectile motion with the effect of drag force It is certain that Galileo discovered the parabolic trajectory no later than 1608 and proved it mathematically early in 1609, although he did not mention it in print until 30 years later.   A projectile is any particle that is given an initial velocity and then follows a path determined entirely by the effects of gravitational acceleration and air resistance. A thrown football, a package dropped from an airplane, and a bullet shot from a rifle are all projectiles. The path followed by a projectile is called its trajectory. The key to analyzing projectile motion is that we can treat the x- and y-coordinates separately. The x-component of acceleration is zero, and the y-component is constant and equal to (By definition, g is always positive; with our choice of coordinate directions, is negative.) So we can analyze projectile motion as a combination of horizontal motion with constant velocity and vertical motion with constant acce...

Kinematics: Plotting displacement, velocity and acceleration

Image
 Kinematics:  Plotting displacement, velocity, and acceleration "Curiosity is the key to problem-solving." -Galileo Galilei   This program can be used to plot displacement, velocity, and acceleration using the given equation for the position. To be more clear check the previous posts to get an idea about solving the equation for the position ( CLICK HERE ).  The main function used in this program is np. diff() which is an alternative way to find the first and second derivatives and plot them in the same graph ( CLICK HERE ). diff(arr[, n[, axis]]) function is used when we calculate the n-th order discrete difference along the given axis. The first-order difference is given by out[i] = arr[i+1] – arr[i] along the given axis. If we have to calculate higher differences, we are using diff recursively. So the plot for the higher derivatives is provided by the discrete difference along the given axis. Here in this program, it is done by Defining the fir...

CM:3nd Equation of motion- Distance, initial velocity, final velocity and acceleration

Image
 CM:3nd Equation of motion- Distance, initial velocity, final velocity, and acceleration Classical mechanics gives us a deterministic view of the world. The second equation of motion does not give any detail about the final velocity, So using this equation we can find the final velocity of the given particle given the initial velocity, distance traveled, and acceleration.  Using these equations we can interplay between the variable. OUTPUT Hope this is useful to you. To know more and discuss follow the following link https://github.com/JohnpaulJ1509 https://www.instagram.com/phy.sci/?hl=en .

CM:2nd Equation of motion- Distance, initial velocity and acceleration

Image
  CLASSICAL MECHANICS 2nd equation of motion Distance, initial velocity, and acceleration Classical mechanics gives us a deterministic view of the world. This program will be a numerical model for the second equation of motion in general mechanics. Using this one can find the distance or acceleration or the initial velocity if time and other variables are provided. Give the value 0 to the unknown variable when one wants to find it. Using the program "1st eq of motion_velocity, acceleration and time" the concept of solving problems can be extended.  NOTE: This equation is not used to find the time.    OUTPUT Hope this is useful to you. To know more and discuss follow the following link https://github.com/JohnpaulJ1509 https://www.instagram.com/phy.sci/?hl=en .

CM: 1st Equation of motion-Position, velocity, and acceleration

Image
  CLASSICAL MECHANICS 1st equation of motion Position, velocity, and acceleration Classical mechanics gives us a deterministic view of the world. """ POSITION,VELOCITY,ACCELERATION_magnitude&calculus @author: J John Paul  """ """ description of the program:     This program is used to calculate velocity, acceleration, and time in two different ways. Instructions:     1. For the magnitude part of the program assigned the value 0 to the variable this is to be calculated        for example: If you want to find time from initial velocity, final velocity, and acceleration the while                     providing the values assing 0 to time.     2. To find the velocity, acceleration, or position from an equation than before executing the program        give the equation in the program code. """              OUTPUT  No...