VB Code for Simulating Pendulum Swing Frequency & Baseline Changes

  • Thread starter Thread starter JR Wakefield
  • Start date Start date
  • Tags Tags
    Pendulum Software
AI Thread Summary
The discussion centers on a request for Visual Basic (VB) code to simulate a pendulum's swinging motion, with the ability to adjust both the swing frequency and baseline over time. The user aims to create a simulation involving three interconnected pendulums, where each pendulum influences the others, ultimately producing a random walking effect reminiscent of a drunken sailor. The purpose of this simulation is to explore the underlying order within seemingly random swings, which will be compared to a real-world phenomenon. The user admits to lacking knowledge of the equations governing pendulum motion but is proficient in VB programming. The conversation highlights the need for both code and an understanding of the physics involved in pendulum dynamics.
JR Wakefield
Messages
16
Reaction score
1
I'm looking for VB code that simulates a pendulum swinging. I need to be able to alter the frequency of the swing within a range as time progresses and alter the baseline within a range as time progresses.

Anyone got something?
 
Physics news on Phys.org
JR Wakefield said:
I'm looking for VB code that simulates a pendulum swinging. I need to be able to alter the frequency of the swing within a range as time progresses and alter the baseline within a range as time progresses.

Anyone got something?

What is the context of the question? What do you need the simulation for? Do you know the basic equations that are used for calculating pendulum motion?
 
berkeman said:
What is the context of the question? What do you need the simulation for? Do you know the basic equations that are used for calculating pendulum motion?

Ultimately I want to do three interconnected pendulums. One base, another when it swings alters the baseline of the first, and a third when it swings alters the degree of swing of the first. So the final outcome would look like a drunken sailor walking. This should produce an apparent random walking effect.

I have a specific reason to this test, but basically it is to see how apparently random swings has order to it. It will eventually be matched to a real world phenomenon.

And no I don't know the equations, but proficient at VB.
 
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Hello everyone, Consider the problem in which a car is told to travel at 30 km/h for L kilometers and then at 60 km/h for another L kilometers. Next, you are asked to determine the average speed. My question is: although we know that the average speed in this case is the harmonic mean of the two speeds, is it also possible to state that the average speed over this 2L-kilometer stretch can be obtained as a weighted average of the two speeds? Best regards, DaTario
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Back
Top