From 25aec403f240dbff3d3124fffd897bff8d28fc83 Mon Sep 17 00:00:00 2001 From: Matthew Partridge <m.partridge@me.com> Date: Thu, 1 Mar 2018 13:12:30 +0000 Subject: [PATCH] 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 --- GasFill_GUI.py | 6 ++---- GasFill_times.py | 4 ++-- README.md | 9 ++++++++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/GasFill_GUI.py b/GasFill_GUI.py index 4c7c68a..8eefb08 100644 --- a/GasFill_GUI.py +++ b/GasFill_GUI.py @@ -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): diff --git a/GasFill_times.py b/GasFill_times.py index 68335a8..be857ee 100644 --- a/GasFill_times.py +++ b/GasFill_times.py @@ -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) diff --git a/README.md b/README.md index 50d2ac1..621be7c 100644 --- a/README.md +++ b/README.md @@ -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 -- GitLab