Changeset 325

Ignore:
Timestamp:
Jul 28, 2007, 9:41:04 PM (15 years ago)
Message:

Set icons positions for most devices.

Location:
trunk
Files:
1 deleted
28 edited

Unmodified
Removed
• trunk/eml/electrical/electrical.mso

 r303 end Model electrical_basic ATTRIBUTES Pallete         = false; Brief           = "Basic model for electrical devices with one input and one output wire."; VARIABLES in      inlet  as wire; out     outlet as wire; end Model electrical as electrical_basic ATTRIBUTES Pallete         = false; Brief           = "Basic electrical device"; Info            = "Model for an electrical device in which the inlet current is equal to the outlet one "; EQUATIONS outlet.i = inlet.i; end Model Resistor as electrical Model Resistor ATTRIBUTES Pallete         = true; PARAMETERS R as resistance; VARIABLES in      inlet  as wire (Brief = "Inlet", PosX=0.3831, PosY=0); out     outlet as wire (Brief = "Outlet", PosX=0.3529, PosY=1); EQUATIONS inlet.V - outlet.V = R * outlet.i; outlet.i = inlet.i; end Model Capacitor as electrical Model Capacitor ATTRIBUTES Pallete         = true; PARAMETERS C as capacitance; VARIABLES q as charge; in      inlet  as wire (Brief = "Inlet", PosX=0.3978, PosY=0); out     outlet as wire (Brief = "Outlet", PosX=0.3965, PosY=1); EQUATIONS diff(q) = inlet.i; inlet.V - outlet.V = (1/C) * q; outlet.i = inlet.i; end Model Indutor as electrical Model Indutor ATTRIBUTES Pallete         = true; PARAMETERS L as indutance; VARIABLES in      inlet  as wire (Brief = "Inlet", PosX=0.4638, PosY=0); out     outlet as wire (Brief = "Outlet", PosX=0.4638, PosY=1); EQUATIONS inlet.V - outlet.V = L * diff(inlet.i); outlet.i = inlet.i; end Model Supply as electrical_basic Model Supply ATTRIBUTES Pallete         = true; V  as voltage; V0 as voltage(Default = 0); VARIABLES in      inlet  as wire (Brief = "Inlet", PosX=0.3923, PosY=0); out     outlet as wire (Brief = "Outlet", PosX=0.3984, PosY=1); EQUATIONS outlet.V = V0;
