NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
December 22, 2014, 05:10:00 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  
Ask questions. Follow-up questions. ...Wisdom
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 23252 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: 3058



WWW
: 1 users think this message is good
1 EJS version of Doppler effect (You can hear sound)
«
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 Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
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 1767 times.)

* sonic-boom.jpg (4.33 KB, 226x192 - viewed 1680 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: 3058



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: 1729


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 Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
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 2017 times.)
« Last Edit: September 12, 2011, 10:29:15 pm by lookang » Logged
SidneyR
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #4 on: November 24, 2013, 01:36:30 pm » posted from:Bangkok,Krung Thep,Thailand

Dear Professor,

This is very helpful stuff.  I'm curious though - when I downloaded
the Doppler Effect program, there was no ear, and I couldn't hear any
sound.  Is there supposed to be an ear in the download version?

Many thanks,
SidneyReilly
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1729


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: November 26, 2013, 10:15:52 pm »

attached is the file u requested


*** There are 1 more attached files. You need to login to acces it!
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1729


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #6 on: November 26, 2013, 10:18:20 pm »

i also have another version that does the same thing but i have edited it to be have inquiry features.
http://weelookang.blogspot.sg/2011/09/ejs-open-source-1-dimension-doppler.html



* Untitled.png (27.56 KB, 320x180 - viewed 127 times.)

*** There are 1 more attached files. You need to login to acces it!
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3058



WWW
«
Embed this message
Reply #7 on: November 29, 2013, 08:39:26 am »

Dear Professor,

This is very helpful stuff.  I'm curious though - when I downloaded
the Doppler Effect program, there was no ear, and I couldn't hear any
sound.  Is there supposed to be an ear in the download version?

Many thanks,
SidneyReilly


Yes. There is an ear in the simulation. However, I do not know why it was missing in the downloaded version.
It is fixed now.
Please download it again.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3058



WWW
«
Embed this message
Reply #8 on: December 04, 2013, 12:01:56 pm » posted from:,,Satellite Provider

Another version: source velocity, observer velocity,wave velocity can be changed.

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
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!
Logged
Pages: [1]   Go Up
  Print  
Ask questions. Follow-up questions. ...Wisdom
 
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 40162 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 7136 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 4731 Last post June 23, 2010, 12:03:12 am
by ahmedelshfie
Doppler effect
Physics Questions
arthuryu123 2 3157 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 9287 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.058 seconds with 23 queries.since 2011/06/15