VB Code for Simulating Pendulum Swing Frequency & Baseline Changes

  • Context: Undergrad 
  • Thread starter Thread starter JR Wakefield
  • Start date Start date
  • Tags Tags
    Pendulum Software
Click For Summary
SUMMARY

The discussion centers on creating a Visual Basic (VB) code simulation for a pendulum that can dynamically alter its swing frequency and baseline over time. The user seeks to implement three interconnected pendulums, where the motion of each affects the others, ultimately producing a complex, seemingly random walking effect. The goal is to explore the underlying order in what appears to be random motion, with potential applications to real-world phenomena. The user is proficient in VB but lacks knowledge of the equations governing pendulum motion.

PREREQUISITES
  • Understanding of pendulum motion equations
  • Proficiency in Visual Basic programming
  • Knowledge of simulation techniques
  • Familiarity with dynamic variable manipulation in programming
NEXT STEPS
  • Research pendulum motion equations, including angular displacement and frequency calculations
  • Explore Visual Basic libraries for graphical simulations
  • Learn about creating interconnected simulations in programming
  • Investigate algorithms for generating random motion patterns
USEFUL FOR

This discussion is beneficial for software developers, physics enthusiasts, and educators interested in simulating physical phenomena, particularly those working with Visual Basic and dynamic systems modeling.

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.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K