• trunk/eml/heat_exchangers/DoublePipe.mso

 r301 PARAMETERS outer PP                        as Plugin               (Brief="External Physical Properties", Type="PP"); outer NComp             as Integer      (Brief="Number of Components"); outer PP            as Plugin           (Brief="External Physical Properties", Type="PP"); outer NComp     as Integer      (Brief="Number of Components"); M(NComp)        as molweight    (Brief="Component Mol Weight"); HotSide                                 as Switcher     (Brief="Flag for Fluid Alocation ",Valid=["outer","inner"],Default="outer"); HotSide                         as Switcher     (Brief="Flag for Fluid Alocation ",Valid=["outer","inner"],Default="outer"); innerFlowRegime         as Switcher     (Brief="Inner Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar"); outerFlowRegime         as Switcher     (Brief="Outer Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar"); InnerLaminarCorrelation         as Switcher             (Brief="Heat Transfer Correlation in Laminar Flow for the Inner Side",Valid=["Hausen","Schlunder"],Default="Hausen"); InnerTransitionCorrelation  as Switcher         (Brief="Heat Transfer Correlation in Transition Flow for the Inner Side",Valid=["Gnielinski","ESDU"],Default="Gnielinski"); InnerTurbulentCorrelation  as Switcher                  (Brief="Heat Transfer Correlation in Turbulent Flow for the Inner Side",Valid=["Petukhov","SiederTate"],Default="Petukhov"); InnerTurbulentCorrelation   as Switcher         (Brief="Heat Transfer Correlation in Turbulent Flow for the Inner Side",Valid=["Petukhov","SiederTate"],Default="Petukhov"); OuterLaminarCorrelation         as Switcher             (Brief="Heat Transfer Correlation in Laminar Flow for the Outer Side",Valid=["Hausen","Schlunder"],Default="Hausen"); OuterTransitionCorrelation  as Switcher         (Brief="Heat Transfer Correlation in Transition Flow for the OuterSide",Valid=["Gnielinski","ESDU"],Default="Gnielinski"); OuterTurbulentCorrelation  as Switcher          (Brief="Heat Transfer Correlation in Turbulent Flow for the Outer Side",Valid=["Petukhov","SiederTate"],Default="Petukhov"); Pi                      as constant             (Brief="Pi Number",Default=3.14159265); DoInner  as length                      (Brief="Outside Diameter of Inner Pipe",Lower=1e-6); OuterTurbulentCorrelation   as Switcher         (Brief="Heat Transfer Correlation in Turbulent Flow for the Outer Side",Valid=["Petukhov","SiederTate"],Default="Petukhov"); Pi              as constant             (Brief="Pi Number",Default=3.14159265); DoInner as length                       (Brief="Outside Diameter of Inner Pipe",Lower=1e-6); DiInner as length                       (Brief="Inside Diameter of Inner Pipe",Lower=1e-10); DiOuter as length                       (Brief="Inside Diameter of Outer pipe",Lower=1e-10); Lpipe           as length                       (Brief="Effective Tube Length",Lower=0.1); Kwall           as conductivity         (Brief="Tube Wall Material Thermal Conductivity",Default=1.0); Rfi                     as positive                     (Brief="Inside Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0); Lpipe   as length                       (Brief="Effective Tube Length",Lower=0.1); Kwall   as conductivity         (Brief="Tube Wall Material Thermal Conductivity",Default=1.0); Rfi             as positive                     (Brief="Inside Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0); Rfo             as positive                     (Brief="Outside Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0); VARIABLES in      InletInner              as stream                       (Brief="Inlet Inner Stream"); in      InletOuter              as stream                       (Brief="Inlet Outer Stream"); out     OutletInner             as streamPH             (Brief="Outlet Inner Stream"); out     OutletOuter     as streamPH             (Brief="Outlet Outer Stream"); Details                 as Details_Main                 (Brief="Some Details in the Heat Exchanger"); Inner                   as Main_DoublePipe              (Brief="Inner Side of the Heat Exchanger"); Outer                   as Main_DoublePipe              (Brief="Outer Side of the Heat Exchanger"); in  InletInner          as stream               (Brief="Inlet Inner Stream", PosX=0, PosY=0.5225); in  InletOuter          as stream               (Brief="Inlet Outer Stream", PosX=0.2805, PosY=0); out OutletInner         as streamPH     (Brief="Outlet Inner Stream", PosX=1, PosY=0.5225); out OutletOuter         as streamPH     (Brief="Outlet Outer Stream", PosX=0.7264, PosY=1); Details         as Details_Main         (Brief="Some Details in the Heat Exchanger"); Inner                   as Main_DoublePipe      (Brief="Inner Side of the Heat Exchanger"); Outer                   as Main_DoublePipe      (Brief="Outer Side of the Heat Exchanger"); SET
• trunk/eml/heat_exchangers/HeatExchangerDetailed.mso

 r308 PARAMETERS HotSide                 as Switcher     (Brief="Hot Side in the Exchanger",Valid=["shell","tubes"],Default="shell"); HotSide         as Switcher     (Brief="Hot Side in the Exchanger",Valid=["shell","tubes"],Default="shell"); ShellType       as Switcher     (Brief="TEMA Designation",Valid=["Eshell","Fshell"],Default="Eshell"); VARIABLES in      InletTube               as stream               (Brief="Inlet Tube Stream"); out     OutletTube              as streamPH     (Brief="Outlet Tube Stream"); in      InletShell              as stream               (Brief="Inlet Shell Stream"); out     OutletShell                     as streamPH     (Brief="Outlet Shell Stream"); Details                 as Details_Main                 (Brief="Details in Heat Exchanger"); Tubes                           as Tube_Side_Main       (Brief="Tube Side"); Shell                           as Shell_Side_Main      (Brief="Shell Side"); Baffles                 as Baffles_Main                 (Brief="Baffles"); in  InletTube   as stream               (Brief="Inlet Tube Stream", PosX=0, PosY=0.4915); out OutletTube  as streamPH     (Brief="Outlet Tube Stream", PosX=1, PosY=0.4915); in  InletShell  as stream               (Brief="Inlet Shell Stream", PosX=0.5237, PosY=1); out OutletShell as streamPH     (Brief="Outlet Shell Stream", PosX=0.5237, PosY=0); Details         as Details_Main         (Brief="Details in Heat Exchanger"); Tubes           as Tube_Side_Main       (Brief="Tube Side"); Shell           as Shell_Side_Main      (Brief="Shell Side"); Baffles         as Baffles_Main         (Brief="Baffles"); #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# #                               Auxiliar Variables - Must be hidden #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Nc      as Real         (Brief = "Number of Tube rows Crossed in one Crossflow Section",Lower=1); Nc              as Real         (Brief = "Number of Tube rows Crossed in one Crossflow Section",Lower=1); Ncw     as Real         (Brief = "Number of Effective Crossflow rows in Each Window",Lower=1); a               as Real         (Brief = "Variable for calculating Ji heat transfer correction Factor",Lower=1e-3); b               as Real         (Brief = "Variable for calculating shell side pressure drop friction Factor",Lower=1e-3); Rb      as Real         (Brief = "ByPass Correction Factor for Pressure Drop",Lower=1e-3); Rb              as Real         (Brief = "ByPass Correction Factor for Pressure Drop",Lower=1e-3); Rss     as Real         (Brief = "Correction Factor for Pressure Drop",Lower=1e-3); Rspd    as Real         (Brief = "Pressure Drop Correction Factor for Unequal Baffle Spacing",Lower=1e-3); mw      as Real         (Brief = "Mass Velocity in Window Zone", Unit='kg/m^2/s'); mw              as Real         (Brief = "Mass Velocity in Window Zone", Unit='kg/m^2/s'); PARAMETERS outer PP                as Plugin               (Brief="External Physical Properties",Type = "PP"); outer PP            as Plugin           (Brief="External Physical Properties",Type = "PP"); outer NComp     as Integer      (Brief="Number of Components"); Pi                              as constant    (Brief="Pi Number",Default=3.14159265); M(NComp)  as molweight  (Brief="Component Mol Weight"); TubeFlowRegime           as Switcher    (Brief="Tube Side Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar"); ShellFlowRegime                 as Switcher    (Brief="Shell Side Flow Regime ",Valid=["deep laminar","laminar","turbulent"],Default="deep laminar"); ShellRange                      as Switcher    (Brief="Shell Side Flow Regime Range for Correction Factor",Valid=["range1","range2","range3", "range4","range5"],Default="range1"); Side                                            as Switcher    (Brief="Flag for Fluid Alocation ",Valid=["shell","tubes"],Default="shell"); LaminarCorrelation      as Switcher    (Brief="Tube Heat Transfer Correlation in Laminar Flow",Valid=["Hausen","Schlunder"],Default="Hausen"); TransitionCorrelation  as Switcher      (Brief="Tube Heat Transfer Correlation in Transition Flow",Valid=["Gnielinski","ESDU"],Default="Gnielinski"); Pi                      as constant    (Brief="Pi Number",Default=3.14159265); M(NComp)        as molweight    (Brief="Component Mol Weight"); TubeFlowRegime            as Switcher   (Brief="Tube Side Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar"); ShellFlowRegime           as Switcher   (Brief="Shell Side Flow Regime ",Valid=["deep laminar","laminar","turbulent"],Default="deep laminar"); ShellRange                as Switcher   (Brief="Shell Side Flow Regime Range for Correction Factor",Valid=["range1","range2","range3", "range4","range5"],Default="range1"); Side                              as Switcher   (Brief="Flag for Fluid Alocation ",Valid=["shell","tubes"],Default="shell"); LaminarCorrelation    as Switcher       (Brief="Tube Heat Transfer Correlation in Laminar Flow",Valid=["Hausen","Schlunder"],Default="Hausen"); TransitionCorrelation as Switcher       (Brief="Tube Heat Transfer Correlation in Transition Flow",Valid=["Gnielinski","ESDU"],Default="Gnielinski"); TurbulentCorrelation  as Switcher       (Brief="Tube Heat Transfer Correlation in Turbulent Flow",Valid=["Petukhov","SiederTate"],Default="Petukhov");
• trunk/eml/heat_exchangers/HeatExchangerSimplified.mso

 r307 PARAMETERS outer PP                as Plugin               (Brief="External Physical Properties", Type="PP"); outer NComp     as Integer      (Brief="Number of Components"); outer PP            as Plugin   (Brief="External Physical Properties", Type="PP"); outer NComp     as Integer  (Brief="Number of Components"); M(NComp)  as molweight  (Brief="Component Mol Weight"); VARIABLES in      InletHot            as stream           (Brief="Inlet Hot Stream"); out     OutletHot   as streamPH         (Brief="Outlet Hot Stream"); in      InletCold       as stream               (Brief="Inlet Cold Stream"); out     OutletCold  as streamPH         (Brief="Outlet Cold Stream"); xh(NComp)       as fraction(Brief = "Liquid Molar Fraction in Hot Side"); yh(NComp) as fraction(Brief = "Vapour Molar Fraction in Hot Side"); vh                      as fraction(Brief = "Vapour Molar Fraction in Hot Side"); xc(NComp)       as fraction(Brief = "Liquid Molar Fraction in Cold Side"); yc(NComp) as fraction(Brief = "Vapour Molar Fraction in Cold Side"); vc                      as fraction(Brief = "Vapour Molar Fraction in Cold Side"); Details         as Details_Main                         (Brief="Heat Exchanger Details"); HotSide         as Main_Simplified              (Brief="Heat Exchanger Hot Side"); ColdSide        as Main_Simplified              (Brief="Heat Exchanger Cold Side"); in  InletHot    as stream               (Brief="Inlet Hot Stream", PosX=0, PosY=0.4915); out OutletHot   as streamPH     (Brief="Outlet Hot Stream", PosX=1, PosY=0.4915); in  InletCold   as stream               (Brief="Inlet Cold Stream", PosX=0.5237, PosY=1); out OutletCold  as streamPH     (Brief="Outlet Cold Stream", PosX=0.5237, PosY=0); xh(NComp)       as fraction             (Brief = "Liquid Molar Fraction in Hot Side"); yh(NComp)       as fraction             (Brief = "Vapour Molar Fraction in Hot Side"); vh                      as fraction             (Brief = "Vapour Molar Fraction in Hot Side"); xc(NComp)       as fraction             (Brief = "Liquid Molar Fraction in Cold Side"); yc(NComp)       as fraction             (Brief = "Vapour Molar Fraction in Cold Side"); vc                      as fraction             (Brief = "Vapour Molar Fraction in Cold Side"); Details     as Details_Main     (Brief="Heat Exchanger Details"); HotSide         as Main_Simplified      (Brief="Heat Exchanger Hot Side"); ColdSide        as Main_Simplified      (Brief="Heat Exchanger Cold Side"); SET
• trunk/eml/heat_exchangers/Mheatex.mso

 r307 PARAMETERS outer PP                                        as Plugin       (Brief="Physical Properties", Type="PP"); outer   NComp                   as Integer      (Brief="Number of Components"); FlowDirection           as Switcher(Brief="Flow Direction",Valid=["counter","cocurrent"],Default="cocurrent"); Ncold                                           as Integer      (Brief="Number of Inlet Cold Streams",Lower=1); Nhot                                            as Integer      (Brief="Number of Inlet Hot Streams",Lower=1); outer PP                        as Plugin       (Brief="Physical Properties", Type="PP"); outer NComp             as Integer      (Brief="Number of Components"); FlowDirection   as Switcher     (Brief="Flow Direction",Valid=["counter","cocurrent"],Default="cocurrent"); Ncold                   as Integer      (Brief="Number of Inlet Cold Streams",Lower=1); Nhot                    as Integer      (Brief="Number of Inlet Hot Streams",Lower=1); VARIABLES in      InletHot(Nhot)                  as stream               (Brief="Inlet Hot Streams"); out     OutletHot(Nhot)                 as streamPH     (Brief="Outlet Hot Streams"); in      InletCold(Ncold)                as stream               (Brief="Inlet Cold Streams"); out     OutletCold(Ncold)       as streamPH     (Brief="Outlet Cold Streams"); in  InletHot(Nhot)      as stream       (Brief="Inlet Hot Streams", PosX=0, PosY=0.7156); out OutletHot(Nhot)     as streamPH (Brief="Outlet Hot Streams", PosX=1, PosY=0.7156); in  InletCold(Ncold)    as stream       (Brief="Inlet Cold Streams", PosX=1, PosY=0.2793); out OutletCold(Ncold)   as streamPH     (Brief="Outlet Cold Streams", PosX=0, PosY=0.2793); Method  as LMTD_Basic   (Brief="Log Mean Temperature Difference Method"); Q               as power                        (Brief="Heat Transfer", Default=7000, Lower=1e-6, Upper=1e10); UA              as Real                 (Brief="UA product",Unit='W/K',Lower=1e-8); Q               as power        (Brief="Heat Transfer", Default=7000, Lower=1e-6, Upper=1e10); UA              as Real     (Brief="UA product",Unit='W/K',Lower=1e-8); EQUATIONS
• trunk/eml/heat_exchangers/PHE.mso

 r307 Model PHE ATTRIBUTES ATTRIBUTES Icon            = "icon/phe"; Pallete         = true; "; PARAMETERS outer PP                        as Plugin                       (Brief="External Physical Properties", Type="PP"); outer NComp             as Integer              (Brief="Number of Chemical Components"); Pi                                              as constant             (Brief="Pi Number",Default=3.14159265); Kp1(15)                         as constant             (Brief="First constant in Kumar calculation for Pressure Drop"); Kp2(15)                         as constant             (Brief="Second constant in Kumar calculation for Pressure Drop"); Kc1(14)                         as constant             (Brief="First constant in Kumar calculation for Heat Transfer"); Kc2(14)                         as constant             (Brief="Second constant Kumar calculation for Heat Transfer"); PARAMETERS outer PP                as Plugin               (Brief="External Physical Properties", Type="PP"); outer NComp             as Integer      (Brief="Number of Chemical Components"); Pi                              as constant     (Brief="Pi Number",Default=3.14159265); Kp1(15)                 as constant     (Brief="First constant in Kumar calculation for Pressure Drop"); Kp2(15)                 as constant     (Brief="Second constant in Kumar calculation for Pressure Drop"); Kc1(14)                 as constant     (Brief="First constant in Kumar calculation for Heat Transfer"); Kc2(14)                 as constant     (Brief="Second constant Kumar calculation for Heat Transfer"); M(NComp)                as molweight    (Brief="Component Mol Weight"); ChevronAngle    as Switcher                     (Brief="Chevron Corrugation Inclination Angle in Degrees ",Valid=["30","45","50","60","65"],Default="30"); Method                          as Switcher                     (Brief="Method of Thermal Calculation",Valid=["NTU","LMTD"],Default="NTU"); SideOne                         as Switcher                     (Brief="Fluid Alocation in the Side I - (The odd channels)",Valid=["hot","cold"],Default="hot"); Nchannels                       as Integer                              (Brief="Total Number of Channels in The Whole Heat Exchanger"); Nplates                         as Integer                              (Brief="Total Number of Plates in The Whole Heat Exchanger",Default=25); NpassHot                        as Integer                              (Brief="Number of Passes for Hot Side"); NpassCold                       as Integer                              (Brief="Number of Passes for Cold Side"); Dports                                  as length                               (Brief="Ports Diameter",Lower=1e-6); Atotal                                  as area                                 (Brief="Total Effective  Area",Lower=1e-6); Aports                                  as area                                 (Brief="Port Opening  Area of Plate",Lower=1e-6); Achannel                        as area                                 (Brief="Cross-Sectional Area for Channel Flow",Lower=1e-6); Dh                                              as length                               (Brief="Equivalent Diameter of Channel",Lower=1e-6); Depth                           as length                               (Brief="Corrugation Depth",Lower=1e-6); PhiFactor                       as Real                                 (Brief="Enlargement Factor",Lower=1e-6); Lp                                              as length                               (Brief="Plate Vertical Distance between Port Centers",Lower=0.1); Lpack                                   as length                               (Brief="Compact Plate Pack Length",Lower=0.1); Lv                                              as length                               (Brief="Vertical Ports Distance",Lower=0.1); Lh                                              as length                               (Brief="Plate Horizontal Distance between Port Centers",Lower=0.1); Lw                                              as length                               (Brief="Plate Width",Lower=0.1); pitch                                   as length                               (Brief="Plate Pitch",Lower=0.1); pt                                              as length                               (Brief="Plate Thickness",Lower=0.1); Kwall                                   as conductivity         (Brief="Plate Thermal Conductivity",Default=1.0); Rfh                                             as positive                             (Brief="Hot Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0); Rfc                                             as positive                             (Brief="Cold Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0); VARIABLES in      InletHot                as stream                       (Brief="Inlet Hot Stream"); in      InletCold           as stream                   (Brief="Inlet Cold Stream"); out     OutletHot       as streamPH     (Brief="Outlet Hot Stream"); out     OutletCold      as streamPH     (Brief="Outlet Cold Stream"); HotSide                         as Main_PHE                             (Brief="Plate Heat Exchanger Hot Side"); ColdSide                        as Main_PHE                             (Brief="Plate Heat Exchanger Cold Side"); Thermal                         as Thermal_PHE          (Brief="Thermal Results"); SET ChevronAngle    as Switcher             (Brief="Chevron Corrugation Inclination Angle in Degrees ",Valid=["30","45","50","60","65"],Default="30"); Method                  as Switcher             (Brief="Method of Thermal Calculation",Valid=["NTU","LMTD"],Default="NTU"); SideOne                 as Switcher             (Brief="Fluid Alocation in the Side I - (The odd channels)",Valid=["hot","cold"],Default="hot"); Nchannels               as Integer              (Brief="Total Number of Channels in The Whole Heat Exchanger"); Nplates                 as Integer              (Brief="Total Number of Plates in The Whole Heat Exchanger",Default=25); NpassHot                as Integer              (Brief="Number of Passes for Hot Side"); NpassCold               as Integer              (Brief="Number of Passes for Cold Side"); Dports                  as length               (Brief="Ports Diameter",Lower=1e-6); Atotal                  as area                 (Brief="Total Effective  Area",Lower=1e-6); Aports                  as area                 (Brief="Port Opening  Area of Plate",Lower=1e-6); Achannel                as area                 (Brief="Cross-Sectional Area for Channel Flow",Lower=1e-6); Dh                      as length               (Brief="Equivalent Diameter of Channel",Lower=1e-6); Depth                   as length               (Brief="Corrugation Depth",Lower=1e-6); PhiFactor               as Real                 (Brief="Enlargement Factor",Lower=1e-6); Lp                              as length               (Brief="Plate Vertical Distance between Port Centers",Lower=0.1); Lpack                   as length               (Brief="Compact Plate Pack Length",Lower=0.1); Lv                              as length               (Brief="Vertical Ports Distance",Lower=0.1); Lh                              as length               (Brief="Plate Horizontal Distance between Port Centers",Lower=0.1); Lw                              as length               (Brief="Plate Width",Lower=0.1); pitch                   as length               (Brief="Plate Pitch",Lower=0.1); pt                              as length               (Brief="Plate Thickness",Lower=0.1); Kwall                   as conductivity (Brief="Plate Thermal Conductivity",Default=1.0); Rfh                             as positive             (Brief="Hot Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0); Rfc                             as positive             (Brief="Cold Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0); VARIABLES in  InletHot        as stream           (Brief="Inlet Hot Stream", PosX=0, PosY=0.7156); in  InletCold       as stream           (Brief="Inlet Cold Stream", PosX=1, PosY=0.7156); out OutletHot           as streamPH     (Brief="Outlet Hot Stream", PosX=0, PosY=0.2793); out OutletCold          as streamPH     (Brief="Outlet Cold Stream", PosX=1, PosY=0.2793); HotSide                 as Main_PHE             (Brief="Plate Heat Exchanger Hot Side"); ColdSide                as Main_PHE             (Brief="Plate Heat Exchanger Cold Side"); Thermal                 as Thermal_PHE  (Brief="Thermal Results"); SET #"First constant for Kumar's calculating Pressure Drop" Atotal =(Nplates-2)*Lw*Lp*PhiFactor; EQUATIONS EQUATIONS "Hot    Stream Average Temperature" ColdSide.Properties.Average.Mw = sum(M*InletCold.z); if InletCold.v equal 0 if InletCold.v equal 0 then ColdSide.Properties.Wall.Mu             =       PP.VapourViscosity(ColdSide.Properties.Wall.Twall,ColdSide.Properties.Average.P,InletCold.z); end if InletHot.v equal 0 end if InletHot.v equal 0 then HotSide.Properties.Wall.Mu              =               PP.VapourViscosity(HotSide.Properties.Wall.Twall,HotSide.Properties.Average.P,InletHot.z); end end "Energy Balance Hot Stream" OutletCold.z=InletCold.z; switch SideOne switch SideOne case "cold": ColdSide.PressureDrop.Npassage = (2*Nchannels-1+(-1)^(Nchannels))/(4*NpassCold); end end "Hot Stream Mass Flux in the Channel" ColdSide.PressureDrop.Pdrop =ColdSide.PressureDrop.DPchannel+ColdSide.PressureDrop.DPports; switch ChevronAngle #Pressure Drop Friction Factor According to kumar's (1984) switch ChevronAngle #Pressure Drop Friction Factor According to kumar's (1984) case "30": #    ChevronAngle <= 30 end end switch ChevronAngle # Heat Transfer Coefficient According to kumar's (1984) end switch ChevronAngle # Heat Transfer Coefficient According to kumar's (1984) case "30": #    ChevronAngle <= 30 end end end "Hot Stream Velocity in Channels" Thermal.Ud*(1/HotSide.HeatTransfer.hcoeff +pt/Kwall+1/ColdSide.HeatTransfer.hcoeff + Rfc + Rfh)=1; switch Method switch Method case "LMTD": Thermal.Q = Thermal.Eft*Thermal.Cmin*(InletHot.T-InletCold.T); end end "Temperature Difference at Inlet - Counter Flow" ColdSide.HeatTransfer.NTU*ColdSide.HeatTransfer.WCp = Thermal.Ud*Atotal; if Thermal.Cr equal 1 # To be Fixed: Effectiveness in true counter flow ! if Thermal.Cr equal 1 # To be Fixed: Effectiveness in true counter flow ! then Thermal.Fc =(ln(abs(1-Thermal.Eft*Thermal.Cr))-ln(abs(1-Thermal.Eft)))/(Thermal.NTU*(1-Thermal.Cr)); end end end
• trunk/eml/heat_exchangers/heater.mso

 r319 *--------------------------------------------------------------------*# using "streams.mso"; using "streams"; Model heater Model heater_basic ATTRIBUTES Pallete         = true; Icon            = "icon/heater"; Brief   = "Heater or Cooler"; ATTRIBUTES Pallete         = false; Brief   = "Basic model for Heater or Cooler"; Info            = "Determines thermal and phase conditions of an outlet stream"; PARAMETERS outer PP        as Plugin       (Brief="Physical Properties", Type="PP"); outer NComp     as Integer      (Brief="Number of Components"); Ninlet          as Integer      (Brief="Number of Inlet Streams"); Kvalues         as Switcher (Brief="Option for Display Phase Equilibrium K-values",Valid=["yes","no"], Default="yes"); VARIABLES QDuty                   as power                        (Brief = "Actual Duty"); Vfrac                   as fraction             (Brief = "Vapor fraction Outlet Stream"); Lfrac                   as fraction             (Brief = "Liquid fraction Outlet Stream"); Kvalue(NComp)   as Real                         (Brief = "Phase Equilibrium K-values"); in  Inlet(Ninlet )  as stream                   (Brief="Inlet Streams", PosX=0, PosY=0.4833); out Outlet              as streamPH                     (Brief="Outlet Stream", PosX=1, PosY=0.4782); PARAMETERS outer PP                        as Plugin               (Brief="Physical Properties", Type="PP"); outer NComp     as Integer      (Brief="Number of Components"); Ninlet          as Integer      (Brief="Number of Inlet Streams"); Kvalues          as Switcher (Brief="Option for Display Phase Equilibrium K-values",Valid=["yes","no"], Default="yes"); SUBMODELS in  Inlet(Ninlet )  as stream                           (Brief="Inlet Streams"); out Outlet              as streamPH                             (Brief="Outlet Stream"); in InletHeat            as energy_stream                (Brief ="Inlet Heat Stream"); out OutletHeat  as energy_stream                (Brief ="Outlet Heat Stream"); EQUATIONS VARIABLES QDuty                                   as power                        (Brief = "Actual Duty"); Vfrac                                   as fraction             (Brief = "Vapor fraction Outlet Stream"); Lfrac                                           as fraction             (Brief = "Liquid fraction Outlet Stream"); Kvalue(NComp)   as Real                         (Brief = "Phase Equilibrium K-values"); EQUATIONS "Flow" "Flow" Outlet.F = sum(Inlet.F); for j in [1 : NComp] for j in [1 : NComp] "Composition" "Composition" Outlet.F*Outlet.z(j) = sum(Inlet.F*Inlet.z(j)); end end "Vapor fraction Outlet Stream" "Vapor fraction Outlet Stream" Vfrac = Outlet.v; "Liquid fraction Outlet Stream" "Liquid fraction Outlet Stream" Lfrac = 1-Vfrac; "Heat Duty" "Heat Duty" QDuty = Outlet.F*Outlet.h - sum(Inlet.F*Inlet.h); "Net Duty" OutletHeat.Q = InletHeat.Q - QDuty; switch Kvalues # Fix for better convergence !!! switch Kvalues # Fix for better convergence !!! case "yes": "K-values Phase Equilibrium" "K-values Phase Equilibrium" Kvalue*(Outlet.x) = Outlet.y; case "no": "K-values Phase Equilibrium" "K-values Phase Equilibrium" Kvalue = 1; end end end Model heater as heater_basic ATTRIBUTES Pallete         = true; Icon            = "icon/heater"; Brief   = "Heater"; Info            = "Determines thermal and phase conditions of an outlet stream"; VARIABLES in  InletQ              as energy_stream        (Brief ="Inlet Heat Stream", PosX=0.1662, PosY=1); out OutletQ             as energy_stream        (Brief ="Outlet Heat Stream", PosX=0.8245, PosY=0); EQUATIONS "Net Duty" OutletQ.Q = InletQ.Q - QDuty; end Model cooler as heater_basic ATTRIBUTES Pallete         = true; Icon            = "icon/cooler"; Brief   = "Cooler"; Info            = "Determines thermal and phase conditions of an outlet stream"; VARIABLES in  InletQ              as energy_stream        (Brief ="Inlet Heat Stream", PosX=0.8245, PosY=1); out OutletQ             as energy_stream        (Brief ="Outlet Heat Stream", PosX=0.1662, PosY=0); EQUATIONS "Net Duty" OutletQ.Q = InletQ.Q - QDuty; end
• trunk/eml/heat_exchangers/icon/cooler.svg

 r96 id="svg10172" sodipodi:version="0.32" inkscape:version="0.44.1" inkscape:version="0.45.1" width="210mm" height="297mm" sodipodi:docbase="C:\Documents and Settings\Administrador\Meus documentos\Bolsa Simulação\Desenhos2" sodipodi:docname="cooler.svg"> sodipodi:docbase="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon" sodipodi:docname="cooler.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape" inkscape:export-filename="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon\cooler.png" inkscape:export-xdpi="90" inkscape:export-ydpi="90"> transform="matrix(-1.2112799e-2,0.9999266,0.9999266,1.2112799e-2,45.291601,29.348951)" /> inkscape:transform-center-x="-7.806366" inkscape:transform-center-y="50.694172" /> inkscape:transform-center-x="-14.938788" inkscape:transform-center-y="-37.917701" /> inkscape:transform-center-x="-15.639411" inkscape:transform-center-y="-38.515247" />
• trunk/eml/heat_exchangers/icon/heater.svg

 r316 width="210mm" height="297mm" sodipodi:docbase="E:\Documentos Pessoais\Gerson\repositorio\trunk\eml\heat_exchangers\icon" sodipodi:docbase="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon" sodipodi:docname="heater.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape"> inkscape:output_extension="org.inkscape.output.svg.inkscape" inkscape:export-filename="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon\heater.png" inkscape:export-xdpi="90" inkscape:export-ydpi="90"> id="base" showgrid="true" inkscape:zoom="0.71648337" inkscape:cx="285.99484" inkscape:cy="609.30613" inkscape:zoom="1.0132605" inkscape:cx="439.12625" inkscape:cy="717.22114" inkscape:window-x="0" inkscape:window-y="22" inkscape:transform-center-x="-38.963517" inkscape:transform-center-y="-14.381614" />
• trunk/eml/mixers_splitters/mixer.mso

 r313 VARIABLES in  Inlet_mixer(Ninlet) as stream (Brief = "Inlet streams"); out Outlet                      as stream (Brief = "Outlet stream"); in  Inlet_mixer(Ninlet) as stream (Brief = "Inlet streams", PosX=0.5, PosY=0); out Outlet                      as stream (Brief = "Outlet stream", PosX=1, PosY=0.5059); out Out_int                             as stream (Brief = "Intermediate Outlet stream"); zeroQ as energy_source (Brief="No Heat rate supplied");
• trunk/eml/mixers_splitters/splitter.mso

 r304 VARIABLES in      Inlet   as stream; out Outlet(NOutlet)  as stream; in      Inlet   as stream (Brief = "Inlet stream", PosX=0, PosY=0.5001); out Outlet(NOutlet)  as stream (Brief = "Outlet streams", PosX=1, PosY=0.5); frac(NOutlet) as fraction (Brief = "Distribution of Outlets", Default=0.5); VARIABLES in  Inlet   as stream; out Outlet1 as stream; out Outlet2 as stream; in  Inlet   as stream (Brief = "Inlet stream", PosX=0, PosY=0.5069); out Outlet1 as stream (Brief = "Outlet stream 1", PosX=1, PosY=0.3027); out Outlet2 as stream (Brief = "Outlet stream 2", PosX=1, PosY=0.7141); frac as fraction (Brief = "Fraction to Outlet 1");
• trunk/eml/pressure_changers/compressor.mso

 r305 *--------------------------------------------------------------------*# using "pressure_changers/flux_machine_basic"; using "streams"; Model centrifugal_compressor as flux_machine_basic_PH Model centrifugal_compressor ATTRIBUTES Pallete         = true; Ws                      as energy_mol   (Brief = "Isentropic Head"); Tiso            as temperature  (Brief = "Isentropic Temperature"); Effp            as efficiency   (Brief = "Politropic efficiency"); Effp            as positive     (Brief = "Politropic efficiency"); Effs            as efficiency   (Brief = "Isentropic efficiency"); FPower          as power                (Brief = "Fluid Power"); Mwm                     as molweight    (Brief = "Mixture Molar Weight"); in      Inlet           as stream               (Brief = "Inlet stream", PosX=0, PosY=0.5086); out     Outlet          as streamPH             (Brief = "Outlet stream", PosX=1, PosY=0.5022); SET "Calculate Isentropic Outlet Temperature" Tiso = Inlet.T * (Outlet.P/Inlet.P)^((k-1)/k); #       PP.VapourEntropy(Tiso, Outlet.P, Outlet.z) = #               PP.VapourEntropy(Inlet.T, Inlet.P, Inlet.z); "Calculate Real Outlet Temperature" Effs * (Outlet.T- Inlet.T) = (Tiso - Inlet.T);
• trunk/eml/pressure_changers/pump.mso

 r305 *--------------------------------------------------------------------*# using "pressure_changers/flux_machine_basic"; using "streams"; Model centrifugal_pump as flux_machine_basic Model centrifugal_pump ATTRIBUTES Pallete         = true; pvm               as pressure           (Brief = "Mixture Vapour Pressure"); NPSHa     as length                     (Brief = "Available Net Positive Suction Head"); NS                as positive           (Brief = "Specific Speed", Unit = '(rpm*(gal/min)^0.5)/(m^3/4)'); NS                as positive           (Brief = "Specific Speed"); Q                 as flow_vol           (Brief = "Volumetric Flow Rate"); vm                as vol_mol            (Brief = "Mixture Molar Volume"); in      Inlet     as stream                     (Brief = "Inlet stream", PosX=1, PosY=0.4025); out     Outlet    as stream                     (Brief = "Outlet stream", PosX=0, PosY=0); SET Mw = PP.MolecularWeight(); "Calculate Volumetric Flow Rate" Q = Inlet.F*vm; "Calculate Specific Speed" NS = N*(Q^0.5)/(Head^3/4); NS = N*(Q^0.5)/((Head/Mwm)^(3/4)); end #*------------------------------------------------------------------- VARIABLES in      Inlet as stream; out     Outlet as streamPH; in      Inlet           as stream               (Brief = "Inlet stream", PosX=0, PosY=0.4727); out     Outlet          as streamPH             (Brief = "Outlet stream", PosX=1, PosY=0.1859); dP as press_delta (Brief="Pump head");
• trunk/eml/pressure_changers/turbine.mso

 r305 *--------------------------------------------------------------------*# using "pressure_changers/flux_machine_basic"; using "streams"; Model Hidraulic_Turbine as flux_machine_basic Model Hidraulic_Turbine ATTRIBUTES Pallete         = true; rho             as dens_mass            (Brief = "Specific Mass"); Cp              as cp_mol                       (Brief = "Heat Capacity"); in      Inlet   as stream                       (Brief = "Inlet stream", PosX=0, PosY=0.5086); out     Outlet  as stream                       (Brief = "Outlet stream", PosX=1, PosY=0.5022); SET Mw = PP.MolecularWeight(); "Calculate Head" Head * rho = Pdiff; Head = Outlet.h - Inlet.h; end
• trunk/eml/pressure_changers/valve.mso

 r305 *-------------------------------------------------------------------*# using "pressure_changers/flux_machine_basic"; using "streams"; Model valve as flux_machine_basic_PH Model valve ATTRIBUTES Pallete         = true; vm              as vol_mol                      (Brief = "Mixture Molar Volume"); x               as fraction             (Brief = "Opening"); in      Inlet   as stream                       (Brief = "Inlet stream", PosX=0, PosY=0.7365); out     Outlet  as streamPH                     (Brief = "Outlet stream", PosX=1, PosY=0.7365); SET VARIABLES in      Inlet as stream; out     Outlet as streamPH; in      Inlet   as stream       (Brief = "Inlet stream", PosX=0, PosY=0.7365); out     Outlet  as streamPH     (Brief = "Outlet stream", PosX=1, PosY=0.7365); x as fraction (Brief="Plug Position"); rho as dens_mass (Brief="Fluid Density", Default=1e3);
• trunk/eml/reactors/batch.mso

 r313 VARIABLES in      Inlet      as stream; C(NComp) as conc_mol(Brief="Components concentration"); r(NReac) as reaction_mol(Brief = "Reaction rates"); T          as temperature(Brief="Reactor temperature"); P          as pressure(Brief="Reactor pressure"); in      Inlet      as stream (Brief="Inlet stream", PosX=0, PosY=0); C(NComp) as conc_mol (Brief="Components concentration"); r(NReac) as reaction_mol (Brief = "Reaction rates"); T          as temperature (Brief="Reactor temperature"); P          as pressure (Brief="Reactor pressure"); Vr         as volume (Brief = "Reacting Volume");
• trunk/eml/reactors/cstr.mso

 r302 VARIABLES in              Inlet   as stream               (Brief="Inlet Stream"); out     Outlet  as streamPH     (Brief="Outlet Stream"); in      Inlet   as stream       (Brief="Inlet Stream", PosX=0, PosY=0); out     Outlet  as streamPH     (Brief="Outlet Stream", PosX=1, PosY=1); q                       as heat_rate    (Brief="Heat");
• trunk/eml/reactors/pfr.mso

 r302 VARIABLES in              Inlet   as stream       (Brief = "Inlet Stream"); out     Outlet  as stream       (Brief = "Outlet Stream"); in      Inlet   as stream       (Brief = "Inlet Stream", PosX=0, PosY=0.5076); out     Outlet  as stream       (Brief = "Outlet Stream", PosX=1, PosY=0.5236); str(NDisc+1) as streamPH;
• trunk/eml/stage_separators/batch_dist.mso

 r318 VARIABLES in      Inlet   as stream (Brief="Feed stream"); in      InletL  as stream (Brief="Liquid inlet stream"); out     OutletV as vapour_stream (Brief="Vapour outlet stream"); in      InletQ  as energy_stream (Brief="Heat supplied"); in      Inlet   as stream (Brief="Feed stream", PosX=0, PosY=0.9385); in      InletL  as stream (Brief="Liquid inlet stream", PosX=0.5, PosY=0.1984); # FIXME out     OutletV as vapour_stream (Brief="Vapour outlet stream", PosX=1, PosY=0.1984); in      InletQ  as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.9578); M(NComp)        as mol                  (Brief="Molar Holdup in the distillator");
• trunk/eml/stage_separators/condenser.mso

 r310 VARIABLES in      InletV as stream(Brief="Vapour inlet stream"); out     OutletL as liquid_stream(Brief="Liquid outlet stream"); out     OutletV as vapour_stream(Brief="Vapour outlet stream"); in      InletQ as energy_stream (Brief="Heat supplied"); in      InletV as stream(Brief="Vapour inlet stream", PosX=0.1164, PosY=0); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4513, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4723, PosY=0); in      InletQ as energy_stream (Brief="Cold supplied", PosX=1, PosY=0.6311); M(NComp) as mol (Brief="Molar Holdup in the tray"); VARIABLES in      InletV as stream(Brief="Vapour inlet stream"); out     OutletL as liquid_stream(Brief="Liquid outlet stream"); in      InletQ as energy_stream (Brief="Heat supplied"); in      InletV as stream(Brief="Vapour inlet stream", PosX=0.3431, PosY=0); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.34375, PosY=1); in      InletQ as energy_stream (Brief="Cold supplied", PosX=1, PosY=0.5974); DP as press_delta (Brief="Pressure Drop in the condenser"); VARIABLES in      InletV as stream(Brief="Vapour inlet stream"); out     OutletL as liquid_stream(Brief="Liquid outlet stream"); out     OutletV as vapour_stream(Brief="Vapour outlet stream"); in      InletQ as energy_stream (Brief="Heat supplied"); in      InletV as stream(Brief="Vapour inlet stream", PosX=0.1164, PosY=0); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4513, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4723, PosY=0); in      InletQ as energy_stream (Brief="Cold supplied", PosX=1, PosY=0.6311); M(NComp) as mol (Brief="Molar Holdup in the tray");
