NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
September 22, 2019, 03:20:32 pm

Brevity is the Soul of wit. ..."Shakespeare (154-1616, English dramatist and poet) "

 Pages: 1 [2]   Go Down
 Author Topic: Kepler Motion  (Read 288364 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Daniele
Newbie

Offline

Posts: 2

 « Embed this message Reply #30 on: May 30, 2008, 08:00:49 pm » posted from:Luft,Baden-Wurttemberg,Germany

Hi,
I found your applet very usefull and clear. I am an astronautical engineer and I am coping for the first time with Java. I used to program in MATLAB/SIMULINK environment, therefore the point of view is quite different because of the Java Object Orientation. I would like to ask to the author of the applet some additional detail about the integration of the equations of motion:

1. What kind of numerical integrator did you use (RK4, Euler,...)?
2. Is it possible to integrate non linear ODE of the second order (i.e. the equations of motion for the restricted three body problem) or it is necessary to transform every equation of the second order in two equations of the first order?
3.I went through the source code of the applet, but it is quite confusing for a new Java user; is it possible to point out the section of the code where the integration is performed?

I do apologize if these questions may seem elementary, but the approach needed to program in Java is completely different from that one needed in MATLAB/SIMULINK, where the integrators are black boxes.

Many thanks in advance for any help.

Best regards,
Daniele
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #31 on: May 30, 2008, 08:37:57 pm »

1. Almost all the simulation were integrated with RK4.
2. Most of the second order ODE should be able to break into two first order equation.
3. I would suggest you try Easy Java Simulations (EJS).
The code you got was created almost 10 years ago with JDK1.0.2.  I switch to EJS since 2001 and it will be much easier for non-programmer to create simulation.
 Logged
Daniele
Newbie

Offline

Posts: 2

 « Embed this message Reply #32 on: May 30, 2008, 08:56:04 pm » posted from:Luft,Baden-Wurttemberg,Germany

Hi!
Thank you very much for your prompt replay. At the moment I am using eclipse as IDE, do you think it is a good way to start?

I think that most of the problem is to understand the way an OO application works: do you think it would be possible to you to prepare a simple simulation for a 3D circular orbit around the earth? That would be a nice way to start, in order to implement new features like elliptic orbits, perturbations due to the earth oblateness, drag, third body and, most of all, understand the technique involved in this example.

Best regards,
Daniele Romagnoli
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #33 on: May 30, 2008, 11:40:52 pm »

Eclipse is a good IDE for general purpose programming. But EJS is designed for science teacher or students. Please check out
Easy Java Simulations: a software tool to create scientific simulations in Java which is written by EJS original author: Francisco Esquembre
and do not forget to visit Offcial EJS WiKi Page

I think you will like it!
 Logged
pdnoerd
Newbie

Offline

Posts: 1

 « Embed this message Reply #34 on: August 15, 2008, 10:34:52 am »

Nice demonstration

Some spelling errors:

(Java Simulaions in Physics)
should be
(Java Simulations in Physics)  (you left out a "t")

"16 centry" should be "16th century"

"Danish bobleman Tycho Brahe" should be "Danish nobleman Tycho Brahe"

Also, someplace I saw "summerized" which means "made ready for summertime" but you want "summarized".  To "summerize" is to fix the air conditioner, for example.

Sorry - I know you start with a different language - just trying to help
Peter
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #35 on: August 15, 2008, 04:58:16 pm » posted from:Taipei,T'ai-pei,Taiwan

Thank you! I have corrected the message according to your suggestion.
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #36 on: January 09, 2009, 10:20:58 pm »

Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list

Try to compare the above motion with the following model.

Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
 Logged
sharonk868
Newbie

Offline

Posts: 1

 « Embed this message Reply #37 on: January 14, 2010, 06:46:05 pm » posted from:Hanoi,Dac Lac,Vietnam

Could you at least explain what you want to create? What kind of simulation? What you want to show in the simulation?
Do you have the formula now? What are the form of your formula? What is your model for the simulation?
There are so many information which you did not provide.

I think you also need to learn: How to ask a question effectively? How to explain your problem?
If I do not have a very clear picture of what you really want to do. There is no way I can help.

I also think so.
Thanks you for the post.
Hi guys, Im a newbie. Nice to join this forum.
-*-
 Logged
TraceyTrias
Newbie

Offline

Posts: 1

 « Embed this message Reply #38 on: January 22, 2010, 10:44:36 am » posted from:Quezon,Nueva Ecija,Philippines

Thanks a lot. It is very helpful to me... I really needed that.. Thank you so much.

-*-
 Logged
cjamesha
Newbie

Offline

Posts: 1

 « Embed this message Reply #39 on: March 06, 2010, 03:22:46 pm » posted from:Erode,Tamil Nadu,India

I want to start writing simulation for electronic circuits. Could you send me source code for keplers laws?

C. James
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #40 on: March 06, 2010, 10:28:29 pm » posted from:Taipei,T\'ai-pei,Taiwan

You can download it by yourself (attachement file under the first message).
However, the code was written more than 10 years ago with JDK1.0.2.

I would suggest you to lean EJS. It will be much easier to create simulation with EJS.
There are several circuit related simulation created with EJS, Please check out Electromagnetism board under Easy Java Simulations (2001- ) category.
 Logged
physics4ever
Newbie

Offline

Posts: 2

 « Embed this message Reply #41 on: May 07, 2010, 02:57:18 am » posted from:,,Lebanon

hello
would you send me the code of the kepler's motion applet ,
i am in need for it
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #42 on: May 07, 2010, 08:38:40 am » posted from:Taipei,T'ai-pei,Taiwan

The source code is available as attached file under 1st message (where you saw the simulation).
May be you did not look at the whole message so that you did not find it.
 Logged
physics4ever
Newbie

Offline

Posts: 2

 « Embed this message Reply #43 on: May 07, 2010, 10:28:42 pm » posted from:Beirut,Beyrouth,Lebanon

sorry for bothering you. I haven't noticed the attachement from the very beginning

 Logged
jenny.smith
Newbie

Offline

Posts: 3

 « Embed this message Reply #44 on: July 23, 2010, 08:02:34 pm » posted from:Mumbai,Maharashtra,India

Well i have lost doubt regarding the Kepler Motion,but after going through post its sorted out great work.
 Logged
sammys4travel
Newbie

Offline

Posts: -18

 « Embed this message Reply #45 on: November 15, 2013, 08:48:37 am » posted from:,,Satellite Provider

hi,
Beyond some clever features and design, the Moto X also failed to deliver much earth-shaking in the way of price/performance. Dennis Woodside, who runs Motorola for Google, had made some noise in May about how his division was going to do things rivals Apple and Samsung couldnâ€™t
 Logged
diinxcom
watchlist
Jr. Member

Offline

Posts: 25

Designer

 « Embed this message Reply #46 on: December 14, 2014, 05:52:13 pm » posted from:,,Satellite Provider

-*-
Just Bookmark..
I am new here.. I hope can get many thinks from this forum...
 Logged
seyf-educ
Newbie

Offline

Posts: 1

 « Embed this message Reply #47 on: October 06, 2016, 06:00:18 am »

thank you for this post
 Logged
 Pages: 1 [2]   Go Up
Brevity is the Soul of wit. ..."Shakespeare (154-1616, English dramatist and poet) "