NTNUJAVA Virtual Physics Laboratory

Easy Java Simulations (2001- ) => Wave and Fluid => Topic started by: Fu-Kwun Hwang on July 18, 2014, 09:04:13 pm

Title: transverse wave
Post by: Fu-Kwun Hwang on July 18, 2014, 09:04:13 pm

I am new towards using EJS. I would like to know how can I make a simulation of a transverse wave with the following features to show a group of students who are learning waves motion for the first time and have no idea of sine or cosine function. Hopefully, they can play with the simulation.

In the beginning of simulation, I hope to show a string of N particles,  (hope that the number can vary by an input box) horizontally.
Something similar to this

I would like to show if the first particle is "pulled up or down", the string of N particles would be set in vibration one by one like a transverse wave.

I also would like to show when all the particles are set in vibration up and down, I can select any of the particles to follow the up and down motion. When I pause the simulation, I also hope that can show where is the selected particle a few time steps backward and forward. It would be better if the simulation can show the positions of all the particles a few time steps backward and forward, so that I can explain the motion.

If period, wavelength and amplitude can vary, it would be even be better. But I think I can add these features.

I hope someone can be kind enough to guide me how to make this simulation using ejs or provide me a working basics skeleton that I can work on it. I cannot figure out how to input something like this into the evolution page of the Model. I can create a string of particles.

Any help or suggestion is appreciated. Thanks.

I have create a simulation according to your requirement above.
I hope it is what you want. Enjoy it!
Title: Re: transverse wave
Post by: Fu-Kwun Hwang on July 19, 2014, 02:40:48 pm
Here another version with two waves propagate in oppositive direction.
You can find superposition of two waves.
Please click [eye][ejsapplet][/eye] to view simulation