• trunk/eml/stage_separators/flash.mso

 r323 VARIABLES in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75); in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559); M(NComp) as mol (Brief="Molar Holdup in the tray"); VARIABLES in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75); in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559); vfrac as fraction; VARIABLES in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75); in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559); vfrac as fraction(Brief="Real vaporization fraction"); h as enth_mol(Brief="Mixture enthalpy"); VARIABLES in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75); in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559); vfrac as fraction(Brief="Real vaporization fraction"); vsat as Real(Lower=-0.1, Upper=1.1, Brief="Vaporization fraction if saturated");
• trunk/eml/stage_separators/reboiler.mso

 r310 VARIABLES in      Inlet as stream(Brief="Feed Stream"); in      InletL as stream(Brief="Liquid inlet stream"); out     OutletL as liquid_stream(Brief="Liquid outlet stream"); out     OutletV as vapour_stream(Brief="Vapour outlet stream"); in      InletQ as energy_stream (Brief="Heat supplied"); in      Inlet as stream(Brief="Feed Stream", PosX=0.8127, PosY=0); in      InletL as stream(Brief="Liquid inlet stream", PosX=0, PosY=0.5254); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.2413, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5079, PosY=0); in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6123); M(NComp) as mol (Brief="Molar Holdup in the tray"); VARIABLES in      InletL as stream(Brief="Liquid inlet stream"); out     OutletV as vapour_stream(Brief="Vapour outlet stream"); in      InletQ as energy_stream (Brief="Heat supplied"); in      InletL as stream(Brief="Liquid inlet stream", PosX=0.3345, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.3369, PosY=0); in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6111); vV as volume_mol (Brief="Vapour Molar volume"); rhoV as dens_mass (Brief="Vapour Density"); VARIABLES in      InletL as stream(Brief="Liquid inlet stream"); out     OutletV as stream(Brief="Vapour outlet stream"); in      InletQ as energy_stream (Brief="Heat supplied"); in      InletL as stream(Brief="Liquid inlet stream", PosX=0.3345, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.3369, PosY=0); in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6111); EQUATIONS VARIABLES in      Inlet as stream(Brief="Feed Stream"); in      InletL as stream(Brief="Liquid inlet stream"); out     OutletL as liquid_stream(Brief="Liquid outlet stream"); out     OutletV as vapour_stream(Brief="Vapour outlet stream"); in      InletQ as energy_stream (Brief="Heat supplied"); in      Inlet as stream(Brief="Feed Stream", PosX=0.8127, PosY=0); in      InletL as stream(Brief="Liquid inlet stream", PosX=0, PosY=0.5254); out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.2413, PosY=1); out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5079, PosY=0); in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6123); M(NComp) as mol (Brief="Molar Holdup in the tray"); ML as mol (Brief="Molar liquid holdup");
