# Variables
#l=75 cm,d=60 cm,H20 Produced=108kg/s
l=0.75 # cylindrical long
d=0.6; # cylindrical diameter
V=(3.14*d*d*l)/4;
M=18.; # molecular weight
# Calculations
H20_produced=108./M;
H2_used=H20_produced;
O2_used=0.5*H20_produced;
#Rate of reaction of H2(mol/m**3.s)
r_H2=(H2_used/V)*1000;
#Rate of reaction of O2(mol/m**3.s)
r_O2=(O2_used/V)*1000;
# Results
print "rate of reaction of H2mol/m**3.s is %.3e mol used/(m**3 of rocket).s"%(r_H2)
print "rate of reaction of O2mol/m**3.s is %.3e mol/m**3.s"%(r_O2)
# Assuming density of a person = 1000kg/m3
# Variables
d = 1000.;
mass = 75.; # human being
# Calculations
V = mass/d;
#moles of O2 consumed per day
O2_used = (6000./2816)*6;
# Rate of reaction (mol/m3.s)
r_O2 = (O2_used/V)/(24.*3600);
# Results
print "rate of reaction of O2mol/m**3.s is %.3f mol O2 used/m***3.s"%(r_O2)