VB code for pendulum simulation with varying frequency and baseline

  • Context: Undergrad 
  • Thread starter Thread starter JR Wakefield
  • Start date Start date
  • Tags Tags
    Pendulum Software
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
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.