• trunk/eml/stage_separators/tank.mso

 r313 VARIABLES in      Inlet as stream; out     Outlet as liquid_stream; in      InletQ as energy_stream (Brief="Rate of heat supply"); in      Inlet  as stream (Brief = "Inlet stream", PosX=0.3037, PosY=0); out     Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7859); Level    as length(Brief="Tank level"); M(NComp) as mol (Brief="Molar Holdup in the tank"); VARIABLES in      Inlet as stream; out     Outlet as liquid_stream; in      InletQ as energy_stream (Brief="Rate of heat supply"); in      Inlet  as stream (Brief = "Inlet stream", PosX=0.1825, PosY=0); out     Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.6160); Level    as length(Brief="Tank level"); Across as area (Brief="Tank cross section area", Default=2); VARIABLES Level as length(Brief="Tank level"); in      Fin  as flow_vol(Brief="Input flow"); out     Fout as flow_vol(Brief="Output flow"); in      Fin  as flow_vol(Brief="Input flow", PosX=0.3037, PosY=0); out     Fout as flow_vol(Brief="Output flow", PosX=1, PosY=1); EQUATIONS VARIABLES in      Feed as stream; in      Inlet as stream; out     Outlet as liquid_stream; in      InletQ as energy_stream (Brief="Rate of heat supply"); in      Feed as stream (Brief = "Feed stream", PosX=0.32, PosY=0); in      Inlet  as stream (Brief = "Inlet stream", PosX=0.3037, PosY=0); out     Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1); in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7859); Level    as length(Brief="Tank level"); M(NComp) as mol (Brief="Molar Holdup in the tank");
