Changeset 213 for branches/newlanguage/sample
- Timestamp:
- Mar 15, 2007, 4:40:55 PM (16 years ago)
- Location:
- branches/newlanguage/sample
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/sample/pressure_changers/sample_compressor.mso
r210 r213 36 36 37 37 PARAMETERS 38 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 38 PP as Plugin (Brief="External Physical Properties", 39 Type="PP", 40 Components = ["nitrogen", "oxygen"], 41 LiquidModel = "IdealLiquid", 42 VapourModel = "Ideal" 43 ); 39 44 NComp as Integer (Default= 1); 40 45 41 46 SET 42 PP.Components = ["nitrogen", "oxygen"];43 PP.LiquidModel = "IdealLiquid";44 PP.VapourModel = "Ideal";45 47 NComp = PP.NumberOfComponents; 46 PP.Derivatives = 0;47 48 48 49 SPECIFY … … 54 55 55 56 C1.Outlet.P = 3 * 'atm'; 56 end 57 end -
branches/newlanguage/sample/pressure_changers/sample_pump.mso
r196 r213 35 35 36 36 PARAMETERS 37 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 37 PP as Plugin (Brief="External Physical Properties", 38 Type="PP", 39 Components = ["water", "benzene"], 40 LiquidModel = "PR", 41 VapourModel = "PR" 42 ); 38 43 Mw as positive (Brief = "Molar Mass", Unit = 'kg/kmol'); 39 44 NComp as Integer (Default= 1); 40 45 41 46 SET 42 PP.Components = ["water", "benzene"];43 PP.LiquidModel = "PR";44 PP.VapourModel = "PR";45 47 NComp = PP.NumberOfComponents; 46 PP.Derivatives = 0;47 48 P1.N = 1000 * 'rpm'; 48 49 P1.Lev = 0 * 'm'; … … 65 66 FlowSheet pump_Test 66 67 PARAMETERS 67 PP as Plugin(Brief="Physical Properties",File="vrpp"); 68 PP as Plugin (Brief="External Physical Properties", 69 Type="PP", 70 Components = ["water", "benzene"], 71 LiquidModel = "PR", 72 VapourModel = "PR" 73 ); 68 74 NComp as Integer; 69 75 70 76 SET 71 PP.Components = ["water", "benzene"];72 PP.LiquidModel = "PR";73 PP.VapourModel = "PR";74 77 NComp = PP.NumberOfComponents; 75 78 -
branches/newlanguage/sample/pressure_changers/sample_turbine.mso
r210 r213 36 36 37 37 PARAMETERS 38 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 38 PP as Plugin (Brief="External Physical Properties", 39 Type="PP", 40 Components = ["water", "benzene"], 41 LiquidModel = "PR", 42 VapourModel = "PR" 43 ); 39 44 Mw as positive (Brief = "Molar Mass", Unit = 'kg/kmol'); 40 45 NComp as Integer (Default= 1); 41 46 42 47 SET 43 PP.Components = ["water", "benzene"]; 44 PP.LiquidModel = "PR"; 45 PP.VapourModel = "PR"; 46 PP.Derivatives = 0; 47 NComp = PP.NumberOfComponents; 48 NComp = PP.NumberOfComponents(); 48 49 49 50 SPECIFY -
branches/newlanguage/sample/pressure_changers/sample_valve.mso
r206 r213 29 29 # with vapour conditions 30 30 PARAMETERS 31 PP as Plugin(Brief="Physical Properties",File="vrpp"); 31 PP as Plugin(Brief="Physical Properties", 32 Type="PP", 33 Components = [ "isobutane", "benzene"], 34 LiquidModel = "PR", 35 VapourModel = "PR" 36 ); 32 37 NComp as Integer; 33 38 34 39 SET 35 PP.Components = [ "isobutane", "benzene"];36 PP.LiquidModel = "PR";37 PP.VapourModel = "PR";38 40 NComp = PP.NumberOfComponents; 39 41 … … 64 66 #with liquid conditions 65 67 PARAMETERS 66 PP as Plugin(Brief="Physical Properties",File="vrpp"); 68 PP as Plugin(Brief="Physical Properties", 69 Type="PP", 70 Components = [ "isobutane", "benzene"], 71 LiquidModel = "PR", 72 VapourModel = "PR" 73 ); 67 74 NComp as Integer; 68 75 69 76 SET 70 PP.Components = [ "isobutane", "benzene"];71 PP.LiquidModel = "PR";72 PP.VapourModel = "PR";73 77 NComp = PP.NumberOfComponents; 74 78 … … 106 110 107 111 PARAMETERS 108 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 112 PP as Plugin(Brief="Physical Properties", 113 Type="PP", 114 Components = [ "isobutane", "benzene"], 115 LiquidModel = "PR", 116 VapourModel = "PR" 117 ); 109 118 NComp as Integer (Default= 1); 110 119 111 120 SET 112 PP.Components = ["water"];113 PP.LiquidModel = "IdealLiquid";114 PP.VapourModel = "Ideal";115 PP.Derivatives = 0;116 121 NComp = PP.NumberOfComponents; 117 122 V1.valve_type = "linear"; #"parabolic", "equal", "quick", "hyperbolic" -
branches/newlanguage/sample/reactors/sample_cstr.mso
r208 r213 29 29 30 30 PARAMETERS 31 PP as Plugin (Brief="Physical Properties",File="vrpp"); 31 PP as Plugin(Brief="Physical Properties", 32 Type = "PP", 33 Components = ["1,2-propylene oxide", "methanol","water","1,2-propylene glycol" ], 34 LiquidModel = "PR", 35 VapourModel = "PR" 36 ); 32 37 NComp as Integer; 33 38 R as Real (Default=8.3145, Unit='J/mol/K'); … … 38 43 39 44 SET 40 41 PP.Components = ["1,2-propylene oxide", "methanol","water","1,2-propylene glycol" ];42 PP.LiquidModel = "PR";43 PP.VapourModel = "PR";44 45 45 NComp = PP.NumberOfComponents; 46 46 Reac.NReac = 1; -
branches/newlanguage/sample/reactors/sample_pfr.mso
r194 r213 39 39 PARAMETERS 40 40 41 PP as Plugin (Brief="Physical Properties",File="vrpp"); 41 PP as Plugin (Brief="Physical Properties", 42 Type = "PP", 43 Components = ["acetone", "acetic anhydride", "methane" ], 44 LiquidModel = "PR", 45 VapourModel = "PR" 46 ); 42 47 NComp as Integer; 43 48 … … 48 53 49 54 SET 50 51 PP.Components = ["acetone", "acetic anhydride", "methane" ];52 PP.LiquidModel = "PR";53 PP.VapourModel = "PR";54 55 55 NComp = PP.NumberOfComponents; 56 56 … … 105 105 TimeStep = 0.05; 106 106 TimeEnd = 3; 107 NLASolver = "sundials";108 107 #Dynamic = false; 109 108 #DAESolver = "dassl"; -
branches/newlanguage/sample/stage_separators/sample_batch_dist.mso
r202 r213 29 29 30 30 PARAMETERS 31 PP as Plugin(Brief="Physical Properties",File="vrpp"); 31 PP as Plugin(Brief="Physical Properties", 32 Type="PP", 33 Components = [ "isobutane", "benzene" ], 34 LiquidModel = "PR", 35 VapourModel = "PR" 36 ); 32 37 NComp as Integer; 33 38 34 39 SET 35 PP.Components = [ "isobutane", "benzene" ];36 PP.LiquidModel = "PR";37 PP.VapourModel = "PR";38 40 NComp = PP.NumberOfComponents; 39 41 -
branches/newlanguage/sample/stage_separators/sample_batch_dist_PID.mso
r202 r213 29 29 30 30 PARAMETERS 31 PP as Plugin(Brief="Physical Properties",File="vrpp"); 31 PP as Plugin(Brief="Physical Properties", 32 Type="PP", Components = [ "isobutane", "benzene" ], 33 LiquidModel = "PR", VapourModel = "PR"); 32 34 NComp as Integer; 33 35 P_max as pressure(Brief="Maximum Pressure on distillator"); … … 39 41 40 42 SET 41 PP.Components = [ "isobutane", "benzene" ];42 PP.LiquidModel = "PR";43 PP.VapourModel = "PR";44 43 NComp = PP.NumberOfComponents; 45 44 -
branches/newlanguage/sample/stage_separators/sample_column.mso
r208 r213 32 32 FlowSheet SectionColumn_Test_with2tray 33 33 PARAMETERS 34 PP as Plugin(Brief="Physical Properties",File="vrpp"); 34 PP as Plugin(Brief="Physical Properties", 35 Type="PP", 36 Components = [ "isobutane", "benzene"], 37 LiquidModel = "PR", 38 VapourModel = "PR" 39 ); 35 40 NComp as Integer; 36 41 37 42 SET 38 PP.Components = [ "isobutane", "benzene"];39 PP.LiquidModel = "PR";40 PP.VapourModel = "PR";41 43 NComp = PP.NumberOfComponents; 42 44 … … 112 114 FlowSheet SectionColumn_Test_with8tray 113 115 PARAMETERS 114 PP as Plugin(Brief="Physical Properties",File="vrpp"); 116 PP as Plugin(Brief="Physical Properties", 117 Type="PP", 118 Components = [ "isobutane", "benzene"], 119 LiquidModel = "PR", 120 VapourModel = "PR" 121 ); 115 122 NComp as Integer; 116 123 117 124 SET 118 PP.Components = [ "isobutane", "benzene"];119 PP.LiquidModel = "PR";120 PP.VapourModel = "PR";121 PP.Derivatives = 0;122 125 NComp = PP.NumberOfComponents; 123 126 … … 191 194 FlowSheet Distillation_kettle_cond_Test 192 195 PARAMETERS 193 PP as Plugin(Brief="Physical Properties",File="vrpp"); 196 PP as Plugin(Brief="Physical Properties", 197 Type="PP", 198 Components = [ "isobutane", "benzene"], 199 LiquidModel = "PR", 200 VapourModel = "PR" 201 ); 194 202 NComp as Integer; 195 203 … … 199 207 200 208 SET 201 PP.Components = [ "isobutane", "n-pentane", "propylene",202 "benzene", "isobutene" ];203 PP.LiquidModel = "PR";204 PP.VapourModel = "PR";205 PP.Derivatives = 1;206 209 NComp = PP.NumberOfComponents; 207 210 … … 283 286 FlowSheet Column_ctrl 284 287 PARAMETERS 285 PP as Plugin(Brief="Physical Properties",File="vrpp"); 288 PP as Plugin(Brief="Physical Properties", 289 Type="PP", 290 Components = [ "isobutane", "n-pentane", "propylene", 291 "benzene", "isobutene" ], 292 LiquidModel = "PR", 293 VapourModel = "PR" 294 ); 286 295 NComp as Integer; 287 296 … … 313 322 314 323 SET 315 PP.Components = [ "isobutane", "n-pentane", "propylene",316 "benzene", "isobutene" ];317 PP.LiquidModel = "PR";318 PP.VapourModel = "PR";319 PP.Derivatives = 1;320 324 NComp = PP.NumberOfComponents; 321 325 -
branches/newlanguage/sample/stage_separators/sample_columnReact.mso
r208 r213 28 28 FlowSheet Startup_ReactiveDistillation 29 29 PARAMETERS 30 PP as Plugin(Brief="Physical Properties",File="vrpp"); 30 PP as Plugin(Brief="Physical Properties", 31 Type="PP", 32 Components = [ "acetic acid", "ethanol", "ethyl acetate", "water"], 33 LiquidModel = "UNIFAC", 34 VapourModel = "Ideal", 35 Derivatives = 1 36 ); 31 37 NComp as Integer; 32 38 33 39 SET 34 PP.Components = [ "acetic acid", "ethanol", "ethyl acetate", "water"];35 PP.LiquidModel = "UNIFAC";36 PP.VapourModel = "Ideal";37 PP.Derivatives = 1;38 40 NComp = PP.NumberOfComponents; 39 41 -
branches/newlanguage/sample/stage_separators/sample_condenser.mso
r208 r213 29 29 FlowSheet condenser_Test 30 30 PARAMETERS 31 PP as Plugin(Brief="Physical Properties",File="vrpp"); 31 PP as Plugin(Brief="Physical Properties", 32 Type="PP", 33 Components = [ "isobutane", "benzene"], 34 LiquidModel = "PR", 35 VapourModel = "PR" 36 ); 32 37 NComp as Integer; 33 38 … … 36 41 37 42 SET 38 PP.Components = [ "isobutane", "benzene"];39 PP.LiquidModel = "PR";40 PP.VapourModel = "PR";41 43 NComp = PP.NumberOfComponents; 42 44 … … 79 81 FlowSheet condenserSteady_Test 80 82 PARAMETERS 81 PP as Plugin(Brief="Physical Properties",File="vrpp"); 83 PP as Plugin(Brief="Physical Properties", 84 Type="PP", 85 Components = [ "isobutane", "benzene"], 86 LiquidModel = "PR", 87 VapourModel = "PR" 88 ); 82 89 NComp as Integer; 83 90 … … 86 93 87 94 SET 88 PP.Components = [ "isobutane", "benzene"];89 PP.LiquidModel = "PR";90 PP.VapourModel = "PR";91 95 NComp = PP.NumberOfComponents; 92 96 -
branches/newlanguage/sample/stage_separators/sample_flash.mso
r176 r213 28 28 FlowSheet flash_Test 29 29 PARAMETERS 30 PP as Plugin(Brief="Physical Properties", File="vrpp"); 30 PP as Plugin(Brief="Physical Properties", 31 Type="PP", 32 Components = ["1,3-butadiene", "isobutene", "n-pentane", 33 "1-pentene", "1-hexene", "benzene"], 34 LiquidModel = "PR", 35 VapourModel = "PR" 36 ); 31 37 NComp as Integer; 32 38 … … 35 41 36 42 SET 37 PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"];38 PP.LiquidModel = "PR";39 PP.VapourModel = "PR";40 43 NComp = PP.NumberOfComponents; 41 44 … … 87 90 FlowSheet flashSteady_Test 88 91 PARAMETERS 89 PP as Plugin(Brief="Physical Properties", File="vrpp"); 92 PP as Plugin(Brief="Physical Properties", 93 Type="PP", 94 Components = ["1,3-butadiene", "isobutene", "n-pentane", 95 "1-pentene", "1-hexene", "benzene"], 96 LiquidModel = "PR", 97 VapourModel = "PR" 98 ); 90 99 NComp as Integer; 91 100 … … 94 103 95 104 SET 96 PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"];97 PP.LiquidModel = "PR";98 PP.VapourModel = "PR";99 105 NComp = PP.NumberOfComponents; 100 106 -
branches/newlanguage/sample/stage_separators/sample_flashPH.mso
r208 r213 27 27 FlowSheet FlashPHTest 28 28 PARAMETERS 29 PP as Plugin(Brief="Physical Properties",File="vrpp"); 29 PP as Plugin(Brief="Physical Properties", 30 Type="PP", 31 Components = ["methane", "isobutene", "benzene"], 32 LiquidModel = "IdealLiquid", 33 VapourModel = "Ideal" 34 ); 30 35 NComp as Integer; 31 36 … … 34 39 35 40 SET 36 PP.Components = ["methane", "isobutene", "benzene"];37 PP.LiquidModel = "IdealLiquid";38 PP.VapourModel = "Ideal";39 41 NComp = PP.NumberOfComponents; 40 42 -
branches/newlanguage/sample/stage_separators/sample_reboiler.mso
r208 r213 27 27 FlowSheet reboiler_Test 28 28 PARAMETERS 29 PP as Plugin(Brief="Physical Properties",File="vrpp"); 29 PP as Plugin(Brief="Physical Properties", 30 Type="PP", 31 Components = [ "isobutane", "benzene"], 32 LiquidModel = "PR", 33 VapourModel = "PR" 34 ); 30 35 NComp as Integer; 31 36 … … 34 39 35 40 SET 36 PP.Components = [ "isobutane", "benzene"];37 PP.LiquidModel = "PR";38 PP.VapourModel = "PR";39 41 NComp = PP.NumberOfComponents; 40 42 … … 85 87 FlowSheet reboilerSteady_Test 86 88 PARAMETERS 87 PP as Plugin(Brief="Physical Properties",File="vrpp"); 89 PP as Plugin(Brief="Physical Properties", 90 Type="PP", 91 Components = [ "isobutane", "benzene"], 92 LiquidModel = "PR", 93 VapourModel = "PR" 94 ); 88 95 NComp as Integer; 89 96 … … 92 99 93 100 SET 94 PP.Components = [ "isobutane", "benzene"];95 PP.LiquidModel = "PR";96 PP.VapourModel = "PR";97 101 NComp = PP.NumberOfComponents; 98 102 -
branches/newlanguage/sample/stage_separators/sample_tank.mso
r174 r213 27 27 FlowSheet tank_Test 28 28 PARAMETERS 29 PP as Plugin(Brief="Physical Properties",File="vrpp"); 29 PP as Plugin(Brief="Physical Properties", 30 Type="PP", 31 Components = ["methane", "isobutane", "benzene"], 32 LiquidModel = "PR", 33 VapourModel = "PR" 34 ); 30 35 NComp as Integer; 31 36 SET 32 PP.Components = ["methane", "isobutane", "benzene"];33 PP.LiquidModel = "PR";34 PP.VapourModel = "PR";35 37 NComp = PP.NumberOfComponents; 36 38 … … 72 74 FlowSheet tank_cylindrical_Test 73 75 PARAMETERS 74 PP as Plugin(Brief="Physical Properties",File="vrpp"); 76 PP as Plugin(Brief="Physical Properties", 77 Type="PP", 78 Components = ["methane", "isobutane", "benzene"], 79 LiquidModel = "PR", 80 VapourModel = "PR" 81 ); 75 82 NComp as Integer; 76 83 SET 77 PP.Components = ["methane", "isobutane", "benzene"];78 PP.LiquidModel = "PR";79 PP.VapourModel = "PR";80 84 NComp = PP.NumberOfComponents; 81 85 -
branches/newlanguage/sample/stage_separators/sample_tray.mso
r208 r213 27 27 FlowSheet tray_Test 28 28 PARAMETERS 29 PP as Plugin(Brief="Physical Properties",File="vrpp"); 29 PP as Plugin(Brief="Physical Properties", 30 Type="PP", 31 Components = [ "n-pentane", "benzene"], 32 LiquidModel = "PR", 33 VapourModel = "PR" 34 ); 30 35 NComp as Integer; 31 36 32 37 SET 33 PP.Components = [ "n-pentane", "benzene"];34 PP.LiquidModel = "PR";35 PP.VapourModel = "PR";36 38 NComp = PP.NumberOfComponents; 37 39
Note: See TracChangeset
for help on using the changeset viewer.