NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
July 19, 2019, 12:33:50 am

Simplicity is the ultimate sophistication. ..."da Vinci (1452-1519, Italian artist, sculptor, painter, architect, engineer and scientist) "

 Pages: [1]   Go Down
 Author Topic: Ejs Open Source Particle model for solid liquid gas states by Fu-Kwun Hwang  (Read 18599 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member

Offline

Posts: 1792

http://weelookang.blogspot.com

 « Embed this message on: February 20, 2009, 04:05:09 pm » posted from:Singapore,,Singapore

My journey of remixing and understanding the source particle model for solid/liquid/gas states
original from http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=296.0
In my experimentation, you will see
Note that: reference: http://www.chem.purdue.edu/gchelp/liquids/character.html
Particles in:
gas are well separated with no regular arrangement.
liquid are close together with no regular arrangement.
solid are tightly packed, usually in a regular pattern.

Particles in:
gas vibrate and move freely at high speeds.
liquid vibrate, move about, and slide past each other.
solid vibrate (jiggle) but generally do not move from place to place.

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
• 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!

Some Characteristics of Gases, Liquids and Solids and the Microscopic Explanation for the Behavior

SolidLiquid Gas
250K300K450K
retains a fixed volume and shape rigid - particles locked into placeassumes the shape of the part of the container which it occupies particles can move/slide past one anotherassumes the shape and volume of its container particles can move past one another
not easily compressible little free space between particles not easily compressible little free space between particlescompressible lots of free space between particles
particles cannot move/slide past one anotherflows easily particles can move/slide past one anotherflows easily particles can move past one another
 SS-20090220170443.png (58.21 KB, 1024x768 - viewed 538 times.) *** There are 3 more attached files. You need to login to acces it! « Last Edit: October 08, 2012, 09:17:08 am by lookang » Logged
lookang
Moderator
Hero Member

Offline

Posts: 1792

http://weelookang.blogspot.com

 « Embed this message Reply #1 on: February 20, 2009, 04:07:31 pm » posted from:Singapore,,Singapore

Upload EJS Simulation didn't work at the modify post page
 Logged
lookang
Moderator
Hero Member

Offline

Posts: 1792

http://weelookang.blogspot.com

 « Embed this message Reply #2 on: February 20, 2009, 04:07:50 pm » posted from:Singapore,,Singapore

Strange?
Upload EJS Simulation didn't work at the modify post page
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #3 on: February 20, 2009, 09:48:27 pm »

The big differences between EJS 3 and EJS 4 is:
EJS 4 adds features to be able to share simulations wordwide.

An issue need to be resolved: What if two user create simulations with the same name.
A standard need to be adopted.
EJS use the ideas of workspace/source:All the EJS XML sources should be placed under  EJS_4.1/workspace/source

To solve the name conflict problem: all the users should place their source in users subdirectory under EJS_4.1/workspace/source, each users need a unique user-subdirectory
EJS adopt two level file structure for users. for example:
I put all my ejs source under users/ntnu/fkh/ subdirectory. ntnu represents my work place and  fkh represents myself. (Fu-Kwun Hwang).

Wolfgang: put all his works under users/davidson/wochristian and he created more subdirectories for different topics.
Paco put all his files under users/murcia/fem

If everyone adopt the same standard, the conflict problem can be solved much easier. Each user just make sure s/he does not have ejs source with the same filename.

Because I need to know where to find the XML from the jar file user upload to the server.
So I unzip the jar file and check for files under users subdirectory.

Because the files you have upload did not adopt to the above standard. So the code can not find the necessary informations. That is why the simulation did not show up.

EJS add a new feature to help users switch from version 3 to versions.
Please create a unique subdirectory to represent your work place , and create another subdirectory to represent. e.g. moe_sg/lookang (Please do not use . as part of subdirectory name)
Start EJS. You will find EJS console.
Switch to the 2nd tabs (Advanced Options)
Click Compile directory buton.
Select the directory where you put all your EJS sources.
EJS will re-compile all the EJS files and generate all the simulations under workspace/export
Have a cup of coffee and watch EJS working hard for you.

P.S. You need to copy all necessary resource files (gif/wave) to similar file structure so that EJS can find it.

That was way how I re-compiled aabout 439 simulations one months ago.

I did not switch to EJS 4 for more than one year because I need to re-compile all my simulations.
And I do not have time to do it one by one.
Paco added this features so I do not have reason "Not to switch" any more.
And I am glad that I did switch to version 4 now. There are many new features available for version 4.
There are data tools, Fourier Analysis tool and animated gif generated tool.
And it is much easier to translate string to different language (right click to find GUI options).

 Logged
lookang
Moderator
Hero Member

Offline

Posts: 1792

http://weelookang.blogspot.com

 « Embed this message Reply #4 on: February 21, 2009, 06:35:39 pm »

ok.

sgeducation/lookang

i will try to consolidate my applets sources asap! luckily all my sources are here, so it is just downloading them

my sources are in many folders of previous EJS versions and different pcs, may take a while finding the additional files (png, wav, etc).
 « Last Edit: February 21, 2009, 06:49:49 pm by lookang » Logged
lookang
Moderator
Hero Member

Offline

Posts: 1792

http://weelookang.blogspot.com

 « Embed this message Reply #5 on: February 22, 2009, 10:35:51 am »

while i was recompiling the directory in the auto mode,

some xml failed to run,

i noticed sometimes it is the "" or ' or : cause the error

just removed them and it should run ok now.
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #6 on: February 22, 2009, 10:58:23 am »

Yes. There are minor changes could not be fixed automatically, because more than one options exists.
For example: a string can be used as filename directory, and it can be a name for a variable which contains the real filename.
 Logged
lookang
Moderator
Hero Member

Offline

Posts: 1792

http://weelookang.blogspot.com

 « Embed this message Reply #7 on: February 22, 2009, 09:46:12 pm » posted from:Singapore,,Singapore

but it seems to not work?

source files are in C:\Users\lookang\EasyJavaSimulations\EJS_4.1_090215\EJS_4.1\workspace\source\users\sgeducation\lookang

the export are C:\Users\lookang\EasyJavaSimulations\EJS_4.1_090215\EJS_4.1\workspace\export

what am i doing wrongly? or is there a bug in the upload or you need to put \sgeducation\lookang ?Thanks!
 « Last Edit: February 22, 2009, 09:58:37 pm by lookang » Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3082

 « Embed this message Reply #8 on: February 22, 2009, 09:52:59 pm »

Could you upload one of the jar file as attachment so that I can download it and try to upload with new interface.
 Logged
lookang
Moderator
Hero Member

Offline

Posts: 1792

http://weelookang.blogspot.com

 « Embed this message Reply #9 on: February 22, 2009, 09:59:19 pm » posted from:Singapore,,Singapore

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

Offline

Posts: 3082

 « Embed this message Reply #10 on: February 22, 2009, 10:22:43 pm »

Testing: upload previeour attachment with new interface.
I found another bug. It is fixed now! (I mistyped a word when I changed the code.)

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
• 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!
 « Last Edit: February 24, 2009, 12:12:01 pm by lookang » Logged
housefull
Newbie

Offline

Posts: 2

 « Embed this message Reply #11 on: March 04, 2010, 11:19:43 am » posted from:Ha Tinh,Ho Chi Minh,Vietnam

congratulations guys, awesome work.
I look forward to seeing what you do in the next challenge.
 Logged
 Pages: [1]   Go Up
Simplicity is the ultimate sophistication. ..."da Vinci (1452-1519, Italian artist, sculptor, painter, architect, engineer and scientist) "