• trunk/eml/stage_separators/tray.mso

 r300 VARIABLES in      Inlet as stream; in      InletL as stream; in      InletV as stream; out     OutletL as liquid_stream; out     OutletV as vapour_stream; in      Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.4932); in      InletL as stream (Brief="Inlet liquid stream", PosX=0.5195, PosY=0); in      InletV as stream (Brief="Inlet vapour stream", PosX=0.4994, PosY=1); out     OutletL as liquid_stream (Brief="Outlet liquid stream", PosX=0.8277, PosY=1); out     OutletV as vapour_stream (Brief="Outlet vapour stream", PosX=0.8043, PosY=0); M(NComp) as mol (Brief="Molar Holdup in the tray"); VARIABLES in      Inlet as stream; in      InletL as stream; in      InletV as stream; out     OutletL as liquid_stream; out     OutletV as vapour_stream; in      Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.4932); in      InletL as stream (Brief="Inlet liquid stream", PosX=0.5195, PosY=0); in      InletV as stream (Brief="Inlet vapour stream", PosX=0.4994, PosY=1); out     OutletL as liquid_stream (Brief="Outlet liquid stream", PosX=0.8277, PosY=1); out     OutletV as vapour_stream (Brief="Outlet vapour stream", PosX=0.8043, PosY=0); yideal(NComp) as fraction;
