Addon Entry

Now supporting the newest garrysmods.org

New : UserScript to add a search button to any garrysmod.org download page Script Page Install It!

Mirrors

There are no mirrors, request one in the comment section below.
File: The Ideal Gas Law
Version: 0
Garrysmod.org URL: http://www.garrysmod.org/downloads/?a=view&id=129394
Description: Ideal Gas Law Script
Coded By: Fisheater

PV = nRT

P = Pressure (atm),
V = Volume (L),
n = # of moles,
R = 0.0821,
T = Temperature (K)
This is a script that uses the Ideal Gas Law which is PV=nRT, where R is a constant, 0.0821.

With this script, you can calculate a number of things including:
Pressure,
Volume,
# of Moles,
Temperature.

-Installation-
Just drag the lua folder into your garrysmod/garrysmod directory and override if necessary.

-How to use-

Open up the menu with the command: IdealGas_Menu
When in there, enter your values for each and select which units each of the values are in.
*Leave only one value blank to solve for it!* Press Find! and your answer will be printed in chat.

-Units-
Pressure: atm, torr, kpa, pa;
Volume: L, mL, cm^3;
Moles: mol;
Temperature: K, C;

-Example Problems-

I have 4 moles of a gas at a pressure of 5.6 atm and a volume of 12 liters, what is the temperature in Kelvin?

A container has 3 moles of gas with a volume of 60 liters at a temperatuer of 400 K, what is the preesure of inside the container at atm?

Image: The