Changeset 182 for branches/newlanguage/sample
- Timestamp:
- Mar 5, 2007, 9:02:04 PM (16 years ago)
- Location:
- branches/newlanguage/sample/miscellaneous
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/sample/miscellaneous/sample_bio.mso
r155 r182 24 24 FlowSheet bio 25 25 PARAMETERS 26 miMax as frequency(Brief="Monod parameter", Unit='1/h', Default=0.53);27 D as frequency(Brief="Dilution rate F/V", Unit='1/h');26 miMax as frequency(Brief="Monod parameter", DisplayUnit='1/h'); 27 D as frequency(Brief="Dilution rate F/V", DisplayUnit='1/h'); 28 28 Km as conc_mass(Brief="Monod parameter", Default=0.12); 29 29 K1 as inv_conc_mass(Brief="Monod parameter", Default=0.4545); … … 34 34 biomass as conc_mass (Brief="Biomass concentration"); 35 35 substrate as conc_mass (Brief="Substrate concentration"); 36 mi as frequency (Brief="Specific growth rate", Unit='1/h');36 mi as frequency (Brief="Specific growth rate", DisplayUnit='1/h'); 37 37 38 38 EQUATIONS … … 47 47 48 48 SET 49 miMax = 0.53 * '1/h'; 49 50 D = 0.3 * '1/h'; 50 51 -
branches/newlanguage/sample/miscellaneous/sample_galvanic.mso
r83 r182 94 94 95 95 OPTIONS 96 time = [0:100:4000]; #integration time 97 relativeAccuracy = 1e-5; #relative tolerance 98 absoluteAccuracy = 1e-8; #absolute tolerance 96 TimeStep = 100; 97 TimeEnd = 4000; 98 RelativeAccuracy = 1e-5; #relative tolerance 99 AbsoluteAccuracy = 1e-8; #absolute tolerance 99 100 end -
branches/newlanguage/sample/miscellaneous/sample_hyperbolics.mso
r107 r182 53 53 54 54 Pi = 3.14159265; 55 Theta = 0.6*Pi* "rad";55 Theta = 0.6*Pi*'rad'; 56 56 57 57 EQUATIONS … … 64 64 OPTIONS 65 65 66 mode = "steady";66 Dynamic = false; 67 67 68 68 end -
branches/newlanguage/sample/miscellaneous/sample_if.mso
r125 r182 28 28 EQUATIONS 29 29 if x < 1 then 30 diff(y) = 1 / "s";30 diff(y) = 1 / 's'; 31 31 z = 3; 32 32 else 33 diff(y) = - 1 / "s";33 diff(y) = - 1 / 's'; 34 34 if y < 1 then 35 35 z = x + y; … … 39 39 end 40 40 41 diff(x) = y / "s";41 diff(x) = y / 's'; 42 42 43 43 INITIAL … … 48 48 TimeStep = 0.1; 49 49 TimeEnd = 10.0; 50 TimeUnit = "s";50 TimeUnit = 's'; 51 51 end 52 52 -
branches/newlanguage/sample/miscellaneous/sample_if_tanh.mso
r83 r182 43 43 44 44 OPTIONS 45 time = [0:0.01:6]; 45 TimeStep = 0.01; 46 TimeEnd = 6; 46 47 end -
branches/newlanguage/sample/miscellaneous/sample_manipulation.mso
r107 r182 64 64 65 65 OPTIONS 66 mode = "steady";66 Dynamic = false; 67 67 68 68 end -
branches/newlanguage/sample/miscellaneous/sample_mathematicals.mso
r107 r182 52 52 53 53 OPTIONS 54 55 time = [0.1:0.001:1];56 relativeAccuracy = 1e-10;57 54 TimeStart = 0.001; 55 TimeStep = 0.001; 56 TimeEnd = 1; 57 RelativeAccuracy = 1e-6; 58 58 end -
branches/newlanguage/sample/miscellaneous/sample_matrix.mso
r107 r182 83 83 84 84 OPTIONS 85 mode = "steady"; 86 relativeAccuracy = 1e-10; 87 85 Dynamic = false; 86 RelativeAccuracy = 1e-6; 88 87 end -
branches/newlanguage/sample/miscellaneous/sample_methanol.mso
r83 r182 25 25 Model MESEPARATOR 26 26 PARAMETERS 27 extNoComp;27 outer NoComp; 28 28 VARIABLES 29 29 in FLOWIN(NoComp) as FLOWRATE; … … 54 54 Model FEEDERMB # Feed stream definition (material balance only) 55 55 PARAMETERS 56 extNoComp;56 outer NoComp; 57 57 VARIABLES 58 58 out FLOWOUT(NoComp) as FLOWRATE; … … 68 68 Model MEREACTOR 69 69 PARAMETERS 70 extNoComp;70 outer NoComp; 71 71 Temp as Real(Default=500, Lower=300); 72 72 Pressure as Real(Default=100); … … 110 110 Model SPLITMB # TWO Stream SPLITTER (MATERIAL BALANCE ONLY) 111 111 PARAMETERS 112 extNoComp;112 outer NoComp; 113 113 VARIABLES 114 114 out FLOWOUT2(NoComp) as FLOWRATE; … … 135 135 Model MAKEUPMB # MIXER of TWO StreamS (MATERIAL BALANCE ONLY) 136 136 PARAMETERS 137 extNoComp;137 outer NoComp; 138 138 VARIABLES 139 139 out FLOWOUT(NoComp) as FLOWRATE; … … 182 182 Reactor.Pressure = 120; 183 183 OPTIONS 184 mode = "steady";184 Dynamic = false; 185 185 end 186 186 -
branches/newlanguage/sample/miscellaneous/sample_pend.mso
r83 r182 33 33 w as velocity(Brief = "Velocity for x"); 34 34 z as velocity(Brief = "Velocity for y"); 35 T as Real(Brief = "Tension on cable",Default=10,Unit= "1/s^2");35 T as Real(Brief = "Tension on cable",Default=10,Unit='1/s^2'); 36 36 37 37 EQUATIONS … … 52 52 53 53 SET 54 g = 9.8 * "m/s^2";55 L = 1 * "m";54 g = 9.8 * 'm/s^2'; 55 L = 1 * 'm'; 56 56 57 57 INITIAL 58 58 "Initial Position x" 59 x = -1 * "m";59 x = -1 * 'm'; 60 60 61 61 "Initial x Velocity" 62 w = 0 * "m/s";62 w = 0 * 'm/s'; 63 63 64 64 #"Initial Position y" y = 0 * "m"; … … 66 66 67 67 OPTIONS 68 69 time = [0:0.1:30];70 integration = "index0"; # original, index0 or index171 relativeAccuracy = 1e-8;72 absoluteAccuracy = 1e-9;73 indVarAccuracy = 1e-3;74 LASolver = "dense"; # dense or sparse68 TimeStep = 0.1; 69 TimeEnd = 30; 70 Integration = "index0"; # original, index0 or index1 71 RelativeAccuracy = 1e-8; 72 AbsoluteAccuracy = 1e-9; 73 EventAccuracy = 1e-3; 74 SparseAlgebra = true; # dense or sparse 75 75 DAESolver = "dassl"; # mebdf, dasslc, dassl, or sundials 76 76 end -
branches/newlanguage/sample/miscellaneous/sample_streams.mso
r147 r182 34 34 35 35 SPECIFY 36 s1.F = 10 * "kmol/h";37 s1.T = 300 * "K";38 s1.P = 1 * "atm";36 s1.F = 10 * 'kmol/h'; 37 s1.T = 300 * 'K'; 38 s1.P = 1 * 'atm'; 39 39 s1.z = 1/NComp; 40 s1.h = 5 * "J/kmol";40 s1.h = 5 * 'J/kmol'; 41 41 s1.v = 0.0; 42 42 … … 70 70 71 71 SPECIFY 72 sl.Outlet.F = 10 * "kmol/h";73 sl.Outlet.T = 300 * "K";74 sl.Outlet.P = 100 * "kPa";72 sl.Outlet.F = 10 * 'kmol/h'; 73 sl.Outlet.T = 300 * 'K'; 74 sl.Outlet.P = 100 * 'kPa'; 75 75 sl.Outlet.z = [0.24596, 0.370278, 0.383762]; 76 76 # sl.Outlet.v = 0.0; #liquid stream 77 77 78 78 79 sv.Outlet.F = 10 * "kmol/h";80 #sv.Outlet.h = 20248 * "J/mol";81 sv.Outlet.T = 300 * "K";82 sv.Outlet.P = 100 * "kPa";79 sv.Outlet.F = 10 * 'kmol/h'; 80 #sv.Outlet.h = 20248 * 'J/mol'; 81 sv.Outlet.T = 300 * 'K'; 82 sv.Outlet.P = 100 * 'kPa'; 83 83 #sv.Outlet.z = [0.824212, 0.12577, 0.0500176]; 84 84 # sv.Outlet.v = 1.0; #vapor stream -
branches/newlanguage/sample/miscellaneous/sample_tanks.mso
r113 r182 31 31 32 32 SET 33 Tanque.k = 8 * "m^2.5/h";34 Tanque.A = 4 * "m^2";33 Tanque.k = 8 * 'm^2.5/h'; 34 Tanque.A = 4 * 'm^2'; 35 35 36 36 SPECIFY 37 37 "Vazao de entrada" 38 Fin = 10 * "m^3/h";38 Fin = 10 * 'm^3/h'; 39 39 40 40 INITIAL 41 41 "altura inicial" 42 Tanque.h = 1 * "m";42 Tanque.h = 1 * 'm'; 43 43 44 44 OPTIONS 45 time = [0:0.1:5] * "h" ; 45 TimeStep = 0.1; 46 TimeEnd = 5; 47 TimeUnit = 'h' ; 46 48 end 47 49 … … 59 61 60 62 SET 61 Tanque2.k = 8 * "m^2.5/h";62 Tanque2.A = 4 * "m^2";63 Tanque2.k = 8 * 'm^2.5/h'; 64 Tanque2.A = 4 * 'm^2'; 63 65 64 66 SPECIFY 65 67 "Vazao de entrada" 66 Fin = 10 * "m^3/h";68 Fin = 10 * 'm^3/h'; 67 69 68 70 INITIAL 69 71 "altura inicial" 70 Tanque1.h = 1 * "m";71 Tanque2.h = 2 * "m";72 Tanque3.h = 1 * "m";72 Tanque1.h = 1 * 'm'; 73 Tanque2.h = 2 * 'm'; 74 Tanque3.h = 1 * 'm'; 73 75 74 76 OPTIONS 75 time = [0:0.5:15] * "h" ; 77 TimeStep = 0.5; 78 TimeEnd = 15; 79 TimeUnit = 'h' ; 76 80 end -
branches/newlanguage/sample/miscellaneous/sample_trigonometrics.mso
r107 r182 57 57 58 58 Pi = 3.14159265; 59 Theta = 0.6*Pi* "rad";59 Theta = 0.6*Pi*'rad'; 60 60 61 61 EQUATIONS … … 71 71 OPTIONS 72 72 73 mode = "steady"; 74 relativeAccuracy = 1e-10; 75 73 Dynamic = false; 74 RelativeAccuracy = 1e-10; 76 75 end
Note: See TracChangeset
for help on using the changeset viewer.