Changeset 325


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

Set icons positions for most devices.

Location:
trunk
Files:
1 deleted
28 edited

Legend:

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

    r303 r325  
    3232end
    3333
    34 Model electrical_basic
    35         ATTRIBUTES
    36         Pallete         = false;
    37         Brief           = "Basic model for electrical devices with one input and one output wire.";
    38        
    39         VARIABLES
    40 in      inlet  as wire;
    41 out     outlet as wire;
    42 end
    4334
    44 Model electrical as electrical_basic
    45         ATTRIBUTES
    46         Pallete         = false;
    47         Brief           = "Basic electrical device";
    48         Info            =
    49         "Model for an electrical device in which the inlet current
    50         is equal to the outlet one
    51         ";     
    52        
    53         EQUATIONS
    54         outlet.i = inlet.i;
    55 end
    56 
    57 Model Resistor as electrical
     35Model Resistor
    5836        ATTRIBUTES
    5937        Pallete         = true;
     
    6341        PARAMETERS
    6442        R as resistance;
     43
     44        VARIABLES
     45in      inlet  as wire (Brief = "Inlet", PosX=0.3831, PosY=0);
     46out     outlet as wire (Brief = "Outlet", PosX=0.3529, PosY=1);
     47
    6548        EQUATIONS
    6649        inlet.V - outlet.V = R * outlet.i;
     50        outlet.i = inlet.i;
    6751end
    6852
    69 Model Capacitor as electrical
     53Model Capacitor
    7054        ATTRIBUTES
    7155        Pallete         = true;
     
    7559        PARAMETERS
    7660        C as capacitance;
     61
    7762        VARIABLES
    7863        q as charge;
     64in      inlet  as wire (Brief = "Inlet", PosX=0.3978, PosY=0);
     65out     outlet as wire (Brief = "Outlet", PosX=0.3965, PosY=1);
     66
    7967        EQUATIONS
    8068        diff(q) = inlet.i;
    8169        inlet.V - outlet.V = (1/C) * q;
     70        outlet.i = inlet.i;
    8271end
    8372
    84 Model Indutor as electrical
     73Model Indutor
    8574        ATTRIBUTES
    8675        Pallete         = true;
     
    9079        PARAMETERS
    9180        L as indutance;
     81
     82        VARIABLES
     83in      inlet  as wire (Brief = "Inlet", PosX=0.4638, PosY=0);
     84out     outlet as wire (Brief = "Outlet", PosX=0.4638, PosY=1);
     85
    9286        EQUATIONS
    9387        inlet.V - outlet.V = L * diff(inlet.i);
     88        outlet.i = inlet.i;
    9489end
    9590
    96 Model Supply as electrical_basic
     91Model Supply
    9792        ATTRIBUTES
    9893        Pallete         = true;
     
    10398        V  as voltage;
    10499        V0 as voltage(Default = 0);
     100
     101        VARIABLES
     102in      inlet  as wire (Brief = "Inlet", PosX=0.3923, PosY=0);
     103out     outlet as wire (Brief = "Outlet", PosX=0.3984, PosY=1);
     104
    105105        EQUATIONS
    106106        outlet.V = V0;
  • trunk/eml/heat_exchangers/DoublePipe.mso

    r301 r325  
    2929PARAMETERS
    3030
    31 outer PP                        as Plugin               (Brief="External Physical Properties", Type="PP");
    32 outer NComp             as Integer      (Brief="Number of Components");
     31outer PP            as Plugin           (Brief="External Physical Properties", Type="PP");
     32outer NComp     as Integer      (Brief="Number of Components");
    3333       
    3434        M(NComp)        as molweight    (Brief="Component Mol Weight");
    3535       
    36         HotSide                                 as Switcher     (Brief="Flag for Fluid Alocation ",Valid=["outer","inner"],Default="outer");
     36        HotSide                         as Switcher     (Brief="Flag for Fluid Alocation ",Valid=["outer","inner"],Default="outer");
    3737        innerFlowRegime         as Switcher     (Brief="Inner Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar");
    3838        outerFlowRegime         as Switcher     (Brief="Outer Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar");
     
    4040        InnerLaminarCorrelation         as Switcher             (Brief="Heat Transfer Correlation in Laminar Flow for the Inner Side",Valid=["Hausen","Schlunder"],Default="Hausen");
    4141        InnerTransitionCorrelation  as Switcher         (Brief="Heat Transfer Correlation in Transition Flow for the Inner Side",Valid=["Gnielinski","ESDU"],Default="Gnielinski");
    42         InnerTurbulentCorrelation  as Switcher                  (Brief="Heat Transfer Correlation in Turbulent Flow for the Inner Side",Valid=["Petukhov","SiederTate"],Default="Petukhov");
     42        InnerTurbulentCorrelation   as Switcher         (Brief="Heat Transfer Correlation in Turbulent Flow for the Inner Side",Valid=["Petukhov","SiederTate"],Default="Petukhov");
    4343
    4444        OuterLaminarCorrelation         as Switcher             (Brief="Heat Transfer Correlation in Laminar Flow for the Outer Side",Valid=["Hausen","Schlunder"],Default="Hausen");
    4545        OuterTransitionCorrelation  as Switcher         (Brief="Heat Transfer Correlation in Transition Flow for the OuterSide",Valid=["Gnielinski","ESDU"],Default="Gnielinski");
    46         OuterTurbulentCorrelation  as Switcher          (Brief="Heat Transfer Correlation in Turbulent Flow for the Outer Side",Valid=["Petukhov","SiederTate"],Default="Petukhov");
    47 
    48         Pi                      as constant             (Brief="Pi Number",Default=3.14159265);
    49         DoInner  as length                      (Brief="Outside Diameter of Inner Pipe",Lower=1e-6);
     46        OuterTurbulentCorrelation   as Switcher         (Brief="Heat Transfer Correlation in Turbulent Flow for the Outer Side",Valid=["Petukhov","SiederTate"],Default="Petukhov");
     47
     48        Pi              as constant             (Brief="Pi Number",Default=3.14159265);
     49        DoInner as length                       (Brief="Outside Diameter of Inner Pipe",Lower=1e-6);
    5050        DiInner as length                       (Brief="Inside Diameter of Inner Pipe",Lower=1e-10);
    5151        DiOuter as length                       (Brief="Inside Diameter of Outer pipe",Lower=1e-10);
    52         Lpipe           as length                       (Brief="Effective Tube Length",Lower=0.1);
    53         Kwall           as conductivity         (Brief="Tube Wall Material Thermal Conductivity",Default=1.0);
    54         Rfi                     as positive                     (Brief="Inside Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0);
     52        Lpipe   as length                       (Brief="Effective Tube Length",Lower=0.1);
     53        Kwall   as conductivity         (Brief="Tube Wall Material Thermal Conductivity",Default=1.0);
     54        Rfi             as positive                     (Brief="Inside Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0);
    5555        Rfo             as positive                     (Brief="Outside Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0);
    5656
    5757VARIABLES
    5858
    59 in      InletInner              as stream                       (Brief="Inlet Inner Stream");   
    60 in      InletOuter              as stream                       (Brief="Inlet Outer Stream");
    61 out     OutletInner             as streamPH             (Brief="Outlet Inner Stream");
    62 out     OutletOuter     as streamPH             (Brief="Outlet Outer Stream");
    63 
    64         Details                 as Details_Main                 (Brief="Some Details in the Heat Exchanger");
    65         Inner                   as Main_DoublePipe              (Brief="Inner Side of the Heat Exchanger");
    66         Outer                   as Main_DoublePipe              (Brief="Outer Side of the Heat Exchanger");
     59in  InletInner          as stream               (Brief="Inlet Inner Stream", PosX=0, PosY=0.5225);     
     60in  InletOuter          as stream               (Brief="Inlet Outer Stream", PosX=0.2805, PosY=0);
     61out OutletInner         as streamPH     (Brief="Outlet Inner Stream", PosX=1, PosY=0.5225);
     62out OutletOuter         as streamPH     (Brief="Outlet Outer Stream", PosX=0.7264, PosY=1);
     63
     64        Details         as Details_Main         (Brief="Some Details in the Heat Exchanger");
     65        Inner                   as Main_DoublePipe      (Brief="Inner Side of the Heat Exchanger");
     66        Outer                   as Main_DoublePipe      (Brief="Outer Side of the Heat Exchanger");
    6767
    6868SET
  • trunk/eml/heat_exchangers/HeatExchangerDetailed.mso

    r308 r325  
    2828PARAMETERS
    2929
    30 HotSide                 as Switcher     (Brief="Hot Side in the Exchanger",Valid=["shell","tubes"],Default="shell");
     30HotSide         as Switcher     (Brief="Hot Side in the Exchanger",Valid=["shell","tubes"],Default="shell");
    3131ShellType       as Switcher     (Brief="TEMA Designation",Valid=["Eshell","Fshell"],Default="Eshell");
    3232
    3333VARIABLES
    3434
    35 in      InletTube               as stream               (Brief="Inlet Tube Stream");
    36 out     OutletTube              as streamPH     (Brief="Outlet Tube Stream");
    37 in      InletShell              as stream               (Brief="Inlet Shell Stream");
    38 out     OutletShell                     as streamPH     (Brief="Outlet Shell Stream");
    39        
    40         Details                 as Details_Main                 (Brief="Details in Heat Exchanger");
    41         Tubes                           as Tube_Side_Main       (Brief="Tube Side");   
    42         Shell                           as Shell_Side_Main      (Brief="Shell Side");
    43         Baffles                 as Baffles_Main                 (Brief="Baffles");
     35in  InletTube   as stream               (Brief="Inlet Tube Stream", PosX=0, PosY=0.4915);
     36out OutletTube  as streamPH     (Brief="Outlet Tube Stream", PosX=1, PosY=0.4915);
     37in  InletShell  as stream               (Brief="Inlet Shell Stream", PosX=0.5237, PosY=1);
     38out OutletShell as streamPH     (Brief="Outlet Shell Stream", PosX=0.5237, PosY=0);
     39       
     40        Details         as Details_Main         (Brief="Details in Heat Exchanger");
     41        Tubes           as Tube_Side_Main       (Brief="Tube Side");   
     42        Shell           as Shell_Side_Main      (Brief="Shell Side");
     43        Baffles         as Baffles_Main         (Brief="Baffles");
    4444
    4545#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
    4646#                               Auxiliar Variables - Must be hidden                                             
    4747#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
    48         Nc      as Real         (Brief = "Number of Tube rows Crossed in one Crossflow Section",Lower=1);
     48        Nc              as Real         (Brief = "Number of Tube rows Crossed in one Crossflow Section",Lower=1);
    4949        Ncw     as Real         (Brief = "Number of Effective Crossflow rows in Each Window",Lower=1);
    5050        a               as Real         (Brief = "Variable for calculating Ji heat transfer correction Factor",Lower=1e-3);
    5151        b               as Real         (Brief = "Variable for calculating shell side pressure drop friction Factor",Lower=1e-3);
    52         Rb      as Real         (Brief = "ByPass Correction Factor for Pressure Drop",Lower=1e-3);
     52        Rb              as Real         (Brief = "ByPass Correction Factor for Pressure Drop",Lower=1e-3);
    5353        Rss     as Real         (Brief = "Correction Factor for Pressure Drop",Lower=1e-3);
    5454        Rspd    as Real         (Brief = "Pressure Drop Correction Factor for Unequal Baffle Spacing",Lower=1e-3);
    55         mw      as Real         (Brief = "Mass Velocity in Window Zone", Unit='kg/m^2/s');
     55        mw              as Real         (Brief = "Mass Velocity in Window Zone", Unit='kg/m^2/s');
    5656       
    5757PARAMETERS
    58 outer PP                as Plugin               (Brief="External Physical Properties",Type = "PP");
     58outer PP            as Plugin           (Brief="External Physical Properties",Type = "PP");
    5959outer NComp     as Integer      (Brief="Number of Components");
    6060       
    61         Pi                              as constant    (Brief="Pi Number",Default=3.14159265);
    62         M(NComp)  as molweight  (Brief="Component Mol Weight");
    63 
    64 TubeFlowRegime           as Switcher    (Brief="Tube Side Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar");
    65 ShellFlowRegime                 as Switcher    (Brief="Shell Side Flow Regime ",Valid=["deep laminar","laminar","turbulent"],Default="deep laminar");
    66 ShellRange                      as Switcher    (Brief="Shell Side Flow Regime Range for Correction Factor",Valid=["range1","range2","range3", "range4","range5"],Default="range1");
    67 Side                                            as Switcher    (Brief="Flag for Fluid Alocation ",Valid=["shell","tubes"],Default="shell");
    68 LaminarCorrelation      as Switcher    (Brief="Tube Heat Transfer Correlation in Laminar Flow",Valid=["Hausen","Schlunder"],Default="Hausen");
    69 TransitionCorrelation  as Switcher      (Brief="Tube Heat Transfer Correlation in Transition Flow",Valid=["Gnielinski","ESDU"],Default="Gnielinski");
     61        Pi                      as constant    (Brief="Pi Number",Default=3.14159265);
     62        M(NComp)        as molweight    (Brief="Component Mol Weight");
     63
     64TubeFlowRegime            as Switcher   (Brief="Tube Side Flow Regime ",Valid=["laminar","transition","turbulent"],Default="laminar");
     65ShellFlowRegime           as Switcher   (Brief="Shell Side Flow Regime ",Valid=["deep laminar","laminar","turbulent"],Default="deep laminar");
     66ShellRange                as Switcher   (Brief="Shell Side Flow Regime Range for Correction Factor",Valid=["range1","range2","range3", "range4","range5"],Default="range1");
     67Side                              as Switcher   (Brief="Flag for Fluid Alocation ",Valid=["shell","tubes"],Default="shell");
     68LaminarCorrelation    as Switcher       (Brief="Tube Heat Transfer Correlation in Laminar Flow",Valid=["Hausen","Schlunder"],Default="Hausen");
     69TransitionCorrelation as Switcher       (Brief="Tube Heat Transfer Correlation in Transition Flow",Valid=["Gnielinski","ESDU"],Default="Gnielinski");
    7070TurbulentCorrelation  as Switcher       (Brief="Tube Heat Transfer Correlation in Turbulent Flow",Valid=["Petukhov","SiederTate"],Default="Petukhov");
    7171
  • trunk/eml/heat_exchangers/HeatExchangerSimplified.mso

    r307 r325  
    2929       
    3030PARAMETERS
    31 outer PP                as Plugin               (Brief="External Physical Properties", Type="PP");
    32 outer NComp     as Integer      (Brief="Number of Components");
     31outer PP            as Plugin   (Brief="External Physical Properties", Type="PP");
     32outer NComp     as Integer  (Brief="Number of Components");
    3333       
    3434        M(NComp)  as molweight  (Brief="Component Mol Weight");
     
    3636VARIABLES
    3737
    38 in      InletHot            as stream           (Brief="Inlet Hot Stream");
    39 out     OutletHot   as streamPH         (Brief="Outlet Hot Stream");
    40 in      InletCold       as stream               (Brief="Inlet Cold Stream");
    41 out     OutletCold  as streamPH         (Brief="Outlet Cold Stream");
    42 
    43         xh(NComp)       as fraction(Brief = "Liquid Molar Fraction in Hot Side");
    44         yh(NComp) as fraction(Brief = "Vapour Molar Fraction in Hot Side");
    45         vh                      as fraction(Brief = "Vapour Molar Fraction in Hot Side");
    46        
    47         xc(NComp)       as fraction(Brief = "Liquid Molar Fraction in Cold Side");
    48         yc(NComp) as fraction(Brief = "Vapour Molar Fraction in Cold Side");
    49         vc                      as fraction(Brief = "Vapour Molar Fraction in Cold Side");
    50 
    51         Details         as Details_Main                         (Brief="Heat Exchanger Details");
    52         HotSide         as Main_Simplified              (Brief="Heat Exchanger Hot Side");
    53         ColdSide        as Main_Simplified              (Brief="Heat Exchanger Cold Side");
     38in  InletHot    as stream               (Brief="Inlet Hot Stream", PosX=0, PosY=0.4915);
     39out OutletHot   as streamPH     (Brief="Outlet Hot Stream", PosX=1, PosY=0.4915);
     40in  InletCold   as stream               (Brief="Inlet Cold Stream", PosX=0.5237, PosY=1);
     41out OutletCold  as streamPH     (Brief="Outlet Cold Stream", PosX=0.5237, PosY=0);
     42
     43        xh(NComp)       as fraction             (Brief = "Liquid Molar Fraction in Hot Side");
     44        yh(NComp)       as fraction             (Brief = "Vapour Molar Fraction in Hot Side");
     45        vh                      as fraction             (Brief = "Vapour Molar Fraction in Hot Side");
     46       
     47        xc(NComp)       as fraction             (Brief = "Liquid Molar Fraction in Cold Side");
     48        yc(NComp)       as fraction             (Brief = "Vapour Molar Fraction in Cold Side");
     49        vc                      as fraction             (Brief = "Vapour Molar Fraction in Cold Side");
     50
     51        Details     as Details_Main     (Brief="Heat Exchanger Details");
     52        HotSide         as Main_Simplified      (Brief="Heat Exchanger Hot Side");
     53        ColdSide        as Main_Simplified      (Brief="Heat Exchanger Cold Side");
    5454
    5555SET
  • trunk/eml/heat_exchangers/Mheatex.mso

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

    r307 r325  
    2020Model PHE
    2121
    22 ATTRIBUTES
     22 ATTRIBUTES
    2323        Icon            = "icon/phe";
    2424        Pallete         = true;
     
    4545        ";
    4646
    47 PARAMETERS
    48 
    49 outer PP                        as Plugin                       (Brief="External Physical Properties", Type="PP");
    50 outer NComp             as Integer              (Brief="Number of Chemical Components");
    51         Pi                                              as constant             (Brief="Pi Number",Default=3.14159265);
    52         Kp1(15)                         as constant             (Brief="First constant in Kumar calculation for Pressure Drop");
    53         Kp2(15)                         as constant             (Brief="Second constant in Kumar calculation for Pressure Drop");
    54         Kc1(14)                         as constant             (Brief="First constant in Kumar calculation for Heat Transfer");
    55         Kc2(14)                         as constant             (Brief="Second constant Kumar calculation for Heat Transfer");
     47 PARAMETERS
     48
     49outer PP                as Plugin               (Brief="External Physical Properties", Type="PP");
     50outer NComp             as Integer      (Brief="Number of Chemical Components");
     51        Pi                              as constant     (Brief="Pi Number",Default=3.14159265);
     52        Kp1(15)                 as constant     (Brief="First constant in Kumar calculation for Pressure Drop");
     53        Kp2(15)                 as constant     (Brief="Second constant in Kumar calculation for Pressure Drop");
     54        Kc1(14)                 as constant     (Brief="First constant in Kumar calculation for Heat Transfer");
     55        Kc2(14)                 as constant     (Brief="Second constant Kumar calculation for Heat Transfer");
    5656        M(NComp)                as molweight    (Brief="Component Mol Weight");
    5757       
    58         ChevronAngle    as Switcher                     (Brief="Chevron Corrugation Inclination Angle in Degrees ",Valid=["30","45","50","60","65"],Default="30");
    59         Method                          as Switcher                     (Brief="Method of Thermal Calculation",Valid=["NTU","LMTD"],Default="NTU");
    60         SideOne                         as Switcher                     (Brief="Fluid Alocation in the Side I - (The odd channels)",Valid=["hot","cold"],Default="hot");
    61         Nchannels                       as Integer                              (Brief="Total Number of Channels in The Whole Heat Exchanger");
    62         Nplates                         as Integer                              (Brief="Total Number of Plates in The Whole Heat Exchanger",Default=25);
    63         NpassHot                        as Integer                              (Brief="Number of Passes for Hot Side");
    64         NpassCold                       as Integer                              (Brief="Number of Passes for Cold Side");
    65         Dports                                  as length                               (Brief="Ports Diameter",Lower=1e-6);
    66         Atotal                                  as area                                 (Brief="Total Effective  Area",Lower=1e-6);
    67         Aports                                  as area                                 (Brief="Port Opening  Area of Plate",Lower=1e-6);
    68         Achannel                        as area                                 (Brief="Cross-Sectional Area for Channel Flow",Lower=1e-6);
    69         Dh                                              as length                               (Brief="Equivalent Diameter of Channel",Lower=1e-6);
    70         Depth                           as length                               (Brief="Corrugation Depth",Lower=1e-6);
    71         PhiFactor                       as Real                                 (Brief="Enlargement Factor",Lower=1e-6);
    72         Lp                                              as length                               (Brief="Plate Vertical Distance between Port Centers",Lower=0.1);
    73         Lpack                                   as length                               (Brief="Compact Plate Pack Length",Lower=0.1);
    74         Lv                                              as length                               (Brief="Vertical Ports Distance",Lower=0.1);
    75         Lh                                              as length                               (Brief="Plate Horizontal Distance between Port Centers",Lower=0.1);
    76         Lw                                              as length                               (Brief="Plate Width",Lower=0.1);
    77         pitch                                   as length                               (Brief="Plate Pitch",Lower=0.1);
    78         pt                                              as length                               (Brief="Plate Thickness",Lower=0.1);
    79         Kwall                                   as conductivity         (Brief="Plate Thermal Conductivity",Default=1.0);
    80         Rfh                                             as positive                             (Brief="Hot Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0);
    81         Rfc                                             as positive                             (Brief="Cold Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0);
    82 
    83 VARIABLES
    84 
    85 in      InletHot                as stream                       (Brief="Inlet Hot Stream");     
    86 in      InletCold           as stream                   (Brief="Inlet Cold Stream");
    87 out     OutletHot       as streamPH     (Brief="Outlet Hot Stream");
    88 out     OutletCold      as streamPH     (Brief="Outlet Cold Stream");
    89 
    90         HotSide                         as Main_PHE                             (Brief="Plate Heat Exchanger Hot Side");
    91         ColdSide                        as Main_PHE                             (Brief="Plate Heat Exchanger Cold Side");
    92         Thermal                         as Thermal_PHE          (Brief="Thermal Results");
    93 
    94 SET
     58        ChevronAngle    as Switcher             (Brief="Chevron Corrugation Inclination Angle in Degrees ",Valid=["30","45","50","60","65"],Default="30");
     59        Method                  as Switcher             (Brief="Method of Thermal Calculation",Valid=["NTU","LMTD"],Default="NTU");
     60        SideOne                 as Switcher             (Brief="Fluid Alocation in the Side I - (The odd channels)",Valid=["hot","cold"],Default="hot");
     61        Nchannels               as Integer              (Brief="Total Number of Channels in The Whole Heat Exchanger");
     62        Nplates                 as Integer              (Brief="Total Number of Plates in The Whole Heat Exchanger",Default=25);
     63        NpassHot                as Integer              (Brief="Number of Passes for Hot Side");
     64        NpassCold               as Integer              (Brief="Number of Passes for Cold Side");
     65        Dports                  as length               (Brief="Ports Diameter",Lower=1e-6);
     66        Atotal                  as area                 (Brief="Total Effective  Area",Lower=1e-6);
     67        Aports                  as area                 (Brief="Port Opening  Area of Plate",Lower=1e-6);
     68        Achannel                as area                 (Brief="Cross-Sectional Area for Channel Flow",Lower=1e-6);
     69        Dh                      as length               (Brief="Equivalent Diameter of Channel",Lower=1e-6);
     70        Depth                   as length               (Brief="Corrugation Depth",Lower=1e-6);
     71        PhiFactor               as Real                 (Brief="Enlargement Factor",Lower=1e-6);
     72        Lp                              as length               (Brief="Plate Vertical Distance between Port Centers",Lower=0.1);
     73        Lpack                   as length               (Brief="Compact Plate Pack Length",Lower=0.1);
     74        Lv                              as length               (Brief="Vertical Ports Distance",Lower=0.1);
     75        Lh                              as length               (Brief="Plate Horizontal Distance between Port Centers",Lower=0.1);
     76        Lw                              as length               (Brief="Plate Width",Lower=0.1);
     77        pitch                   as length               (Brief="Plate Pitch",Lower=0.1);
     78        pt                              as length               (Brief="Plate Thickness",Lower=0.1);
     79        Kwall                   as conductivity (Brief="Plate Thermal Conductivity",Default=1.0);
     80        Rfh                             as positive             (Brief="Hot Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0);
     81        Rfc                             as positive             (Brief="Cold Side Fouling Resistance",Unit='m^2*K/kW',Default=1e-6,Lower=0);
     82
     83 VARIABLES
     84
     85in  InletHot        as stream           (Brief="Inlet Hot Stream", PosX=0, PosY=0.7156);       
     86in  InletCold       as stream           (Brief="Inlet Cold Stream", PosX=1, PosY=0.7156);
     87out OutletHot           as streamPH     (Brief="Outlet Hot Stream", PosX=0, PosY=0.2793);
     88out OutletCold          as streamPH     (Brief="Outlet Cold Stream", PosX=1, PosY=0.2793);
     89
     90        HotSide                 as Main_PHE             (Brief="Plate Heat Exchanger Hot Side");
     91        ColdSide                as Main_PHE             (Brief="Plate Heat Exchanger Cold Side");
     92        Thermal                 as Thermal_PHE  (Brief="Thermal Results");
     93
     94 SET
    9595
    9696#"First constant for Kumar's calculating Pressure Drop"
     
    139139        Atotal =(Nplates-2)*Lw*Lp*PhiFactor;
    140140       
    141 EQUATIONS
     141 EQUATIONS
    142142
    143143"Hot    Stream Average Temperature"
     
    165165        ColdSide.Properties.Average.Mw = sum(M*InletCold.z);
    166166
    167 if InletCold.v equal 0
     167 if InletCold.v equal 0
    168168       
    169169        then   
     
    249249        ColdSide.Properties.Wall.Mu             =       PP.VapourViscosity(ColdSide.Properties.Wall.Twall,ColdSide.Properties.Average.P,InletCold.z);
    250250
    251 end
    252 
    253 if InletHot.v equal 0
     251 end
     252
     253 if InletHot.v equal 0
    254254
    255255        then
     
    336336        HotSide.Properties.Wall.Mu              =               PP.VapourViscosity(HotSide.Properties.Wall.Twall,HotSide.Properties.Average.P,InletHot.z);
    337337
    338 end
     338 end
    339339
    340340"Energy Balance Hot Stream"
     
    368368        OutletCold.z=InletCold.z;
    369369
    370 switch SideOne
     370 switch SideOne
    371371       
    372372        case "cold":
     
    386386        ColdSide.PressureDrop.Npassage = (2*Nchannels-1+(-1)^(Nchannels))/(4*NpassCold);
    387387
    388 end
     388 end
    389389
    390390"Hot Stream Mass Flux in the Channel"
     
    418418        ColdSide.PressureDrop.Pdrop =ColdSide.PressureDrop.DPchannel+ColdSide.PressureDrop.DPports;
    419419
    420 switch ChevronAngle #Pressure Drop Friction Factor According to kumar's (1984)
     420 switch ChevronAngle #Pressure Drop Friction Factor According to kumar's (1984)
    421421       
    422422        case "30": #    ChevronAngle <= 30
     
    510510        end
    511511
    512 end
    513 
    514 switch ChevronAngle # Heat Transfer Coefficient According to kumar's (1984)
     512 end
     513
     514 switch ChevronAngle # Heat Transfer Coefficient According to kumar's (1984)
    515515
    516516        case "30": #    ChevronAngle <= 30
     
    593593        end
    594594
    595 end
     595 end
    596596
    597597"Hot Stream Velocity in Channels"
     
    637637        Thermal.Ud*(1/HotSide.HeatTransfer.hcoeff +pt/Kwall+1/ColdSide.HeatTransfer.hcoeff + Rfc + Rfh)=1;
    638638
    639 switch Method
     639 switch Method
    640640       
    641641        case "LMTD":
     
    649649        Thermal.Q = Thermal.Eft*Thermal.Cmin*(InletHot.T-InletCold.T);
    650650
    651 end
     651 end
    652652
    653653"Temperature Difference at Inlet - Counter Flow"
     
    681681        ColdSide.HeatTransfer.NTU*ColdSide.HeatTransfer.WCp = Thermal.Ud*Atotal;
    682682
    683 if Thermal.Cr equal 1 # To be Fixed: Effectiveness in true counter flow !
     683 if Thermal.Cr equal 1 # To be Fixed: Effectiveness in true counter flow !
    684684       
    685685        then
     
    697697        Thermal.Fc =(ln(abs(1-Thermal.Eft*Thermal.Cr))-ln(abs(1-Thermal.Eft)))/(Thermal.NTU*(1-Thermal.Cr));
    698698       
     699 end
    699700end
    700 
    701 
    702 end
  • trunk/eml/heat_exchangers/heater.mso

    r319 r325  
    1717*--------------------------------------------------------------------*#
    1818
    19 using "streams.mso";
     19using "streams";
    2020
    21 Model heater
     21Model heater_basic
    2222
    23 ATTRIBUTES
    24         Pallete         = true;
    25         Icon            = "icon/heater";       
    26         Brief   = "Heater or Cooler";
     23 ATTRIBUTES
     24        Pallete         = false;
     25        Brief   = "Basic model for Heater or Cooler";
    2726        Info            =
    2827        "Determines thermal and phase conditions of an outlet stream";
     28
     29 PARAMETERS
     30        outer PP        as Plugin       (Brief="Physical Properties", Type="PP");
     31        outer NComp     as Integer      (Brief="Number of Components");
     32        Ninlet          as Integer      (Brief="Number of Inlet Streams");
     33        Kvalues         as Switcher (Brief="Option for Display Phase Equilibrium K-values",Valid=["yes","no"], Default="yes");
     34
     35 VARIABLES
     36        QDuty                   as power                        (Brief = "Actual Duty");
     37        Vfrac                   as fraction             (Brief = "Vapor fraction Outlet Stream");
     38        Lfrac                   as fraction             (Brief = "Liquid fraction Outlet Stream");
     39        Kvalue(NComp)   as Real                         (Brief = "Phase Equilibrium K-values");
     40in  Inlet(Ninlet )  as stream                   (Brief="Inlet Streams", PosX=0, PosY=0.4833);
     41out Outlet              as streamPH                     (Brief="Outlet Stream", PosX=1, PosY=0.4782);
    2942       
    30 PARAMETERS
    31         outer PP                        as Plugin               (Brief="Physical Properties", Type="PP");
    32         outer NComp     as Integer      (Brief="Number of Components");
    33                         Ninlet          as Integer      (Brief="Number of Inlet Streams");
    34         Kvalues          as Switcher (Brief="Option for Display Phase Equilibrium K-values",Valid=["yes","no"], Default="yes");
    35        
    36 SUBMODELS
    37         in  Inlet(Ninlet )  as stream                           (Brief="Inlet Streams");
    38         out Outlet              as streamPH                             (Brief="Outlet Stream");
    39         in InletHeat            as energy_stream                (Brief ="Inlet Heat Stream");
    40         out OutletHeat  as energy_stream                (Brief ="Outlet Heat Stream");
     43 EQUATIONS
    4144
    42 VARIABLES
    43         QDuty                                   as power                        (Brief = "Actual Duty");
    44         Vfrac                                   as fraction             (Brief = "Vapor fraction Outlet Stream");
    45         Lfrac                                           as fraction             (Brief = "Liquid fraction Outlet Stream");
    46         Kvalue(NComp)   as Real                         (Brief = "Phase Equilibrium K-values");
    47        
    48 EQUATIONS
    49 
    50 "Flow"
     45 "Flow"
    5146        Outlet.F = sum(Inlet.F);       
    5247
    53 for j in [1 : NComp]
     48 for j in [1 : NComp]
    5449       
    55 "Composition"
     50 "Composition"
    5651        Outlet.F*Outlet.z(j) = sum(Inlet.F*Inlet.z(j));
    5752       
    58 end
     53 end
    5954
    60 "Vapor fraction Outlet Stream"
     55 "Vapor fraction Outlet Stream"
    6156        Vfrac = Outlet.v;
    6257
    63 "Liquid fraction Outlet Stream"
     58 "Liquid fraction Outlet Stream"
    6459        Lfrac = 1-Vfrac;
    6560
    66 "Heat Duty"
     61 "Heat Duty"
    6762        QDuty = Outlet.F*Outlet.h - sum(Inlet.F*Inlet.h);
    6863
    69 "Net Duty"
    70         OutletHeat.Q = InletHeat.Q - QDuty;
    71 
    72 switch Kvalues # Fix for better convergence !!!
     64 switch Kvalues # Fix for better convergence !!!
    7365        case "yes":
    74 "K-values Phase Equilibrium"
     66 "K-values Phase Equilibrium"
    7567        Kvalue*(Outlet.x) = Outlet.y;
    7668
    7769        case "no":
    78 "K-values Phase Equilibrium"
     70 "K-values Phase Equilibrium"
    7971        Kvalue = 1;
    8072
    81 end
    82        
     73 end
    8374end
    8475
     76
     77Model heater as heater_basic
     78
     79 ATTRIBUTES
     80        Pallete         = true;
     81        Icon            = "icon/heater";       
     82        Brief   = "Heater";
     83        Info            =
     84        "Determines thermal and phase conditions of an outlet stream";
     85
     86 VARIABLES
     87in  InletQ              as energy_stream        (Brief ="Inlet Heat Stream", PosX=0.1662, PosY=1);
     88out OutletQ             as energy_stream        (Brief ="Outlet Heat Stream", PosX=0.8245, PosY=0);
     89
     90 EQUATIONS
     91 "Net Duty"
     92        OutletQ.Q = InletQ.Q - QDuty;
     93end
     94
     95Model cooler as heater_basic
     96
     97 ATTRIBUTES
     98        Pallete         = true;
     99        Icon            = "icon/cooler";       
     100        Brief   = "Cooler";
     101        Info            =
     102        "Determines thermal and phase conditions of an outlet stream";
     103
     104 VARIABLES
     105in  InletQ              as energy_stream        (Brief ="Inlet Heat Stream", PosX=0.8245, PosY=1);
     106out OutletQ             as energy_stream        (Brief ="Outlet Heat Stream", PosX=0.1662, PosY=0);
     107
     108 EQUATIONS
     109 "Net Duty"
     110        OutletQ.Q = InletQ.Q - QDuty;
     111end
  • trunk/eml/heat_exchangers/icon/cooler.svg

    r96 r325  
    1212   id="svg10172"
    1313   sodipodi:version="0.32"
    14    inkscape:version="0.44.1"
     14   inkscape:version="0.45.1"
    1515   width="210mm"
    1616   height="297mm"
    17    sodipodi:docbase="C:\Documents and Settings\Administrador\Meus documentos\Bolsa Simulação\Desenhos2"
    18    sodipodi:docname="cooler.svg">
     17   sodipodi:docbase="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon"
     18   sodipodi:docname="cooler.svg"
     19   inkscape:output_extension="org.inkscape.output.svg.inkscape"
     20   inkscape:export-filename="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon\cooler.png"
     21   inkscape:export-xdpi="90"
     22   inkscape:export-ydpi="90">
    1923  <metadata
    2024     id="metadata10177">
     
    6569  </defs>
    6670  <sodipodi:namedview
    67      inkscape:window-height="900"
    68      inkscape:window-width="1280"
     71     inkscape:window-height="753"
     72     inkscape:window-width="1024"
    6973     inkscape:pageshadow="2"
    7074     inkscape:pageopacity="0.0"
     
    7882     showgrid="true"
    7983     inkscape:zoom="1.4329667"
    80      inkscape:cx="349.04822"
    81      inkscape:cy="650.17997"
    82      inkscape:window-x="-4"
    83      inkscape:window-y="-4"
     84     inkscape:cx="311.3198"
     85     inkscape:cy="609.68654"
     86     inkscape:window-x="0"
     87     inkscape:window-y="0"
    8488     inkscape:current-layer="svg10172" />
    8589  <path
    86      style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
    87      d="M 400,524.36218 C 400,574.36218 400,574.36218 400,574.36218"
     90     style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     91     d="M 490.77562,434.77475 C 540.77196,435.38039 540.77196,435.38039 540.77196,435.38039"
    8892     id="path13752" />
    8993  <path
    9094     sodipodi:type="arc"
    91      style="fill:url(#linearGradient14653);fill-opacity:1;fill-rule:nonzero;stroke:black;stroke-width:4.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     95     style="fill:url(#linearGradient14653);fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:4.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
    9296     id="path10179"
    9397     sodipodi:cx="400.19324"
     
    96100     sodipodi:ry="100.17168"
    97101     d="M 500.36491 352.14737 A 100.17168 100.17168 0 1 1  300.02156,352.14737 A 100.17168 100.17168 0 1 1  500.36491 352.14737 z"
    98      transform="translate(0,74)" />
     102     transform="matrix(-1.2112799e-2,0.9999266,0.9999266,1.2112799e-2,45.291601,29.348951)" />
    99103  <path
    100      style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
    101      d="M 288,542.36218 L 378,392.36218 L 408,462.36218 L 498,312.36218"
     104     style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     105     d="M 510.13094,323.001 L 359.05179,411.17748 L 428.68327,442.02317 L 277.60412,530.19965"
    102106     id="path11973" />
    103107  <path
    104      style="fill:black;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.29729998px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
    105      d="M 490.64865,314.82308 L 501.57869,321.71353 L 506.79992,301.90858 L 490.64865,314.82308 z "
     108     style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.29729998px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
     109     d="M 280.15389,522.87865 L 286.91144,533.89135 L 267.0447,538.8723 L 280.15389,522.87865 z "
    106110     id="path10086"
    107      inkscape:transform-center-x="-8.486542"
    108      inkscape:transform-center-y="-50.636822" />
     111     inkscape:transform-center-x="-7.806366"
     112     inkscape:transform-center-y="50.694172" />
    109113  <path
    110      style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
    111      d="M 402,274.36218 C 402,324.36218 402,324.36218 402,324.36218 L 402,324.36218 L 402,324.36218 L 402,274.36218 z "
     114     style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     115     d="M 232.76974,433.74641 C 282.76607,434.35205 282.76607,434.35205 282.76607,434.35205 L 282.76607,434.35205 L 282.76607,434.35205 L 232.76974,433.74641 z "
    112116     id="path12861" />
    113117  <path
    114      style="fill:black;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.00203896px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
    115      d="M 406.48459,306.49581 L 396.50102,307.22055 L 402.63462,321.86116 L 406.48459,306.49581 z "
     118     style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00203896px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
     119     d="M 274.50102,438.86116 L 274.56591,428.85153 L 289.57909,434.00644 L 274.50102,438.86116 z "
    116120     id="path14641"
    117      inkscape:transform-center-x="-17.236487"
    118      inkscape:transform-center-y="37.345131" />
     121     inkscape:transform-center-x="-14.938788"
     122     inkscape:transform-center-y="-37.917701" />
    119123  <path
    120      style="fill:black;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.00203896px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
    121      d="M 404.51069,572.7855 L 394.50102,572.84548 L 399.64858,587.86116 L 404.51069,572.7855 z "
     124     style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00203896px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
     125     d="M 539.14075,439.87165 L 539.32198,429.86344 L 554.2742,435.19251 L 539.14075,439.87165 z "
    122126     id="path14643"
    123      inkscape:transform-center-x="-15.204017"
    124      inkscape:transform-center-y="38.611301" />
     127     inkscape:transform-center-x="-15.639411"
     128     inkscape:transform-center-y="-38.515247" />
    125129</svg>
  • trunk/eml/heat_exchangers/icon/heater.svg

    r316 r325  
    1515   width="210mm"
    1616   height="297mm"
    17    sodipodi:docbase="E:\Documentos Pessoais\Gerson\repositorio\trunk\eml\heat_exchangers\icon"
     17   sodipodi:docbase="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon"
    1818   sodipodi:docname="heater.svg"
    19    inkscape:output_extension="org.inkscape.output.svg.inkscape">
     19   inkscape:output_extension="org.inkscape.output.svg.inkscape"
     20   inkscape:export-filename="D:\User\Arge\PROJETOS\Alsoc\EMSO\mso\eml\heat_exchangers\icon\heater.png"
     21   inkscape:export-xdpi="90"
     22   inkscape:export-ydpi="90">
    2023  <metadata
    2124     id="metadata10177">
     
    7881     id="base"
    7982     showgrid="true"
    80      inkscape:zoom="0.71648337"
    81      inkscape:cx="285.99484"
    82      inkscape:cy="609.30613"
     83     inkscape:zoom="1.0132605"
     84     inkscape:cx="439.12625"
     85     inkscape:cy="717.22114"
    8386     inkscape:window-x="0"
    8487     inkscape:window-y="22"
     
    119122     inkscape:transform-center-x="-38.963517"
    120123     inkscape:transform-center-y="-14.381614" />
     124  <path
     125     style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00203896px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
     126     d="M 504.79979,310.76656 L 511.24729,318.42336 L 519.49898,304.8632 L 504.79979,310.76656 z "
     127     id="path2168"
     128     inkscape:transform-center-x="-18.314027"
     129     inkscape:transform-center-y="-34.531454" />
    121130</svg>
  • trunk/eml/mixers_splitters/mixer.mso

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

    r304 r325  
    4343       
    4444        VARIABLES
    45 in      Inlet   as stream;
    46 out Outlet(NOutlet)  as stream;
     45in      Inlet   as stream (Brief = "Inlet stream", PosX=0, PosY=0.5001);
     46out Outlet(NOutlet)  as stream (Brief = "Outlet streams", PosX=1, PosY=0.5);
    4747        frac(NOutlet) as fraction (Brief = "Distribution of Outlets", Default=0.5);
    4848
     
    9494
    9595        VARIABLES
    96 in  Inlet   as stream;
    97 out Outlet1 as stream;
    98 out Outlet2 as stream;
     96in  Inlet   as stream (Brief = "Inlet stream", PosX=0, PosY=0.5069);
     97out Outlet1 as stream (Brief = "Outlet stream 1", PosX=1, PosY=0.3027);
     98out Outlet2 as stream (Brief = "Outlet stream 2", PosX=1, PosY=0.7141);
    9999        frac as fraction (Brief = "Fraction to Outlet 1");
    100100
  • trunk/eml/pressure_changers/compressor.mso

    r305 r325  
    1818*--------------------------------------------------------------------*#
    1919
    20 using "pressure_changers/flux_machine_basic";
     20using "streams";
    2121
    22 Model centrifugal_compressor as flux_machine_basic_PH
     22Model centrifugal_compressor
    2323        ATTRIBUTES
    2424        Pallete         = true;
     
    5353        Ws                      as energy_mol   (Brief = "Isentropic Head");
    5454        Tiso            as temperature  (Brief = "Isentropic Temperature");
    55         Effp            as efficiency   (Brief = "Politropic efficiency");
     55        Effp            as positive     (Brief = "Politropic efficiency");
    5656        Effs            as efficiency   (Brief = "Isentropic efficiency");
    5757        FPower          as power                (Brief = "Fluid Power");
    5858        Mwm                     as molweight    (Brief = "Mixture Molar Weight");
     59in      Inlet           as stream               (Brief = "Inlet stream", PosX=0, PosY=0.5086);
     60out     Outlet          as streamPH             (Brief = "Outlet stream", PosX=1, PosY=0.5022);
    5961
    6062        SET
     
    8688        "Calculate Isentropic Outlet Temperature"
    8789        Tiso = Inlet.T * (Outlet.P/Inlet.P)^((k-1)/k);
    88        
     90#       PP.VapourEntropy(Tiso, Outlet.P, Outlet.z) =
     91#               PP.VapourEntropy(Inlet.T, Inlet.P, Inlet.z);
     92
    8993        "Calculate Real Outlet Temperature"
    9094        Effs * (Outlet.T- Inlet.T) = (Tiso - Inlet.T);
  • trunk/eml/pressure_changers/pump.mso

    r305 r325  
    1818*--------------------------------------------------------------------*#
    1919
    20 using "pressure_changers/flux_machine_basic";
     20using "streams";
    2121
    22 Model centrifugal_pump as flux_machine_basic
     22Model centrifugal_pump
    2323        ATTRIBUTES
    2424        Pallete         = true;
     
    6161        pvm               as pressure           (Brief = "Mixture Vapour Pressure");                   
    6262        NPSHa     as length                     (Brief = "Available Net Positive Suction Head");
    63         NS                as positive           (Brief = "Specific Speed", Unit = '(rpm*(gal/min)^0.5)/(m^3/4)');
     63        NS                as positive           (Brief = "Specific Speed");
    6464        Q                 as flow_vol           (Brief = "Volumetric Flow Rate");
    6565        vm                as vol_mol            (Brief = "Mixture Molar Volume");
    66        
     66in      Inlet     as stream                     (Brief = "Inlet stream", PosX=1, PosY=0.4025);
     67out     Outlet    as stream                     (Brief = "Outlet stream", PosX=0, PosY=0);
     68
    6769        SET
    6870        Mw = PP.MolecularWeight();
     
    127129        "Calculate Volumetric Flow Rate"
    128130        Q = Inlet.F*vm;
    129        
     131
    130132        "Calculate Specific Speed"
    131         NS = N*(Q^0.5)/(Head^3/4);
    132        
     133        NS = N*(Q^0.5)/((Head/Mwm)^(3/4));
     134
    133135end
    134 
    135136
    136137#*-------------------------------------------------------------------
     
    156157       
    157158        VARIABLES
    158 in      Inlet as stream;
    159 out     Outlet as streamPH;
     159in      Inlet           as stream               (Brief = "Inlet stream", PosX=0, PosY=0.4727);
     160out     Outlet          as streamPH             (Brief = "Outlet stream", PosX=1, PosY=0.1859);
    160161       
    161162        dP as press_delta (Brief="Pump head");
  • trunk/eml/pressure_changers/turbine.mso

    r305 r325  
    1818*--------------------------------------------------------------------*#
    1919
    20 using "pressure_changers/flux_machine_basic";
     20using "streams";
    2121
    22 Model Hidraulic_Turbine as flux_machine_basic
     22Model Hidraulic_Turbine
    2323        ATTRIBUTES
    2424        Pallete         = true;
     
    5858        rho             as dens_mass            (Brief = "Specific Mass");
    5959        Cp              as cp_mol                       (Brief = "Heat Capacity");
    60        
     60in      Inlet   as stream                       (Brief = "Inlet stream", PosX=0, PosY=0.5086);
     61out     Outlet  as stream                       (Brief = "Outlet stream", PosX=1, PosY=0.5022);
     62
    6163        SET
    6264        Mw = PP.MolecularWeight();     
     
    106108
    107109        "Calculate Head"
    108         Head * rho = Pdiff;
     110        Head = Outlet.h - Inlet.h;
    109111end
  • trunk/eml/pressure_changers/valve.mso

    r305 r325  
    1818*-------------------------------------------------------------------*#
    1919
    20 using "pressure_changers/flux_machine_basic";
     20using "streams";
    2121       
    2222
    23 Model valve as flux_machine_basic_PH
     23Model valve
    2424        ATTRIBUTES
    2525        Pallete         = true;
     
    6262        vm              as vol_mol                      (Brief = "Mixture Molar Volume");       
    6363        x               as fraction             (Brief = "Opening");
     64in      Inlet   as stream                       (Brief = "Inlet stream", PosX=0, PosY=0.7365);
     65out     Outlet  as streamPH                     (Brief = "Outlet stream", PosX=1, PosY=0.7365);
    6466       
    6567        SET
     
    162164       
    163165        VARIABLES
    164 in      Inlet as stream;
    165 out     Outlet as streamPH;
     166in      Inlet   as stream       (Brief = "Inlet stream", PosX=0, PosY=0.7365);
     167out     Outlet  as streamPH     (Brief = "Outlet stream", PosX=1, PosY=0.7365);
    166168        x as fraction (Brief="Plug Position");
    167169        rho as dens_mass (Brief="Fluid Density", Default=1e3);
  • trunk/eml/reactors/batch.mso

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

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

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

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

    r310 r325  
    4848
    4949        VARIABLES
    50 in      InletV as stream(Brief="Vapour inlet stream");
    51 out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    52 out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    53 in      InletQ as energy_stream (Brief="Heat supplied");
     50in      InletV as stream(Brief="Vapour inlet stream", PosX=0.1164, PosY=0);
     51out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4513, PosY=1);
     52out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4723, PosY=0);
     53in      InletQ as energy_stream (Brief="Cold supplied", PosX=1, PosY=0.6311);
    5454
    5555        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    127127
    128128        VARIABLES
    129 in      InletV as stream(Brief="Vapour inlet stream");
    130 out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    131 in      InletQ as energy_stream (Brief="Heat supplied");
     129in      InletV as stream(Brief="Vapour inlet stream", PosX=0.3431, PosY=0);
     130out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.34375, PosY=1);
     131in      InletQ as energy_stream (Brief="Cold supplied", PosX=1, PosY=0.5974);
    132132        DP as press_delta (Brief="Pressure Drop in the condenser");
    133133
     
    181181
    182182        VARIABLES
    183 in      InletV as stream(Brief="Vapour inlet stream");
    184 out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    185 out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    186 in      InletQ as energy_stream (Brief="Heat supplied");
     183in      InletV as stream(Brief="Vapour inlet stream", PosX=0.1164, PosY=0);
     184out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4513, PosY=1);
     185out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4723, PosY=0);
     186in      InletQ as energy_stream (Brief="Cold supplied", PosX=1, PosY=0.6311);
    187187
    188188        M(NComp) as mol (Brief="Molar Holdup in the tray");
  • trunk/eml/stage_separators/flash.mso

    r323 r325  
    5050
    5151        VARIABLES
    52 in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5);
    53 out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5);
    54 out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0);
    55 in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75);
     52in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421);
     53out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1);
     54out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0);
     55in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559);
    5656
    5757        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    140140       
    141141        VARIABLES
    142 in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5);
    143 out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5);
    144 out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0);
    145 in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75);
     142in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421);
     143out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1);
     144out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0);
     145in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559);
    146146        vfrac as fraction;
    147147
     
    191191
    192192        VARIABLES
    193 in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5);
    194 out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5);
    195 out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0);
    196 in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75);
     193in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421);
     194out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1);
     195out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0);
     196in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559);
    197197        vfrac as fraction(Brief="Real vaporization fraction");
    198198        h as enth_mol(Brief="Mixture enthalpy");
     
    249249
    250250        VARIABLES
    251 in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5);
    252 out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.5, PosY=0.5);
    253 out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5, PosY=0);
    254 in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.75);
     251in      Inlet as stream(Brief="Feed Stream", PosX=0, PosY=0.5421);
     252out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1);
     253out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0);
     254in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7559);
    255255        vfrac as fraction(Brief="Real vaporization fraction");
    256256        vsat as Real(Lower=-0.1, Upper=1.1, Brief="Vaporization fraction if saturated");
  • trunk/eml/stage_separators/reboiler.mso

    r310 r325  
    5656
    5757        VARIABLES
    58 in      Inlet as stream(Brief="Feed Stream");
    59 in      InletL as stream(Brief="Liquid inlet stream");
    60 out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    61 out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    62 in      InletQ as energy_stream (Brief="Heat supplied");
     58in      Inlet as stream(Brief="Feed Stream", PosX=0.8127, PosY=0);
     59in      InletL as stream(Brief="Liquid inlet stream", PosX=0, PosY=0.5254);
     60out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.2413, PosY=1);
     61out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5079, PosY=0);
     62in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6123);
    6363
    6464        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    141141
    142142        VARIABLES
    143 in      InletL as stream(Brief="Liquid inlet stream");
    144 out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    145 in      InletQ as energy_stream (Brief="Heat supplied");
     143in      InletL as stream(Brief="Liquid inlet stream", PosX=0.3345, PosY=1);
     144out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.3369, PosY=0);
     145in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6111);
    146146        vV as volume_mol (Brief="Vapour Molar volume");
    147147        rhoV as dens_mass (Brief="Vapour Density");
     
    188188       
    189189        VARIABLES
    190 in      InletL as stream(Brief="Liquid inlet stream");
    191 out     OutletV as stream(Brief="Vapour outlet stream");
    192 in      InletQ as energy_stream (Brief="Heat supplied");
     190in      InletL as stream(Brief="Liquid inlet stream", PosX=0.3345, PosY=1);
     191out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.3369, PosY=0);
     192in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6111);
    193193
    194194        EQUATIONS
     
    252252
    253253        VARIABLES
    254 in      Inlet as stream(Brief="Feed Stream");
    255 in      InletL as stream(Brief="Liquid inlet stream");
    256 out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    257 out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    258 
    259 in      InletQ as energy_stream (Brief="Heat supplied");
     254in      Inlet as stream(Brief="Feed Stream", PosX=0.8127, PosY=0);
     255in      InletL as stream(Brief="Liquid inlet stream", PosX=0, PosY=0.5254);
     256out     OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.2413, PosY=1);
     257out     OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5079, PosY=0);
     258in      InletQ as energy_stream (Brief="Heat supplied", PosX=1, PosY=0.6123);
     259
    260260        M(NComp) as mol (Brief="Molar Holdup in the tray");
    261261        ML as mol (Brief="Molar liquid holdup");
  • trunk/eml/stage_separators/tank.mso

    r313 r325  
    5959       
    6060        VARIABLES
    61 in      Inlet as stream;
    62 out     Outlet as liquid_stream;
    63 
    64 in      InletQ as energy_stream (Brief="Rate of heat supply");
     61in      Inlet  as stream (Brief = "Inlet stream", PosX=0.3037, PosY=0);
     62out     Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1);
     63in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7859);
    6564        Level    as length(Brief="Tank level");
    6665        M(NComp) as mol (Brief="Molar Holdup in the tank");
     
    120119       
    121120        VARIABLES
    122 in      Inlet as stream;
    123 out     Outlet as liquid_stream;
    124 
    125 in      InletQ as energy_stream (Brief="Rate of heat supply");
     121in      Inlet  as stream (Brief = "Inlet stream", PosX=0.1825, PosY=0);
     122out     Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1);
     123in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.6160);
    126124        Level    as length(Brief="Tank level");
    127125        Across as area (Brief="Tank cross section area", Default=2);
     
    176174        VARIABLES
    177175        Level as length(Brief="Tank level");
    178 in      Fin  as flow_vol(Brief="Input flow");
    179 out     Fout as flow_vol(Brief="Output flow");
     176in      Fin  as flow_vol(Brief="Input flow", PosX=0.3037, PosY=0);
     177out     Fout as flow_vol(Brief="Output flow", PosX=1, PosY=1);
    180178
    181179        EQUATIONS
     
    211209       
    212210        VARIABLES
    213 in      Feed as stream;
    214 in      Inlet as stream;
    215 out     Outlet as liquid_stream;
    216 
    217 in      InletQ as energy_stream (Brief="Rate of heat supply");
     211in      Feed as stream (Brief = "Feed stream", PosX=0.32, PosY=0);     
     212in      Inlet  as stream (Brief = "Inlet stream", PosX=0.3037, PosY=0);
     213out     Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1);
     214in      InletQ as energy_stream (Brief="Rate of heat supply", PosX=1, PosY=0.7859);
     215
    218216        Level    as length(Brief="Tank level");
    219217        M(NComp) as mol (Brief="Molar Holdup in the tank");
  • trunk/eml/stage_separators/tray.mso

    r300 r325  
    4545       
    4646        VARIABLES
    47 in      Inlet as stream;
    48 in      InletL as stream;
    49 in      InletV as stream;
    50 out     OutletL as liquid_stream;
    51 out     OutletV as vapour_stream;
     47in      Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.4932);
     48in      InletL as stream (Brief="Inlet liquid stream", PosX=0.5195, PosY=0);
     49in      InletV as stream (Brief="Inlet vapour stream", PosX=0.4994, PosY=1);
     50out     OutletL as liquid_stream (Brief="Outlet liquid stream", PosX=0.8277, PosY=1);
     51out     OutletV as vapour_stream (Brief="Outlet vapour stream", PosX=0.8043, PosY=0);
    5252
    5353        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    202202       
    203203        VARIABLES
    204 in      Inlet as stream;
    205 in      InletL as stream;
    206 in      InletV as stream;
    207 out     OutletL as liquid_stream;
    208 out     OutletV as vapour_stream;
     204in      Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.4932);
     205in      InletL as stream (Brief="Inlet liquid stream", PosX=0.5195, PosY=0);
     206in      InletV as stream (Brief="Inlet vapour stream", PosX=0.4994, PosY=1);
     207out     OutletL as liquid_stream (Brief="Outlet liquid stream", PosX=0.8277, PosY=1);
     208out     OutletV as vapour_stream (Brief="Outlet vapour stream", PosX=0.8043, PosY=0);
    209209
    210210        yideal(NComp) as fraction;
  • trunk/eml/streams.mso

    r323 r325  
    4040        z(NComp) as fraction(Brief = "Overall Molar Fraction");
    4141        h as enth_mol;
    42         v as fraction(Brief = "Vapourisation fraction");
     42        v as fraction(Brief = "Vapourization fraction");
    4343end
    4444
     
    150150
    151151        VARIABLES
    152         out Outlet                      as stream                       (Brief = "Outlet stream", PosX=1, PosY=0.5);
     152        out Outlet                      as stream                       (Brief = "Outlet stream", PosX=1, PosY=0.5256);
    153153        x(NComp)                        as fraction                     (Brief = "Liquid Molar Fraction");
    154154        y(NComp)                        as fraction                     (Brief = "Vapour Molar Fraction");
     
    226226       
    227227        VARIABLES
    228         out Outlet                      as stream               (Brief = "Outlet stream", PosX=1, PosY=0.5);
     228        out Outlet                      as stream               (Brief = "Outlet stream", PosX=1, PosY=0.5256);
    229229        x(NComp)                        as fraction             (Brief = "Liquid Molar Fraction");
    230230        y(NComp)                        as fraction             (Brief = "Vapour Molar Fraction");
     
    274274       
    275275        VARIABLES
    276         in Inlet                as stream;
    277         v                               as fraction;
     276        in Inlet                as stream               (Brief = "Inlet Stream", PosX=0, PosY=0.5308);
     277        v                               as fraction             (Brief = "Vapourization fraction");
    278278        x(NComp)                as fraction             (Brief = "Liquid Molar Fraction");
    279279        y(NComp)                as fraction             (Brief = "Vapour Molar Fraction");
     
    331331       
    332332        VARIABLES
    333         in Inlet                as stream       (Brief = "Inlet stream", PosX=0.5, PosY=0);
     333        in Inlet                as stream       (Brief = "Inlet Stream", PosX=0, PosY=0.5308);
    334334end
    335335
     
    354354
    355355        VARIABLES
    356         out OutletQ             as energy_stream (Brief = "Outlet energy stream", PosX=1, PosY=0.5);
    357 end
     356        out OutletQ             as energy_stream (Brief = "Outlet energy stream", PosX=1, PosY=0.5349);
     357end
  • trunk/sample/heat_exchangers/Sample_Heater.mso

    r320 r325  
    3030DEVICES
    3131
    32         Heater                  as heater;
     32        Heater          as heater;
    3333        streamcold      as simple_source;
    34         Heat                            as energy_source;
     34        Heat            as energy_source;
    3535       
    3636CONNECTIONS
    3737
    3838        streamcold.Outlet       to Heater.Inlet(1);
    39         Heat.OutletQ                            to Heater.InletHeat;
    40        
     39        Heat.OutletQ            to Heater.InletQ;
     40
    4141       
    4242PARAMETERS
    4343
    4444        PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR",
    45                                                                         Components      = ["isobutane","benzene"]);
     45                                                        Components      = ["isobutane","benzene"]);
    4646        NComp           as Integer;
    4747       
     
    6060        Heater.Outlet.T                 = 360*'K';
    6161        Heater.Outlet.P                 = 0.999* 'atm';
    62         Heat.OutletQ.Q                          = 10* 'kW';
     62        Heat.OutletQ.Q                  = 10* 'kW';
    6363       
    6464OPTIONS
     
    7070DEVICES
    7171
    72         Cooler                  as heater;
     72        Cooler          as cooler;
    7373        streamhot       as simple_source;
    74         Heat                            as energy_source;
     74        Heat            as energy_source;
    7575       
    7676CONNECTIONS
    7777
    7878        streamhot.Outlet        to Cooler.Inlet(1);
    79         Heat.OutletQ                    to Cooler.InletHeat;
     79        Heat.OutletQ            to Cooler.InletQ;
    8080       
    8181       
     
    8383
    8484        PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR",
    85                                                                         Components      = ["isobutane","benzene"]);
     85                                                        Components      = ["isobutane","benzene"]);
    8686        NComp           as Integer;
    8787       
     
    110110DEVICES
    111111
    112         Heater1                         as heater;
    113         Heater2                         as heater;
     112        Heater1                 as heater;
     113        Heater2                 as heater;
    114114        streamcold1     as simple_source;
    115115        streamcold2     as simple_source;
    116116        streamcold3     as simple_source;
    117         Heat                                    as energy_source;
     117        Heat                    as energy_source;
    118118       
    119119CONNECTIONS
     
    122122        streamcold2.Outlet      to Heater1.Inlet(2);
    123123        streamcold3.Outlet      to Heater1.Inlet(3);
    124         Heat.OutletQ                            to Heater1.InletHeat;
    125         Heater1.OutletHeat      to Heater2.InletHeat;
    126         Heater1.Outlet                  to Heater2.Inlet(1);
     124        Heat.OutletQ            to Heater1.InletQ;
     125        Heater1.OutletQ         to Heater2.InletQ;
     126        Heater1.Outlet          to Heater2.Inlet(1);
    127127       
    128128PARAMETERS
    129129
    130130        PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR",
    131                                                                         Components      = ["water","isobutane","benzene"]);
     131                                                        Components      = ["water","isobutane","benzene"]);
    132132        NComp           as Integer;
    133133       
Note: See TracChangeset for help on using the changeset viewer.