### Author Topic: Ideal gas law: PV=nRT  (Read 12471 times)

#### ahmedelshfie

• Moderator
• Hero Member
• Posts: 930
##### Ideal gas law: PV=nRT
« on: April 13, 2010, 08: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

Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
• 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: April 14, 2010, 02:09:57 am by ahmedelshfie »

#### ahmedelshfie

• Moderator
• Hero Member
• Posts: 930
##### Re: Ideal gas law: PV=nRT
« Reply #1 on: April 13, 2010, 08:33:49 pm »

#### ahmedelshfie

• Moderator
• Hero Member
• Posts: 930
##### Re: Ideal gas law: PV=nRT
« Reply #2 on: April 13, 2010, 08:38:45 pm »
Prof i find  problem in slider (N) when move slider
Simulation stop but i don't know why this happend

#### Fu-Kwun Hwang

• Hero Member
• Posts: 3062
##### Re: Ideal gas law: PV=nRT
« Reply #3 on: April 13, 2010, 09: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];

#### ahmedelshfie

• Moderator
• Hero Member
• Posts: 930
##### Re: Ideal gas law: PV=nRT
« Reply #4 on: April 13, 2010, 09: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

#### Fu-Kwun Hwang

• Hero Member
• Posts: 3062
##### Re: Ideal gas law: PV=nRT
« Reply #5 on: April 13, 2010, 11: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.

#### ahmedelshfie

• Moderator
• Hero Member
• Posts: 930
##### Re: Ideal gas law: PV=nRT
« Reply #6 on: April 14, 2010, 12:11:22 am »
Yes i see now thanks Prof

#### ahmedelshfie

• Moderator
• Hero Member
• Posts: 930
##### Re: Ideal gas law: PV=nRT
« Reply #7 on: September 28, 2010, 06:44:54 pm »
Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME

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

Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME