PRELIM2Conc - % Record of revisions: % original code:...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function concgas = TLinConc(x,vliq)  % TLINCONC calculates the concentration of L2Pr4 that will end up in the  % gas phase at equilibrium.  The function depends on the total number of  % moles of L2Pr4 released into the laboratory, the volume of air in the  % laboratory (420 m^3), the total volume of water in the laboratory  % (depending on number of fish tanks, each 100 liters) and Henrys Constant  % (250).  % BEE 1510 Introduction to Computer Programming  % Prelim 2  % Timothy Lin  % TA: Celina  %  
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % Record of revisions: % original code: October 30, 2008 % last modified: % Variable Dictionary % x = total number of moles of L2Pr4 released into laboratory % vgas = volume of air in the laboratory % vliq = total volume of water in the laboratory (based on 100 L % fishtanks), m^3 % Hc = Henry's Constant % concgas = molar concentration of L2Pr4, mol/m^3 % Parameters vgas = 420; % m^3 Hc = 250; % Calculation concgas = x/(vgas + Hc*vliq); end % function TLinConc...
View Full Document

This note was uploaded on 09/28/2009 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell University (Engineering School).

Ask a homework question - tutors are online