Changeset 477


Ignore:
Timestamp:
Mar 7, 2008, 3:46:44 PM (15 years ago)
Author:
Paula Bettio Staudt
Message:

Some modifications

Location:
branches/packed
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/packed/eml/stage_separators/column.mso

    r455 r477  
    12751275
    12761276        VARIABLES
    1277         stage(NStages) as packedStage_BilletSchultes;
     1277        stage(NStages) as packedStage;#_BilletSchultes;
    12781278       
    12791279        SET
  • branches/packed/eml/stage_separators/tray.mso

    r470 r477  
    365365        rhoL as dens_mass;
    366366        rhoV as dens_mass;
    367         uL as Real (Brief="volume flow rate of liquid, m^3/m^2/s", Default = 0.007);
    368         uV as Real (Brief="volume flow rate of vapor, m^3/m^2/s", Default = 1.14);
     367        uL as velocity (Brief="volume flow rate of liquid, m^3/m^2/s", Lower = 0, Default = 0.007);
     368        uV as velocity (Brief="volume flow rate of vapor, m^3/m^2/s", Lower = 0, Default = 1.14);
    369369        dp as length (Brief="Particle diameter", Default=1e-3);
    370370        invK as Real (Brief="Wall factor");
     
    661661end
    662662
    663 
     663Model packedStage
     664        PARAMETERS
     665outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
     666outer NComp as Integer;
     667        V as volume(Brief="Total Volume of the tray");
     668        Q as heat_rate (Brief="Rate of heat supply");
     669        Ap as area (Brief="Plate area = Atray - Adowncomer");
     670
     671        a as Real (Brief="surface area per packing volume", Unit='m^2/m^3');
     672        g as acceleration;
     673        e as Real (Brief="Void fraction of packing, m^3/m^3");
     674        ds as length (Brief="Column diameter");
     675        Cpo as Real (Brief="Constant for resitance equation"); # Billet and Schultes, 1999.
     676        Mw(NComp)       as molweight    (Brief = "Component Mol Weight");
     677        hs as length (Brief="Height of the packing stage");
     678        Qsio as Real (Brief="Resistance coefficient", Lower = 0);
     679
     680        VARIABLES
     681in      Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.4932, Symbol="_{in}");
     682in      InletL as stream (Brief="Inlet liquid stream", PosX=0.5195, PosY=0, Symbol="_{inL}");
     683in      InletV as stream (Brief="Inlet vapour stream", PosX=0.4994, PosY=1, Symbol="_{inV}");
     684out     OutletL as liquid_stream (Brief="Outlet liquid stream", PosX=0.8277, PosY=1, Symbol="_{outL}");
     685out     OutletV as vapour_stream (Brief="Outlet vapour stream", PosX=0.8043, PosY=0, Symbol="_{outV}");
     686
     687        M(NComp) as mol (Brief="Molar Holdup in the tray");
     688        ML as mol (Brief="Molar liquid holdup");
     689        MV as mol (Brief="Molar vapour holdup");
     690        E as energy (Brief="Total Energy Holdup on tray");
     691        vL as volume_mol (Brief="Liquid Molar Volume");
     692        vV as volume_mol (Brief="Vapour Molar volume");
     693       
     694        miL as viscosity (Brief="Liquid dynamic viscosity", DisplayUnit='kg/m/s');
     695        miV as viscosity (Brief="Vapor dynamic viscosity", DisplayUnit='kg/m/s');
     696        rhoL as dens_mass;
     697        rhoV as dens_mass;
     698        uL as velocity (Brief="volume flow rate of liquid, m^3/m^2/s", Lower = -10, Default = 0.007);
     699        uV as velocity (Brief="volume flow rate of vapor, m^3/m^2/s", Lower = -10, Default = 1.14);
     700        dp as length (Brief="Particle diameter", Default=1e-3);
     701        invK as Real (Brief="Wall factor");
     702#       Rev as Real (Brief="Reynolds number of the vapor stream", Lower = 0, Default=100);
     703#       Qsio as Real (Brief="Resistance coefficient", Lower = 0, Default=100);
     704        Al as area;
     705       
     706        SET
     707        Mw = PP.MolecularWeight();
     708
     709        EQUATIONS
     710        "Component Molar Balance"
     711        diff(M)=Inlet.F*Inlet.z + InletL.F*InletL.z + InletV.F*InletV.z
     712                - OutletL.F*OutletL.z - OutletV.F*OutletV.z;
     713#       diff(sum(M))=Inlet.F + InletL.F + InletV.F - OutletL.F - OutletV.F;
     714#       OutletL.z = OutletV.z;
     715
     716        "Energy Balance"
     717        diff(E) = ( Inlet.F*Inlet.h + InletL.F*InletL.h + InletV.F*InletV.h
     718                - OutletL.F*OutletL.h - OutletV.F*OutletV.h + Q );
     719       
     720        "Molar Holdup"
     721        M = ML*OutletL.z + MV*OutletV.z;
     722       
     723        "Energy Holdup"
     724        E = ML*OutletL.h + MV*OutletV.h - OutletL.P*V;
     725       
     726        "Mol fraction normalisation"
     727        sum(OutletL.z)= 1.0;
     728        sum(OutletL.z)=sum(OutletV.z);
     729       
     730        "Liquid Volume"
     731        vL = PP.LiquidVolume(OutletL.T, OutletL.P, OutletL.z);
     732        "Vapour Volume"
     733        vV = PP.VapourVolume(OutletV.T, OutletV.P, OutletV.z);
     734       
     735        "Chemical Equilibrium"
     736#       OutletV.z = OutletL.z;
     737        PP.LiquidFugacityCoefficient(OutletL.T, OutletL.P, OutletL.z)*OutletL.z =
     738                PP.VapourFugacityCoefficient(OutletV.T, OutletV.P, OutletV.z)*OutletV.z;
     739       
     740        "Thermal Equilibrium"
     741        OutletV.T = OutletL.T;
     742       
     743        "Mechanical Equilibrium"
     744        OutletL.P = OutletV.P;
     745       
     746        "Geometry Constraint"
     747        V*e = ML*vL + MV*vV;
     748       
     749        "Liquid Density"
     750        rhoL = PP.LiquidDensity(OutletL.T, OutletL.P, OutletL.z);
     751        "Vapour Density"
     752        rhoV = PP.VapourDensity(InletV.T, InletV.P, InletV.z);
     753        "Liquid viscosity"
     754        miL = PP.LiquidViscosity(OutletL.T, OutletL.P, OutletL.z);
     755        "Vapour viscosity"
     756        miV = PP.VapourViscosity(InletV.T, InletV.P, InletV.z);
     757       
     758        Al = ML*vL/hs;
     759
     760        "Volume flow rate of liquid, m^3/m^2/s"
     761        uL * Al = OutletL.F * vL;
     762        "Volume flow rate of vapor, m^3/m^2/s"
     763        uV * (Ap*e - Al) = OutletV.F * vV;
     764       
     765        "Liquid holdup and Liquid flow"
     766        vL * ML = (12*miL*a^2*uL/rhoL/g)^1/3 * hs * Ap;
     767       
     768        "Particle diameter"
     769        dp = 6 * (1-e)/a;
     770       
     771        "Wall Factor"
     772        invK = (1 + (2*dp/(3*ds*(1-e))));
     773       
     774#*      "Reynolds number of the vapor stream"
     775        Rev*invK = dp*uV*rhoV / (miV*(1-e));
     776
     777        Qsio = Cpo * (64/Rev + 1.8/Rev^0.08);
     778        if Rev > 1e-4 then
     779                "Resistance Coefficient"       
     780                Qsio = Cpo * (64/Rev + 1.8/Rev^0.08);
     781        else
     782                Qsio = 1;
     783        end
     784*#
     785        "Pressure drop and Vapor flow"
     786        (InletV.P - OutletV.P)/hs  = Qsio*a*uV^2*rhoV*invK / (2*e^3);
     787end
     788
     789# component #1 = nitrogen; #2 = water
     790Model packedStage_AirWater
     791        PARAMETERS
     792outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
     793outer NComp as Integer;
     794        V as volume(Brief="Total Volume of the tray");
     795        Q as heat_rate (Brief="Rate of heat supply");
     796        Ap as area (Brief="Plate area = Atray - Adowncomer");
     797
     798        a as Real (Brief="surface area per packing volume", Unit='m^2/m^3');
     799        g as acceleration;
     800        e as Real (Brief="Void fraction of packing, m^3/m^3");
     801        ds as length (Brief="Column diameter");
     802        Cpo as Real (Brief="Constant for resitance equation"); # Billet and Schultes, 1999.
     803        Ch as Real (Brief="Constant for ah equation"); # Billet and Schultes, 1999.
     804        Mw(NComp)       as molweight    (Brief = "Component Mol Weight");
     805        hs as length (Brief="Height of the packing stage");
     806        #Qsio as Real (Brief="Resistance coefficient", Lower = 0);
     807
     808        VARIABLES
     809in      Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.4932, Symbol="_{in}");
     810in      InletL as stream (Brief="Inlet liquid stream", PosX=0.5195, PosY=0, Symbol="_{inL}");
     811in      InletV as stream (Brief="Inlet vapour stream", PosX=0.4994, PosY=1, Symbol="_{inV}");
     812out     OutletL as liquid_stream (Brief="Outlet liquid stream", PosX=0.8277, PosY=1, Symbol="_{outL}");
     813out     OutletV as vapour_stream (Brief="Outlet vapour stream", PosX=0.8043, PosY=0, Symbol="_{outV}");
     814
     815        M(NComp) as mol (Brief="Molar Holdup in the tray");
     816        ML as mol (Brief="Molar liquid holdup");
     817        MV as mol (Brief="Molar vapour holdup");
     818        E as energy (Brief="Total Energy Holdup on tray");
     819        vL as volume_mol (Brief="Liquid Molar Volume");
     820        vV as volume_mol (Brief="Vapour Molar volume");
     821       
     822        miL as viscosity (Brief="Liquid dynamic viscosity", DisplayUnit='kg/m/s');
     823        miV as viscosity (Brief="Vapor dynamic viscosity", DisplayUnit='kg/m/s');
     824        rhoL as dens_mass;
     825        rhoV as dens_mass;
     826        uL as velocity (Brief="volume flow rate of liquid, m^3/m^2/s", Lower = -10, Default = 0.007);
     827        uV as velocity (Brief="volume flow rate of vapor, m^3/m^2/s", Lower = -10, Default = 1.14);
     828        dp as length (Brief="Particle diameter", Default=1e-3);
     829        invK as Real (Brief="Wall factor");
     830        Rev as Real (Brief="Reynolds number of the vapor stream", Lower = 0, Default=100);
     831#       Rel as Real (Brief="Reynolds number of the liquid stream", Lower = -10, Default=100);
     832#       ah as Real (Brief="Hydraulic surface area", Unit='m^2/m^3');
     833        Qsio as Real (Brief="Resistance coefficient", Lower = 0, Default=100);
     834        Al as area;
     835       
     836        SET
     837        Mw = PP.MolecularWeight();
     838
     839        EQUATIONS
     840        "Component Molar Balance"
     841#       diff(M)=Inlet.F*Inlet.z + InletL.F*InletL.z + InletV.F*InletV.z
     842#               - OutletL.F*OutletL.z - OutletV.F*OutletV.z;
     843        diff(sum(M))=Inlet.F + InletL.F + InletV.F - OutletL.F - OutletV.F;
     844
     845        "Energy Balance"
     846        diff(E) = ( Inlet.F*Inlet.h + InletL.F*InletL.h + InletV.F*InletV.h
     847                - OutletL.F*OutletL.h - OutletV.F*OutletV.h + Q );
     848       
     849        "Molar Holdup"
     850        M = ML*OutletL.z + MV*OutletV.z;
     851       
     852        "Energy Holdup"
     853        E = ML*OutletL.h + MV*OutletV.h - OutletL.P*V;
     854       
     855#       "Mol fraction normalisation"
     856#       sum(OutletL.z)= 1.0;
     857#       sum(OutletL.z)=sum(OutletV.z);
     858       
     859        "Chemical Equilibrium"
     860        OutletV.z = [1 0];
     861        OutletL.z = [0 1];
     862#       PP.LiquidFugacityCoefficient(OutletL.T, OutletL.P, OutletL.z)*OutletL.z =
     863#               PP.VapourFugacityCoefficient(OutletV.T, OutletV.P, OutletV.z)*OutletV.z;
     864       
     865        "Thermal Equilibrium"
     866        OutletV.T = OutletL.T;
     867       
     868        "Mechanical Equilibrium"
     869        OutletL.P = OutletV.P;
     870       
     871        "Geometry Constraint"
     872        V*e = ML*vL + MV*vV;
     873       
     874        "Liquid Density"
     875        rhoL = 999 * 'kg/m^3';#PP.LiquidDensity(OutletL.T, OutletL.P, OutletL.z);
     876        "Vapour Density"
     877        rhoV = 1.19 * 'kg/m^3'; #PP.VapourDensity(InletV.T, InletV.P, InletV.z);
     878        "Liquid viscosity"
     879        miL = 0.001 * 'kg/m/s' ; #PP.LiquidViscosity(OutletL.T, OutletL.P, OutletL.z);
     880        "Vapour viscosity"
     881        miV = PP.VapourViscosity(InletV.T, InletV.P, InletV.z);
     882        "Liquid Volume"
     883        vL = 18 * 'g/mol' / rhoV; #PP.LiquidVolume(OutletL.T, OutletL.P, OutletL.z);
     884        "Vapour Volume"
     885        vV = 28 * 'g/mol' / rhoL; #PP.VapourVolume(OutletV.T, OutletV.P, OutletV.z);
     886
     887        "Cross section area ocupied by the liquid"
     888        Al = ML*vL/hs;
     889
     890        "Volume flow rate of liquid, m^3/m^2/s"
     891        uL * Al = OutletL.F * vL;
     892
     893        "Volume flow rate of vapor, m^3/m^2/s"
     894        uV * (Ap*e - Al) = OutletV.F * vV;
     895
     896        "Particle diameter"
     897        dp = 6 * (1-e)/a;
     898       
     899        "Wall Factor"
     900        invK = (1 + (2*dp/(3*ds*(1-e))));
     901       
     902        "Reynolds number of the vapor stream"
     903        Rev*invK = dp*uV*rhoV / (miV*(1-e));
     904#*      "Reynolds number of the liquid stream"
     905        Rel = uL*rhoL / (a*miL);
     906
     907        if Rel < 5 then
     908                if Rel < 1e-4 then
     909                        ah = 0 * '1/m';
     910                else
     911                        "Hydraulic surface area"
     912                        ah = a * Ch * Rel^0.15 * (uL^2*a/g)^0.1; #(Rel^2*a^3*miL^2/rhoL^2/g)^0.1; #
     913                end
     914        else
     915                ah = a * Ch * 0.85 * Rel^0.25 * (uL^2*a/g)^0.1; #(Rel^2*a^3*miL^2/rhoL^2/g)^0.1; #
     916        end
     917*#     
     918#       if ah equal 0 then
     919#               uL = 0 * 'm/s';
     920#       else
     921                "Liquid holdup and Liquid flow"
     922                vL * ML = V * (12*miL*a^2*uL/rhoL/g)^1/3; # * (ah/a)^1;
     923#       end
     924       
     925        "Resistance Coefficient"       
     926        Qsio = Cpo * (64/Rev + 1.8/Rev^0.08);
     927
     928        "Pressure drop and Vapor flow"
     929        (InletV.P - OutletV.P)/hs  = 3*Qsio*a*uV^2*rhoV*invK / (2*e^3);
     930end
  • branches/packed/sample/stage_separators/sample_column.mso

    r468 r477  
    556556       
    557557        SET
    558         sec.H = 16 * 'm';
     558        sec.H = 4 * 'm';
    559559        sec.NStages = 8;
    560560        sec.stage.Q = 0 * 'kW';
     
    564564        sec.stage.e = 0.951;
    565565        sec.stage.a = 112.6 * 'm^2/m^3';
    566         sec.stage.Qsio = 1;
     566        sec.stage.Qsio = 0.8;
    567567
    568568        INITIAL
    569569        sec.stage.OutletL.T =[283:(325-283)/(sec.NStages-1):325] *'K';
    570         sec.stage.ML = 0.3 * 'kmol';
     570        sec.stage.ML = 0.1 * 'kmol';
    571571        sec.stage.OutletL.z([1:4]) = [0.2, 0.2, 0.2, 0.2];
    572572
     
    574574        #InitialFile = "/home/paula/SectionColumn_Test_with8tray.rlt";
    575575        DAESolver(File="dassl");
     576        NLASolver(File="nlasolver");
    576577        TimeStep = 1;
    577578        TimeEnd = 10;
     
    665666
    666667        # column stages
    667         col.stage.OutletL.T = [(63.5+273.15):((82+273.15)-(63.5+273.15))/(col.NStages-1):(82+273.15)] * 'K';
     668        col.stage.OutletL.T = [(62.5+273.15):((83+273.15)-(62.5+273.15))/(col.NStages-1):(83+273.15)] * 'K';
    668669        #col.stage.Level = 2 * 'cm';
    669670        col.stage.ML = 0.2 * 'mol';
     
    671672
    672673        OPTIONS
     674        DAESolver(File="dassl");
    673675        TimeStep = 0.1;
    674676        TimeEnd = 50;
  • branches/packed/sample/stage_separators/sample_tray.mso

    r470 r477  
    321321        TimeEnd = 60;
    322322end
     323
     324#to compare with tray_Test_1
     325FlowSheet packedStage_Test_1
     326        PARAMETERS
     327        PP      as Plugin(Brief="Physical Properties",
     328                Type="PP",
     329                Components = [ "n-pentane", "benzene"],
     330                LiquidModel = "PR",
     331                VapourModel = "PR"
     332        );
     333        NComp   as Integer;
     334
     335        SET
     336        NComp = PP.NumberOfComponents;
     337       
     338        VARIABLES
     339        deltaP as Real (Unit='atm/m');
     340       
     341        DEVICES
     342        t1 as packedStage;
     343        feed as source;
     344        inL as liquid_stream;
     345        inV as vapour_stream;
     346       
     347        CONNECTIONS
     348        feed.Outlet to t1.Inlet;
     349        inL to t1.InletL;
     350        inV to t1.InletV;
     351
     352        EQUATIONS
     353        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
     354       
     355        SPECIFY
     356        feed.Outlet.F = 113.4 * 'kmol/h';
     357        feed.Outlet.T = 291 * 'K';
     358        feed.Outlet.P = 1.66 * 'atm';
     359        feed.Outlet.z = [0.5, 0.5];
     360       
     361        inL.P = 165 * 'kPa';
     362        inL.T = 315 * 'K'; #310 * 'K';
     363        inL.F = 61.99 * 'kmol/h';
     364        inL.z = [0.1641, 0.8359];#[0.5, 0.5];#
     365
     366        inV.F = 201.25 * 'kmol/h';
     367        inV.P = 150 * 'kPa';
     368        inV.T = 315 * 'K'; #321 * 'K';
     369        inV.z = [0.0584, 0.9416];#[0.5, 0.5];#
     370       
     371        t1.OutletV.P = 145 * 'kPa';
     372       
     373        SET
     374        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
     375        t1.Q = 0 * 'kW';
     376        t1.Ap = 0.8 * 'm^2';
     377        t1.V = 0.8 * 'm^2' * 0.4 * 'm';
     378        t1.ds = 1.009 * 'm';
     379        t1.Cpo = 0.763;
     380        t1.e = 0.951;
     381        t1.a = 112.6 * 'm^2/m^3';
     382        t1.hs = 0.4 * 'm';
     383        t1.Qsio = 1;
     384       
     385        INITIAL
     386        t1.OutletL.T = 315 *'K';
     387        t1.ML = 0.25 * 'kmol';
     388        t1.OutletL.z(1) = 0.1641;
     389       
     390        OPTIONS
     391        DAESolver(File="sundials");
     392        TimeStep = 0.001;
     393        TimeEnd = 0.1;
     394end
     395
     396#to compare with tray_Test_2
     397FlowSheet packedStage_Test_2
     398        PARAMETERS
     399        PP      as Plugin(Brief="Physical Properties",
     400                Type="PP",
     401                Components = [ "isobutane", "n-pentane", "propylene",
     402                "benzene", "isobutene" ],
     403                LiquidModel = "PR",
     404                VapourModel = "PR"
     405        );
     406        NComp   as Integer;
     407
     408        SET
     409        NComp = PP.NumberOfComponents;
     410
     411        VARIABLES
     412        deltaP as Real (Unit='inH2O/m*mm/in');
     413        phiL as Real;
     414       
     415        DEVICES
     416        t1 as packedStage;
     417        feed as source;
     418        inL as liquid_stream;
     419        inV as vapour_stream;
     420       
     421        CONNECTIONS
     422        feed.Outlet to t1.Inlet;
     423        inL to t1.InletL;
     424        inV to t1.InletV;
     425
     426        EQUATIONS
     427        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
     428        phiL = t1.vL * t1.ML/t1.V;
     429
     430        SPECIFY
     431        feed.Outlet.F = 0 * 'kmol/h';
     432        feed.Outlet.T = 300 * 'K';
     433        feed.Outlet.P = 1.66 * 'atm';
     434        feed.Outlet.z = [0.226, 0.425, 0.035, 0.025, 0.289];
     435
     436        inL.F = 71.21 * 'kmol/h';       
     437        inL.P = 2.22 * 'atm';
     438        inL.T = 297.6 * 'K';
     439        inL.z = [0.226, 0.425, 0.035, 0.025, 0.289];
     440
     441        inV.F = 175.3 * 'kmol/h';
     442        inV.P = 2.3062 * 'atm';
     443        inV.T = 308.3 * 'K';
     444        inV.z = [0.265, 0.233, 0.150, 0.014, 0.338];
     445       
     446        #t1.OutletV.P = 2.305 * 'atm';
     447        #t1.OutletV.F = 165 * 'kmol/h';
     448       
     449        SET
     450        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
     451        t1.Q = 0 * 'kW';
     452        #t1.Ap = 0.8 * 'm^2';
     453        #t1.V = 0.8 * 'm^2' * 0.4 * 'm';
     454#       t1.ds = 1.009 * 'm';
     455        t1.Cpo = 0.763;
     456        t1.e = 0.951;
     457        t1.a = 112.6 * 'm^2/m^3';
     458#       t1.hs = 0.4 * 'm';
     459
     460        t1.V = 4 * 'ft^2' * 1 * 'ft';
     461        t1.Ap = 4 * 'ft^2';
     462        t1.hs = 1 * 'ft';
     463        t1.ds = 2.26 * 'ft';
     464        t1.Qsio = 100;
     465
     466        INITIAL
     467        t1.OutletL.T = 290 *'K';
     468        t1.ML = 0.02 * 'kmol';
     469        t1.OutletL.z([1:4]) = [0.226, 0.425, 0.035, 0.025]; #[0.022, 0.0425, 0.0035, 0.95];
     470       
     471        OPTIONS
     472        DAESolver(File="sundials");
     473        #InitialFile = "/home/paula/tray_Test_2.rlt";
     474        TimeStep = 0.01;
     475        TimeEnd = 10;
     476end
     477
     478FlowSheet packedStageAirWater_Test
     479        PARAMETERS
     480        PP      as Plugin(Brief="Physical Properties",
     481                Type="PP",
     482                Components = [ "nitrogen", "water"],
     483                LiquidModel = "IdealLiquid",
     484                VapourModel = "Ideal"
     485        );
     486        NComp   as Integer;
     487
     488        SET
     489        NComp = PP.NumberOfComponents;
     490
     491        VARIABLES
     492        deltaP as Real (Unit='inH2O/m*mm/in');
     493        phiL as Real;
     494       
     495        DEVICES
     496        t1 as packedStage_AirWater;
     497        feed as source;
     498        inL as liquid_stream;
     499        inV as vapour_stream;
     500       
     501        CONNECTIONS
     502        feed.Outlet to t1.Inlet;
     503        inL to t1.InletL;
     504        inV to t1.InletV;
     505
     506        EQUATIONS
     507        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
     508        phiL = t1.vL * t1.ML/t1.V;
     509
     510        SPECIFY
     511        feed.Outlet.F = 0 * 'kmol/h';
     512        feed.Outlet.T = 300 * 'K';
     513        feed.Outlet.P = 1 * 'atm';
     514        feed.Outlet.z = [0 1];
     515
     516        inL.F = 71.21 * 'kmol/h';       
     517        inL.P = 1 * 'atm';
     518        inL.T = 293 * 'K';
     519        inL.z = [0 1];
     520
     521        inV.F = 175.3 * 'kmol/h';
     522        inV.P = 1.06 * 'atm';
     523        inV.T = 295 * 'K';
     524        inV.z = [1 0];
     525       
     526        t1.OutletV.P = 1.05 * 'atm';
     527       
     528        SET
     529        #Metal Bialecki Ring - nominal packing size 25 mm - Billet and Schultes, 1999.
     530        t1.Cpo = 0.891;
     531        t1.Ch = 0.692;
     532        t1.e = 0.956;
     533        t1.a = 210 * 'm^2/m^3';
     534
     535        t1.Q = 0 * 'kW';
     536        t1.V = 0.018 * 'm^2' * 1.4 * 'm';
     537        t1.Ap = 0.018 * 'm^2';
     538        t1.hs = 1.4 * 'm';
     539        t1.ds = 0.15 * 'm';
     540
     541        INITIAL
     542        t1.OutletL.T = 294 *'K';
     543        t1.ML = 0.0002 * 'kmol';
     544        t1.OutletL.z(1) = 0.01;
     545       
     546        OPTIONS
     547        #InitialFile = "/home/paula/packedStageAirWater_Test.rlt";
     548        DAESolver(File="dassl");
     549        TimeStep = 10;
     550        TimeEnd = 100;
     551end
Note: See TracChangeset for help on using the changeset viewer.