Commit 25aec403 authored by Matthew Partridge's avatar Matthew Partridge
Browse files

Changed defaults to be mixed air.

Fixed bug in the dia_mol units so that it accepts pm instead of angstroms
Added more details to the README
parent 152d1cea
......@@ -18,19 +18,17 @@ import sys
import GasFill_times
#fiber variables
dia_tube = 0.02 #(mm) capillary diameter
len_tube = 2.7 #(m)
#gas variables
P = 10 #(mbar) average pressure inside capillary
mW = 26.04 #(g/mol)
mW = 28.97 #(g/mol)
temp = 21 #(degC) Temperature of system
dia_mol = 3.34 #(pm) diameter of gas molecule
dia_mol = 359.99 #(pm) diameter of gas molecule
# execute only if run as the entry point into the program
class GafFillGUI(QWidget):
def __init__(self):
......
......@@ -24,7 +24,7 @@ def filltime (dia_tube,len_tube,P,mW,temp,dia_mol):
dia_tube = dia_tube / 1000 #(m)
rad_tube = rad_tube / 1000 #(m)
temp = temp + 273.15 #(K)
dia_mol = 3.34 / 10000000000 #(m)
dia_mol = 359.99 / 1000000000000 #(m)
mW = 26.04 / 1000 #(kg/mol)
mM = mW / 6.02214e23 #(kg)
......@@ -66,7 +66,7 @@ if __name__ == '__main__':
P = 10 #(mbar) average pressure inside capillary
mW = 26.04 #(g/mol)
temp = 21 #(degC) Temperature of system
dia_mol = 3.34 #(pm) diameter of gas molecule
dia_mol = 359.99 #(pm) diameter of gas molecule
# execute only if run as the entry point into the program
filltime(dia_tube,len_tube,P,mW,temp,dia_mol)
......
......@@ -16,7 +16,14 @@ scipy
### Instructions
Run: GasFill_GUI.py
Run: GasFill_GUI.py
Entre the values you wish to test and click calculate to get an accurate fill time.
Core Diameter: This is the diameter of the fibre that will be filled with air.
Fibre length: Length of the fibre to be filled with gas.
Temperature: Temperature of the fiber and gas under test.
Molecular weight: In mixed gasses this is the average molecular weight of the gas in air this is ~28.97 g/mol.
Molecular diameter: In mixed gasses this is the average kinetic diameter of the gas molcucules. In air this is 359.99 pm.
## Authors
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment