NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Information about this web site => Question related to Physics or physics related simulation => Topic started by: mkcit on March 20, 2009, 09:28:27 pm



Title: How i can to design my simulation ?
Post by: mkcit on March 20, 2009, 09:28:27 pm
Hi sir..
i'm java programmer, and i want to learn how i can to design and program the simulations, so
what is the tools for begin that ?
what is the experience anbd skills that must i have ?
please, can you tell me how i can use the EJS for simulations design ?

Thanks Teacher so much.


Title: Re: How i can to design my simulation ?
Post by: lookang on March 20, 2009, 09:39:09 pm
http://www.phy.ntnu.edu.tw/ntnujava/index.php?board=34.0
look at the lessons here.



Title: Re: How i can to design my simulation ?
Post by: mkcit on March 20, 2009, 09:59:36 pm
Thanks lookang, but the lessons is very simple and need more details and explanations.


Title: Re: How i can to design my simulation ?
Post by: lookang on March 20, 2009, 11:15:21 pm
how about http://www.phy.ntnu.edu.tw/ntnujava/index.php?board=21.0
you can download the XMl

explore it

change it to see what happens

are you trying to make physics applets or others.

physics here has plenty,

others u can try posting questions here http://www.phy.ntnu.edu.tw/ntnujava/index.php?board=23.0

build a database of "how to do this in Ejs" for others to do a search in the forum


Title: Re: How i can to design my simulation ?
Post by: Fu-Kwun Hwang on March 21, 2009, 06:35:20 am
Thanks lookang, but the lessons is very simple and need more details and explanations.

I was confused. If the lesson is very simple, then why it need more details explanations.
Please write download in detail what need to be explained in more detail at the tutorial topics so that we can know what need to be improved.


If you want to design a new simulation for your own, you need to understand the whole process first.
Then, transfer the process into time step states and describe it with programming language.

EJS, let you define variables to specify the property or for GUI display purpose.
Provide initial value for all the variables first.
Find out what variables will be changed with time. Write down evolution equation for variables. e.g. dx/dt=vx;
Then, write download constrains or special relations at Fixed relation page. e.g. check for collision at wall... etc.
EJS have many build in GUI element to create graphic display for the simulation. Just drag and drop GUI elements into your drawingPanel/PlottingPanel and provide property to connected with pre-defined variables. (Create Controls and links between Model and View)

I would suggest you start with a new ideas. Try to implement it with EJS. 
Post your questions and EJS source if you encounted problem. We will try to help you!
As lookang suggested, the first step is to study EJS examples, try to modify it to generate new simulations.
You can create your own when you are familiar with it later.


Title: Re: How i can to design my simulation ?
Post by: mkcit on March 21, 2009, 09:40:20 pm
thanks Fu-Kwun Hwang for your replaying,
i will try,
please if i can ask, are all simulations inside forum designed by EJS ?

Thanks My best teacher for ever.


Title: Re: How i can to design my simulation ?
Post by: Fu-Kwun Hwang on March 21, 2009, 11:09:47 pm
There are two major categories in this forum:
1. JDK1.0.2 simulations (1996-2001) : There are about 100 physics related simulations I have created before I knew about EJS.
2. Easy Java Simulations (2001- ): Here are all the simulations created with EJS.
So you should be able to know if the simulation was created with EJS, just check for the name of the category!


Title: Re: How i can to design my simulation ?
Post by: mkcit on March 22, 2009, 01:55:30 am
ohhhhhhh..
Thanks my teachers for all,
and i'm very glad to explore this nice forum,

please can you design simulation of computer network system as simple lesson for learning EJS ?

Thanks teacher.


Title: Re: How i can to design my simulation ?
Post by: Fu-Kwun Hwang on March 22, 2009, 08:41:08 am
You need to specify in detail about the "computer network system".

If you just need many connected nodes? Use shapeset and segment set
Do you want to simulate how data want sent through network, then it is a more complicated problem.
Model and GUI design need to be described in detail first.


Title: Re: How i can to design my simulation ?
Post by: ddddyyyy on May 27, 2009, 03:18:15 pm
I agree with  mkcit
 



-*-


Title: Re: How i can to design my simulation ?
Post by: katherine04 on May 28, 2009, 02:19:46 am
that's interesting.. i might give it a try.. :) thanks for sharing
simulation rachat de credit (http://simulationrachatdecredit.org)


Title: Re: How i can to design my simulation ?
Post by: Floyd on June 10, 2016, 11:10:16 pm
That's very good information. Thanks fr sharing this.