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

Easy Java Simulations (2001- ) => Collaborative Community of EJS => Topic started by: lookang on February 20, 2009, 04:05:09 pm



Title: Ejs Open Source Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: lookang on February 20, 2009, 04:05:09 pm
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.

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


























Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: lookang on February 20, 2009, 04:07:31 pm
Upload EJS Simulation didn't work at the modify post page


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: lookang on February 20, 2009, 04:07:50 pm
Strange?
Upload EJS Simulation didn't work at the modify post page


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: Fu-Kwun Hwang 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)
Copy all your EJS sources to your own subdirectory
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.


It should work if you follow the above steps and upload your files again.
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).
 


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: lookang 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  ;D

my sources are in many folders of previous EJS versions and different pcs, may take a while finding the additional files (png, wav, etc).


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: lookang 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.


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: Fu-Kwun Hwang 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.


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: lookang on February 22, 2009, 09:46:12 pm
i am ready to upload using the new interface.

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!


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: Fu-Kwun Hwang 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.


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: lookang on February 22, 2009, 09:59:19 pm
ok


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: Fu-Kwun Hwang 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.)


Title: Re: Particle model for solid liquid gas states by Fu-Kwun Hwang
Post by: housefull on March 04, 2010, 11:19:43 am

congratulations guys, awesome work.
I look forward to seeing what you do in the next challenge.


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