- Timestamp:
- Mar 14, 2007, 1:17:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/sample/stage_separators/sample_batch_dist.mso
r86 r202 29 29 30 30 PARAMETERS 31 PP as CalcObject(Brief="Physical Properties",File="vrpp");31 PP as Plugin(Brief="Physical Properties",File="vrpp"); 32 32 NComp as Integer; 33 33 … … 40 40 DEVICES 41 41 batch as Diff_Dist; 42 reflux as stream _therm;43 feed as stream _therm;42 reflux as stream; 43 feed as stream; 44 44 45 45 CONNECTIONS … … 49 49 EQUATIONS 50 50 if batch.Level > 1E-3 then 51 batch.OutletV.F = 150 * "kmol/h";52 batch.Q = 3.7743e6 * "kJ/h";51 batch.OutletV.F = 150 * 'kmol/h'; 52 batch.Q = 3.7743e6 * 'kJ/h'; 53 53 else 54 batch.OutletV.F = 0 * "kmol/h";55 batch.Q = 0 * "kJ/h";54 batch.OutletV.F = 0 * 'kmol/h'; 55 batch.Q = 0 * 'kJ/h'; 56 56 end 57 57 58 58 SPECIFY 59 reflux.F = 0 * "kmol/h";60 reflux.T = 328 * "K";61 reflux.P = 180 * "kPa";59 reflux.F = 0 * 'kmol/h'; 60 reflux.T = 328 * 'K'; 61 reflux.P = 180 * 'kPa'; 62 62 reflux.z = [0.5, 0.5]; 63 63 reflux.v = 0; 64 reflux.h = 0 * 'kJ/kmol'; 64 65 65 feed.F = 0 * "kmol/h";66 feed.T = 328 * "K";67 feed.P = 180 * "kPa";66 feed.F = 0 * 'kmol/h'; 67 feed.T = 328 * 'K'; 68 feed.P = 180 * 'kPa'; 68 69 feed.z = [0.5, 0.5]; 69 70 feed.v = 0; 71 feed.h = 0 * 'kJ/kmol'; 70 72 71 73 SET 72 batch.V = 3 * "m^3";73 batch.Across = 1 * "m^2";74 batch.V = 3 * 'm^3'; 75 batch.Across = 1 * 'm^2'; 74 76 75 77 INITIAL 76 batch.T = 298 * "K";77 batch.Level = 2.5 * "m";78 batch.T = 298 *'K'; 79 batch.Level = 2.5 * 'm'; 78 80 batch.x(2) = 0.2; 79 81 80 82 OPTIONS 81 relativeAccuracy = 1e-3; 82 time = [0:0.1:20]*"min"; 83 RelativeAccuracy = 1e-3; 84 TimeEnd = 20; 85 TimeStep = 0.1; 86 TimeUnit = 'min'; 83 87 end
Note: See TracChangeset
for help on using the changeset viewer.