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

Easy Java Simulations (2001- ) => Kinematics => Topic started by: tmzoughi on June 20, 2010, 11:22:43 pm



Title: 3D Kinematics of of mass subject to two forces
Post by: tmzoughi on June 20, 2010, 11:22:43 pm
I thought that some might have a use of this.


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: tmzoughi on June 20, 2010, 11:30:15 pm
I thought I have uploaded an EJS with this one. It is my first time trying to do that. Please provide guidance on how to do that correctly the next time. In the mean time, you can get it at: http://physci.kennesaw.edu/mzoughi/Simulations.shtm (http://physci.kennesaw.edu/mzoughi/Simulations.shtm) (look near the bottom for EJS simulations.)


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: lookang on June 21, 2010, 07:47:34 am
3D Kinematics of of mass subject to two forces
http://physci.kennesaw.edu/mzoughi/Simulations.shtm
testing

i wonder if i got time to make a youtube video about the upload here.


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: Fu-Kwun Hwang on June 21, 2010, 01:33:07 pm
A Mass Subject to Two Forces in a 3D Environment
In this simulation, you can investigate the effect of two forces on a mass in a three dimensional environment. For each of the forces you can set the components seperately. You can also set the initial position, velocity, and mass of the particle.


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: Fu-Kwun Hwang on June 21, 2010, 02:18:15 pm
You are more than welcomed to upload your great ejs simulations.  ;D

The following is a swf file which shows how to upload ejs jar file and display simulation as part of forum message.



It was not working due to "-" as part of filename. (it was been changed to "_" when java generate class file)
The bug is fixed now.

For lookang: You need to change Post.php to fixed the above bug.
There is a line in Post.php
[noeqn]
Code:
$ejsClass=str_replace("/",".",$ejspath)."_pkg.{$ejsName}Applet.class";
It need to be changed to
Code:
$ejsClass=str_replace("-","_",str_replace("/",".",$ejspath)."_pkg.{$ejsName}Applet.class");



Title: Re: 3D Kinematics of of mass subject to two forces
Post by: lookang on June 21, 2010, 02:36:41 pm
For lookang: You need to change Post.php to fixed the above bug.
There is a line in Post.php
[noeqn]
Code:
$ejsClass=str_replace("/",".",$ejspath)."_pkg.{$ejsName}Applet.class";
It need to be changed to
Code:
$ejsClass=str_replace("-","_",str_replace("/",".",$ejspath)."_pkg.{$ejsName}Applet.class");

I don't have your php files yet to be installed on my own SMF forum, i can't follow yet, i don't recall in the forum you have listed the steps?
This can revolutionize and replace the Prof Paco's method of "export website with applets"

By the way, u should upload your video to Youtube, can get more people interested in Ejs and your fantastic forum!


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: Fu-Kwun Hwang on June 21, 2010, 03:51:41 pm
Sorry, I thought you also have the same feature installed in your system.
New database record need to be installed, new directory in the server need to be created to save the uploaded jar, and the server can create new sub-directory for resource files, and php code need to be added at several php files.

I added this feature because many users might want to upload their ejs jar files.



Title: Re: 3D Kinematics of of mass subject to two forces
Post by: ahmedelshfie on June 22, 2010, 05:56:39 am
Prof Hwang i have ask about simulation up is very good work really is excllent
But i notice a thing when i show control or any kind of show in simulation
Panel show by icon EJS not icon of java on other simulation is like alert message This
Is strange or my browser appear simulation wrong because on other simulation appear by any panel
Appear by icon of java not icon of EJS.im sure is not wrong but is just ask what is resion for applet appear like it ?


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: Fu-Kwun Hwang on June 22, 2010, 08:04:33 am
I do not understand what do you mean.
Could you explain it in detail (may be add some image file)?


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: ahmedelshfie on June 22, 2010, 08:18:39 am
I mean this prof appear icon EJS not icon Java,im just want to know is alert message of panel normaly
And if panel why no appear icon java ?


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: Fu-Kwun Hwang on June 22, 2010, 08:24:24 am
It is the same icon for all ejs generated panel when you run EJS locally. is not it?
It is possible that:
If program did not provide any icon image, then it display java logo,otherwise, it display what has been provided.
I am not sure about that. Does it matter at all?


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: ahmedelshfie on June 22, 2010, 08:38:27 am
No it was ask because on other simulation prof
Appear icon java not icon EJS so that let me ask  :)


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: Fu-Kwun Hwang on June 22, 2010, 10:17:14 am
Please provide the URL for the so called "other simulation".


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: ahmedelshfie on June 22, 2010, 05:29:37 pm
OK,,for example:
Ballistic pendulum (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1803.0)
Panel of graphic appear icon java not icon of EJS


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: Fu-Kwun Hwang on June 22, 2010, 06:10:58 pm
I saw the same icon when I run downloaded jar file.
(check out attached image)


Title: Re: 3D Kinematics of of mass subject to two forces
Post by: ahmedelshfie on June 22, 2010, 06:29:57 pm
Strange because when i run simulation on HTML graphic panel show icon java not icon EJS
But this simulation i run normally on page and show icon EJS Ballistic pendulum show with me on HTML icon java
Simulation 3D Kinematics of of mass subject to two forces show on HTML icon EJS i don't know why.
Another image for pendulum wave