Changeset 696 for branches/gui/sample
 Timestamp:
 Dec 10, 2008, 5:49:23 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/gui/sample/miscellaneous/sample_high_index_optimal.mso
r695 r696 37 37 38 38 Cv as Real(Unit = 'J/mol/K'); 39 DHvap as energy_mol;39 DHvap(NComp) as energy_mol; 40 40 41 41 VARIABLES … … 64 64 65 65 "Energy Balance" 66 diff(E) = Q  V* DHvap;66 diff(E) = Q  V*sum(DHvap*y); 67 67 68 68 "Internal energy" … … 92 92 93 93 fl.Cv = 30 * 'J/mol/K'; 94 fl.DHvap = 30* 'kJ/mol';94 fl.DHvap = [10, 20, 30] * 'kJ/mol'; 95 95 96 96 EQUATIONS 97 if time < 1 * ' min' then97 if time < 1 * 'h' then 98 98 fl.z = [0.45, 0.35, 0.2]; 99 99 else … … 107 107 108 108 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'; 110 111 111 112 # Operating conditions 112 113 #fl.T = (80+273.15) * 'K'; 113 fl.Q = 0 * 'W';114 #fl.Q = 2.9 * 'kW'; 114 115 #fl.P = 1.2 * 'atm'; 116 fl.y(1) = 0.8; 115 117 116 118 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]; 119 122 120 123 OPTIONS 121 124 TimeEnd = 2; 122 125 TimeStep = 0.01; 123 TimeUnit = 'min'; 126 TimeUnit = 'h'; 127 128 DAESolver(File="dasslc"); 129 124 130 Dynamic = true; 125 131 end
Note: See TracChangeset
for help on using the changeset viewer.