• trunk/eml/streams.mso

 r323 z(NComp) as fraction(Brief = "Overall Molar Fraction"); h as enth_mol; v as fraction(Brief = "Vapourisation fraction"); v as fraction(Brief = "Vapourization fraction"); end VARIABLES out Outlet                      as stream                       (Brief = "Outlet stream", PosX=1, PosY=0.5); out Outlet                      as stream                       (Brief = "Outlet stream", PosX=1, PosY=0.5256); x(NComp)                        as fraction                     (Brief = "Liquid Molar Fraction"); y(NComp)                        as fraction                     (Brief = "Vapour Molar Fraction"); VARIABLES out Outlet                      as stream               (Brief = "Outlet stream", PosX=1, PosY=0.5); out Outlet                      as stream               (Brief = "Outlet stream", PosX=1, PosY=0.5256); x(NComp)                        as fraction             (Brief = "Liquid Molar Fraction"); y(NComp)                        as fraction             (Brief = "Vapour Molar Fraction"); VARIABLES in Inlet                as stream; v                               as fraction; in Inlet                as stream               (Brief = "Inlet Stream", PosX=0, PosY=0.5308); v                               as fraction             (Brief = "Vapourization fraction"); x(NComp)                as fraction             (Brief = "Liquid Molar Fraction"); y(NComp)                as fraction             (Brief = "Vapour Molar Fraction"); VARIABLES in Inlet                as stream       (Brief = "Inlet stream", PosX=0.5, PosY=0); in Inlet                as stream       (Brief = "Inlet Stream", PosX=0, PosY=0.5308); end VARIABLES out OutletQ             as energy_stream (Brief = "Outlet energy stream", PosX=1, PosY=0.5); end out OutletQ             as energy_stream (Brief = "Outlet energy stream", PosX=1, PosY=0.5349); end
