Emulate something in software that has a resonant frequency

Click For Summary
SUMMARY

This discussion focuses on emulating a system with a resonant frequency in software, specifically using the equation F = kx to model the restoring force of an oscillator. The user seeks to understand the relationship between the spring constant (k) and the resonant frequency, as well as how to simulate the oscillator's movement based on varying push and pull forces. Key considerations include the granularity of time in the simulation and whether to use calculus for determining the final position after a force is applied. The conversation emphasizes the importance of accurately modeling the forces to achieve realistic oscillation behavior.

PREREQUISITES
  • Understanding of simple harmonic motion and the equation F = kx
  • Basic knowledge of calculus for modeling continuous forces
  • Familiarity with oscillators and resonant frequency concepts
  • Experience with simulation techniques in software development
NEXT STEPS
  • Research the relationship between spring constant (k) and resonant frequency in oscillatory systems
  • Learn about numerical methods for simulating forces in physics engines
  • Explore techniques for time discretization in simulations
  • Study the application of calculus in modeling dynamic systems
USEFUL FOR

Software developers, physicists, and engineers interested in simulating physical systems, particularly those focused on oscillatory motion and resonance phenomena.

inhahe
Messages
8
Reaction score
0
Hello, I have a question about resonance. Say I want to emulate something in software that has a resonant frequency. It will be receiving pushes and pulls at various intervals, and I want the emulation to reflect how intensely it would vibrate at its resonant frequency as the result of those combined pushes and pulls. I think the pushes and pulls are straightforward, so my question is: What is the equation that relates how far away from the center the oscillator currently is to how strongly it's pulled back to center? I imagine this is the only relation that causes resonance in the item in question, but I don't know the math.. thanks
 
Physics news on Phys.org


F = kx (x = distance, k a constant) should be an excellent model for the restoring force. It is used as a good approximation in pendulum and spring problems where it results in simple harmonic (sinusoidal) vibration.
 


thanks. what's the relation between k and the resonant frequency?

also i have another question.. it's about the granularity in time with which i simulate this process. i honestly have no idea how crude it can be. essentially I'm wondering if i could cause a movement only every time it's pushed/pulled, and not in between, and still get the required effect.

i was thinking if i pushed according to the F=kx (plus the pushing force I'm applying), and the oscillator ends up, say, on the other side, does that really work if I simply moved it in linear relation to how strong the push was? Because meanwhile while it was moving there should have been more forces applied per position. so a) would I have to account for this (given that all I'm looking for in the end is how fast it's vibrating), and b) in that case, would it have to be accounted for step-wise, or can calculus or something be used to determine the final position after the push?

oh..as far as the calculus goes, it will be pushed at a regular interval but at varying intensities, and that interval's frequency is somewhere between twice per oscillation and a large number per oscillation.

(the pushes and pulls in real life won't happen in instantaneous pulses, but in a continuum, but i believe i can simplify for the purpose of simulation and use periodical samples..)

thanks..
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
Replies
17
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
3K