Changeset 696 for branches/gui


Ignore:
Timestamp:
Dec 10, 2008, 5:49:23 PM (14 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Minor changes on a misc sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/sample/miscellaneous/sample_high_index_optimal.mso

    r695 r696  
    3737       
    3838        Cv as Real(Unit = 'J/mol/K');
    39         DHvap as energy_mol;
     39        DHvap(NComp) as energy_mol;
    4040
    4141        VARIABLES
     
    6464       
    6565        "Energy Balance"
    66         diff(E) = Q - V*DHvap;
     66        diff(E) = Q - V*sum(DHvap*y);
    6767       
    6868        "Internal energy"
     
    9292       
    9393        fl.Cv = 30 * 'J/mol/K';
    94         fl.DHvap = 30 * 'kJ/mol';
     94        fl.DHvap = [10, 20, 30] * 'kJ/mol';
    9595       
    9696        EQUATIONS
    97         if time < 1 * 'min' then
     97        if time < 1 * 'h' then
    9898                fl.z = [0.45, 0.35, 0.2];
    9999        else
     
    107107       
    108108        fl.V = 0.1 * 'kmol/h';
    109         fl.L = 0.2 * 'kmol/h';
     109        #fl.L = 0.2 * 'kmol/h';
     110        fl.nt = 1 * 'kmol';
    110111       
    111112        # Operating conditions
    112113        #fl.T = (80+273.15) * 'K';
    113         fl.Q = 0 * 'W';
     114        #fl.Q = 2.9 * 'kW';
    114115        #fl.P = 1.2 * 'atm';
     116        fl.y(1) = 0.8;
    115117       
    116118        INITIAL
    117         fl.T = (80+273.15) * 'K';
    118         fl.x = [0.55, 0.25];
     119        #fl.T = (80+273.15) * 'K';
     120        #fl.nt = 1 * 'kmol';
     121        fl.x(1:2) = [0.55, 0.25];
    119122       
    120123        OPTIONS
    121124        TimeEnd = 2;
    122125        TimeStep = 0.01;
    123         TimeUnit = 'min';
     126        TimeUnit = 'h';
     127
     128        DAESolver(File="dasslc");
     129       
    124130        Dynamic = true;
    125131end
Note: See TracChangeset for help on using the changeset viewer.