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

Easy Java Simulations (2001- ) => thermodynamics => Topic started by: ahmedelshfie on April 13, 2010, 07:07:53 pm



Title: Ideal gas law: PV=nRT
Post by: ahmedelshfie on April 13, 2010, 07:07:53 pm
This applet is explain about (Ideal gas law: PV=nRT) applet created by Prof hwang
Modified by Ahmed
Original project:ideal gas law: PV=nRT (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=632)


Title: Re: Ideal gas law: PV=nRT
Post by: ahmedelshfie on April 13, 2010, 07:33:49 pm
Image general chemistry: http://www.vias.org/genchem/wrapnt_reaction_equilibrium_in_the_gas_phase92.html
Image from: http://flame.mech.gifu-u.ac.jp/TEST-j/testcenter/Test/problems/images/pistoncylheatinworkout.gif
Image from: http://www.ulb.ac.be/sma/testcenter/Test/intro/introimages/cprocesses/pistoncyldoublecv.jpg


Title: Re: Ideal gas law: PV=nRT
Post by: ahmedelshfie on April 13, 2010, 07:38:45 pm
Prof i find  problem in slider (N) when move slider
Simulation stop but i don't know why this happend
Please check thankyou


Title: Re: Ideal gas law: PV=nRT
Post by: Fu-Kwun Hwang on April 13, 2010, 08:46:49 pm
It was fine with previous EJS/java version.
The problem can be solved if you add the following lines at the top of the initialize page

x=new double[n];
y=new double[n];
vx=new double[n];
vy=new double[n];



Title: Re: Ideal gas law: PV=nRT
Post by: ahmedelshfie on April 13, 2010, 08:52:33 pm
I do it but is the same problem when i move slider(N) simulation stop
And No work need refresh page to work again  ???


Title: Re: Ideal gas law: PV=nRT
Post by: Fu-Kwun Hwang on April 13, 2010, 10:24:18 pm
Add _pause() to On Press  property and _play() to On Release property of SliderN.

Actually, you can find out the run time error from EJS console when you run it.
The error message can lead you to find the bug or find way to solve it.


Title: Re: Ideal gas law: PV=nRT
Post by: ahmedelshfie on April 13, 2010, 11:11:22 pm
Yes i see now thanks Prof  :)


Title: Re: Ideal gas law: PV=nRT
Post by: ahmedelshfie on September 28, 2010, 05:44:54 pm
Original applet for Molecular Model for an Ideal Gas design by prof Hwang
using JDK1.0.2
URL applet Molecular Model for an Ideal Gas (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=25.0)