• trunk/sample/heat_exchangers/Sample_Heater.mso

 r320 DEVICES Heater                  as heater; Heater          as heater; streamcold      as simple_source; Heat                            as energy_source; Heat            as energy_source; CONNECTIONS streamcold.Outlet       to Heater.Inlet(1); Heat.OutletQ                            to Heater.InletHeat; Heat.OutletQ            to Heater.InletQ; PARAMETERS PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR", Components      = ["isobutane","benzene"]); Components      = ["isobutane","benzene"]); NComp           as Integer; Heater.Outlet.T                 = 360*'K'; Heater.Outlet.P                 = 0.999* 'atm'; Heat.OutletQ.Q                          = 10* 'kW'; Heat.OutletQ.Q                  = 10* 'kW'; OPTIONS DEVICES Cooler                  as heater; Cooler          as cooler; streamhot       as simple_source; Heat                            as energy_source; Heat            as energy_source; CONNECTIONS streamhot.Outlet        to Cooler.Inlet(1); Heat.OutletQ                    to Cooler.InletHeat; Heat.OutletQ            to Cooler.InletQ; PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR", Components      = ["isobutane","benzene"]); Components      = ["isobutane","benzene"]); NComp           as Integer; DEVICES Heater1                         as heater; Heater2                         as heater; Heater1                 as heater; Heater2                 as heater; streamcold1     as simple_source; streamcold2     as simple_source; streamcold3     as simple_source; Heat                                    as energy_source; Heat                    as energy_source; CONNECTIONS streamcold2.Outlet      to Heater1.Inlet(2); streamcold3.Outlet      to Heater1.Inlet(3); Heat.OutletQ                            to Heater1.InletHeat; Heater1.OutletHeat      to Heater2.InletHeat; Heater1.Outlet                  to Heater2.Inlet(1); Heat.OutletQ            to Heater1.InletQ; Heater1.OutletQ         to Heater2.InletQ; Heater1.Outlet          to Heater2.Inlet(1); PARAMETERS PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR", Components      = ["water","isobutane","benzene"]); Components      = ["water","isobutane","benzene"]); NComp           as Integer;
Note: See TracChangeset for help on using the changeset viewer.