NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
May 24, 2013, 07:40:30 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Life well spent is long. ..."da Vinci (1452-1519, Italian artist, sculptor, painter, architect, engineer and scientist) "
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: EJS version of Doppler effect (You can hear sound)  (Read 15682 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 2971



WWW
«
Embed this message
on: January 20, 2009, 10:46:47 pm »


This java applet show the Doppler effect.
Click inside the simulation region to select initial position for wave center.
While press down the mouse, drag the mouse to change the velocity for the wave source. (This is a moving point source)

The wave speed and the period of the wave (f=2*π/T) is adjustable by sliders.
If the source speed is smaller than wave speed. An ear gif image will appear in the simulation region(you can drag it to other position).
You will hear a sound click when the wave front pass the ear. (The frequency of the click sound is related to Doppler effect)

You will find wave pattern for shock wave when the source speed is larger than wave speed.
-*-

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!


The following is a flash demo


* shock-wave.jpg (5.87 KB, 226x172 - viewed 538 times.)

* sonic-boom.jpg (4.33 KB, 226x192 - viewed 526 times.)
Logged
j142
Newbie
*
Offline Offline

Posts: 11


«
Embed this message
Reply #1 on: January 28, 2009, 01:14:51 pm »

Can you upload the sound of train or ringing bell instead of clicking sound?

we will be have  experience of frequencies change while we are at railway station.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 2971



WWW
«
Embed this message
Reply #2 on: January 28, 2009, 04:22:59 pm »

All the simulations I have created at this web site are ailable for offline use.
The above simulation was created with EJS 4.
You can click "get files for offline use" button and get the jar file.
You will find ejs source code if you unzip the jar file with any UNZIP program.
Load the source with latest EJS 4 and you can switch to any sound file (.wav format) you have.

However, it is still different from the experience in real life. 
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1690


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #3 on: September 12, 2011, 10:27:20 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

dear Prof,

i am wondering, can make a scalarField that is for doppler effect?

i am thinking with a template of your codes, i can try to make
http://www.falstad.com/ripple/

with many options


currently, my attempt is not working

a summary of the codes is


for (i=0; i < number; i++)
{
 xscalar = xmin+(xmax-xmin)*i/number;
 for (j=0; j < number; j++)
 {
  yscalar = ymin+(ymax-ymin)*j/number;
  d[ i ][ j ]=Math.sqrt((xscalar-x)*(xscalar-x)+(yscalar-y)*(yscalar-y));
//sum [ i ][ j ]= A1*Math.cos(omega*t-k*d[ i ][ j ]);
//sum[ i ][ j ]= A1*Math.cos(omega/4*t);
sum[ i ][ j ]= A1*Math.cos(-k*d [ i ][ j ]);
}
}


Thanks!  Cheesy

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!


* wave.gif (2193 KB, 596x480 - viewed 526 times.)
« Last Edit: September 12, 2011, 10:29:15 pm by lookang » Logged
Pages: [1]   Go Up
  Print  
Life well spent is long. ..."da Vinci (1452-1519, Italian artist, sculptor, painter, architect, engineer and scientist) "
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
EJS version of Fourier Synthesis (You can hear the sound,too!)
Wave and Fluid
Fu-Kwun Hwang 11 26827 Last post February 01, 2013, 12:12:16 pm
by sajidtoor
EJS version of Fourier Synthesis (You can hear the sound,too!)
wave and fluid
ahmedelshfie 6 4603 Last post September 24, 2010, 08:44:25 pm
by ahmedelshfie
EJS version of Fourier Synthesis (You can hear the sound,too)
Questions related to EJS
ahmedelshfie 4 3559 Last post June 23, 2010, 12:03:12 am
by ahmedelshfie
Doppler effect
Physics Questions
arthuryu123 2 2099 Last post November 15, 2010, 07:38:01 am
by lookang
Ejs Open Source 1 Dimension Doppler Effect Sound Wave Java Applet
Collaborative Community of EJS
lookang 3 5411 Last post September 12, 2011, 03:05:36 pm
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.224 seconds with 27 queries.since 2011/06/15
宜久鋁門窗