NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
October 23, 2014, 04:17:41 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Never underestimate others. Never overestimate oneself. ...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 Open Source Gravitational Field & Potential of Earth and Moon Java Applet  (Read 10209 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
on: August 10, 2010, 04:49:01 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Ejs Open Source Gravitational Field & Potential of Earth and Moon Java Applet.
based on Real Data!
customized by lookang based on an applet by Professor Andrew Duffy, remixed by lookang

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!


* eduLabGravityEarthandMoonYJC.png (52.77 KB, 758x634 - viewed 129 times.)
« Last Edit: June 28, 2012, 09:09:58 am by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: August 10, 2010, 04:55:54 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

changes made:

1 key in real data of Earth Moon using new format 0.00E00 like in tracker
2 redrawn and scale the world view to fit both g field graph and potential graph.
3 insert earth and moon images
4 design menu for "Moon Surface;Net Force Zero;Earth Surface;Random"
5 design features for exploring escape velocity concept select position from drop down menu and key in velocity
v_escape_moon = 2280 m s-1
v_escape_earth = 11300 m s-1
6 dt is in 60 sec interval
7 can explore the gravitational constant on Earth surface = 9.81 m/s^2 and Moon = 1.6 m/s^2 approximately


« Last Edit: August 10, 2010, 11:25:19 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: August 11, 2010, 10:47:05 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

exercises by lookang:
activity A
unselect the M2=5.97E24 kg checkbox
drag the red test mass m, on the world side view closer to the Moon.
notice the value of g1 varies according to the distance away from the center of the Moon
since M2 is unselected, gnet = g1 + g2 and g2 = 0
therefore gnet = g1
note down the value of gnet when m =1kg
note down the value of Fnet when m=1 kg
now change the value of m and record down the values of g1 , gnet and Fnet. do this for a few readings.
suggest a relationship between Fnet and gnet.

by manipulating the relationship variables above, write down the form that best describe the concept of a gravitational field as an example of field of force.

hence, derive the meaning that gravitational field strength as force per unit mass


Activity B
reset the simulation if need
unselect the test mass, m and select M2.
notice the green vector drawn on the center of the Moon and Earth.
the readings are as shown as F1= 1.98E20N and F2=-1.98E20N
using the real life data that you can get from textbook, lecture notes or/and the internet, verify the equation
F = G M1M2/r^2
suggest what does F1 represent?
hint: force on ________ exerted by ___________
suggest what does F2 represent?
hint: force on ________ exerted by ___________
drag on the Moon and Earth to move along the horizontal line, observe what happens to the magnitude and direction of the forces F1 and F2.
What observation can be made?
hint: magnitude, direction and different bodies?
What is the name of this physics idea?
What is the meaning of the negative sign on the force that points in the direction opposite to x-axis direction?

Activity C
Given that Newton's law of gravitation in the form F = G M1M2/r^2 and derive the equation for gravitational field strength, g.
hint: select the g field checkbox to reveal the graph of g vs r for a system of M1 alone.
select the M2 checkbox and deduce the relationship when the system is 2 mass, M1 and M2
you may use the data from the applet to verify your equation.

Activity D
apply the equation for gravitational field strength, g = G M/r^2 to the situation of the applet.
write the meaning of g1
write the meaning of g2
hence, suggest what is the net gravitational field strength for the case of a Earth and Moon system.
gnet =
select the gravity g field checkbox
vary the left slider to the bottom to change the scale of the y axis to -1.2 to 1.2 N/kg
notice the shape of the graph of g vs r. sketch it on your worksheet or lecture.
select and deselect the M2 to test your understanding.


Activity E nil
(e) show an appreciation that on the surface of the Earth g is approximately constant and equal
to the acceleration of free fall.
another applet perhaps?

Activity F
let the infinity point be i
let the final position of the point be f
write down the energies of a mass m an infinity,
hint: KEi + PEi = 0 + (-G M / infinity) = 0
write down the the energies of a mass m an a point r away from source of gravity field say M.
hint: KEf + PEf = 0 + (-G M / r)
use conservation of energy or otherwise, WDpropulsion + KEi + PEi = KEf + PEf
derive WDpropulsion in terms of G, M and r
define M
define r
hence or otherwise, verify whether you can define potential φ at a point as work done in bringing unit mass from infinity to the point.
write down the equation that shows this clearly.
select the gravity φ potential checkbox
vary the left slider to the bottom to change the scale of the y axis to high value J/kg
sketch the shape of the φ potential vs r.
select and deselect the M2 to test your understanding.


Activity G
solve problems using the equation φ = - G M/r for the potential in the field of a point mass.
for example,
Certain meteorites (tektites) found on the Earth have a composition identical with that of lunar granite. It is thought that they may be debris from volcanic eruption on the Moon. The applet shows how the gravitational potential between the surface of the Moon and the surface of the Earth varies along the line joining their centres. At the point P, the gravitational potential is a maximum.

By considering the separate contributions of earth and Moon to the gravitational potential, explain why the graph has a maximum and why the curve is asymmetrical

State how the resultant gravitational force on the tektite at any point between the Moon and the Earth could be deduced

When a tektite is at P ( drop menu select "Net Force Zero) , the gravitational forces on it due to Moon and Earth are F_M and F_E respectively. State the relation which applies between F_M and F_E.
F_Moon is which color force ?
F_Earth is which color force ?
given that the distance between Earth and Moon used in the applet is 384 403 000 m
determine the distance between test mass m and M1 (moon)
determine the distance between test mass m and M2 (earth)
verify whether the applet is accurate, which the uncertainty error between the 2 values?


If the tektite is to reach Earth, it must be projected from the volcano on the Moon with a minimum speed v0. Making use of appropriate values from the applet, find this speed. Explain your reasoning.
test out your answers against the simulation.
suggest why you cannot use the value derived theoretically, but it should be a value greater or lesser? explain.
 
Run the simulation with an escape velocity from Moon as v =2500 m/s, Predict and discuss very briefly whether a tektite will reach the Earth’s surface with a speed less than, equal to or greater than the speed of projection v =2500 m/s.

vary the simulation to test out the v =2500 m/s.
what is the value of velocity of test mass impacting earth?
change the values of test mass, m and rerun the sim, what is the velocity of impact on Earth?
by using equation of conservation of energy or otherwise, calculate the velocity of impact on Earth of test mass m.




(h) recognise the analogy between certain qualitative and quantitative aspects of gravitational
and electric fields.
Ejs Open Source Electric Field & Potential of 2 Charged Particles Java Applet
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1918msg6989;topicseen#msg6989
Design an experiment to verify that following table of data

Gravitational Fields  Electric Fields
Due to mass interaction, m     Due to charge interaction, +q and -q
Only attractive     Either attractive or repulsive
Newton’s Law of gravitation     Coulomb’s Law
Gravitational Field Strength     Electric Field Strength
Gravitational Potential     Electric Potential
« Last Edit: August 11, 2010, 01:31:11 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #3 on: April 27, 2012, 12:35:53 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

discussion with teacher

Can you make the moon and Earth more obvious? Moon is too small and not too visible.
Thanks.

it is currently showing real data of distance and radius of earth and moon.
Can explain how to make bigger while still showing real distances ?
Smiley
I not sure how and what to change


http://weelookang.blogspot.com
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #4 on: May 07, 2012, 12:25:16 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

changes

made consistent to original simulation http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1921.0


* Ejs Open Source Gravitational Field & Potential of Earth and Moon Java Applet1.PNG (46.24 KB, 757x641 - viewed 159 times.)

* eduLabGravityEarthandMoonYJC.png (52.77 KB, 758x634 - viewed 171 times.)

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

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: June 08, 2012, 01:36:53 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

discussion
I can't reliably get the mass to be launched at the speed i want.
When i key v = -1.11E4 and click play, it doesnt even go halfway. Nothing happens if i continue to change the velocity value.

addressed

But i found i was able to make it work again if i always "reset" it by selecting "random spot" then return back to "Earth surface". However, the value of -1.11E4 never works. In fact, -1.15E5 will also cause it to return back to Earth surface. Only value of -1.16E4 onwards will it reliably reach the moon.

made the menu bar remember but the first time need to set manually
theory says 11200 m/s, to reach infinity as speed 0
but in practice it could be larger like 11500 m/s, say to reach a very far place with a speed of 100 to 1000 m/s
i have change the launch position to be slightly above sea level surface of Earth .
i think it works for 11400 m/s now.
http://en.wikipedia.org/wiki/Escape_velocity also say it is roughly 11200 m/s, so it should be  larger  than 11200 m/s according to the computer model about 11500 m/s should escape



So:
1. I wonder if there's anything wrong in the applet calculation values (rounding off issues) that causes the value to be different from that calculated in the worksheet.

i checked, the values i used are pretty accurate, it is the theory that is problematic.
error analysis
(11500-11200)/11200 = 2.7 % error is it acceptable?



2. Can it be done such that i need not do the "manual reset" each time i want to test a new velocity?

done, the menu remember past last values, but need to set it for first time.


*** There are 1 more attached files. You need to login to acces it!
« Last Edit: June 08, 2012, 04:45:43 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #6 on: June 12, 2012, 11:23:47 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

thanks to prof hwang's expert and masterful tips, here http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2461.msg9275#msg9275

attached is the latest model that has the corrected escape velocity from Earth as -11200 m/s.

enjoy!

the new refinement is thanks to teacher feedback

"As for the simulation speed itself . . . i think this one is a bit slower? I dont recall having to wait for 3-4 minutes for the entire launch from Earth to moon, but apparently that's what is happening to the critical speeds (1.12 m/s to 1.15 m/s) Can this be addressed?"

done thanks to Prof Hwang's tips http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2461.msg9275#msg9275

also added a dt for time step


*** There are 1 more attached files. You need to login to acces it!
« Last Edit: June 12, 2012, 11:37:10 am by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #7 on: June 26, 2012, 04:40:27 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

fixed a bug with the values of g
and the accln function with scale1 and scle2 included to control the checkbox of the M1 and M2


*** There are 1 more attached files. You need to login to acces it!
« Last Edit: June 26, 2012, 04:46:25 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: June 28, 2012, 09:09:29 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

changes

added improved collision detection
added improved acceleration equation
public double getA (double x_pos) {
  double accln;
  accln = scale2*G*(-m2)/((x_pos-x2)*(x_pos-x2))*(x_pos-x2)/Math.abs(x_pos-x2)+scale1*G*(-m1)/((x_pos-x1)*(x_pos-x1))*(x_pos-x1)/Math.abs(x_pos-x1);
  return accln;
 
}


*** There are 1 more attached files. You need to login to acces it!
Logged
Pages: [1]   Go Up
  Print  
Never underestimate others. Never overestimate oneself. ...Wisdom
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Ejs Open Source Electric Field & Potential of 2 Charged Particles Java Applet
Collaborative Community of EJS
lookang 1 6370 Last post July 27, 2010, 09:07:16 pm
by lookang
Ejs Open Source Gravitational Field & Potential of 2 Mass Java Applet
Collaborative Community of EJS
lookang 12 9393 Last post June 28, 2012, 08:17:32 am
by lookang
Ejs Open Source Moon Phases Java Applet
Collaborative Community of EJS
lookang 8 9476 Last post January 03, 2011, 04:56:28 pm
by Fu-Kwun Hwang
Ejs Open Source 2 Charge Model with Field Vector, Field Lines, Potential Visual
Collaborative Community of EJS
lookang 12 8048 Last post August 15, 2013, 07:41:28 am
by lookang
Ejs Open Source Gravity Field Model Near Earth Java Applet
Collaborative Community of EJS
lookang 0 4774 Last post October 01, 2010, 08:10:28 am
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.072 seconds with 23 queries.since 2011/06/15