Changeset 175 for branches/newlanguage/sample/mixers_splitters
- Timestamp:
- Mar 2, 2007, 1:57:58 PM (17 years ago)
- Location:
- branches/newlanguage/sample/mixers_splitters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/sample/mixers_splitters/sample_sepComp.mso
r80 r175 27 27 28 28 FlowSheet Sample_sepComp_n 29 PARAMETERS30 PP as CalcObject(Brief="Physical Properties",File="vrpp");31 NComp as Integer;32 29 33 DEVICES 34 stream as stream_therm; 35 sep as sepComp_n; 30 PARAMETERS 36 31 37 CONNECTIONS38 stream to sep.Inlet;32 PP as Plugin (Brief="Physical Properties",File="vrpp"); 33 NComp as Integer; 39 34 40 SET 35 DEVICES 36 Stream as source; 37 sep as sepComp_n; 38 39 CONNECTIONS 40 Stream.Outlet to sep.Inlet; 41 42 SET 41 43 PP.Components = [ "isobutane", "benzene"]; 42 44 PP.LiquidModel = "PR"; 43 45 PP.VapourModel = "PR"; 44 46 NComp = PP.NumberOfComponents; 47 45 48 sep.mainComp = 1; 46 49 sep.NOutlet = 3; 47 50 48 49 stream.F = 30 * "kmol/h";50 stream.P = 120 * "kPa";51 stream.T = 290 * "K";52 stream.z = [0.6, 0.4];53 stream.v = 0;51 SPECIFY 52 Stream.Outlet.F = 30 * 'kmol/h'; 53 Stream.Outlet.P = 120 * 'kPa'; 54 Stream.Outlet.T = 290 * 'K'; 55 Stream.Outlet.z = [0.6, 0.4]; 56 54 57 sep.Outlet(1).z(1) = 0.7; 55 58 sep.Outlet(2).z(1) = 0.1; … … 59 62 # sep.recovery(2) = 0.033333; 60 63 61 62 relativeAccuracy = 1e-7;64 OPTIONS 65 RelativeAccuracy = 1e-7; 63 66 64 67 end … … 67 70 FlowSheet Sample_sepComp 68 71 PARAMETERS 69 PP as CalcObject(Brief="Physical Properties",File="vrpp");72 PP as Plugin(Brief="Physical Properties",File="vrpp"); 70 73 NComp as Integer; 71 74 72 75 DEVICES 73 stream as streamTP;76 Stream as source; 74 77 sep as sepComp; 75 78 76 79 CONNECTIONS 77 streamto sep.Inlet;80 Stream.Outlet to sep.Inlet; 78 81 79 82 SET … … 85 88 86 89 SPECIFY 87 stream.F = 30 * "kmol/h"; 88 stream.P = 120 * "kPa"; 89 stream.T = 290 * "K"; 90 stream.z = [0.6, 0.4]; 90 Stream.Outlet .F = 30 * 'kmol/h'; 91 Stream.Outlet .P = 120 * 'kPa'; 92 Stream.Outlet .T = 290 * 'K'; 93 Stream.Outlet .z = [0.6, 0.4]; 94 91 95 sep.Outlet1.z(1) = 0.7; 92 96 sep.frac = 0.4; … … 94 98 95 99 OPTIONS 96 relativeAccuracy = 1e-7;100 RelativeAccuracy = 1e-7; 97 101 98 102 end -
branches/newlanguage/sample/mixers_splitters/sample_splitter.mso
r80 r175 28 28 FlowSheet TestSplitter 29 29 PARAMETERS 30 PP as CalcObject(Brief="Physical Properties",File="vrpp");30 PP as Plugin (Brief="Physical Properties",File="vrpp"); 31 31 NComp as Integer; 32 32 NOutlet as Integer; 33 33 34 34 DEVICES 35 stream as stream_therm;36 splitter as splitter_n;35 Stream as source; 36 Splitter as splitter_n; 37 37 38 38 CONNECTIONS 39 stream to splitter.Inlet;39 Stream.Outlet to Splitter.Inlet; 40 40 41 41 SET … … 44 44 PP.VapourModel = "PR"; 45 45 NComp = PP.NumberOfComponents; 46 splitter.NOutlet = 3;46 Splitter.NOutlet = 3; 47 47 48 48 SPECIFY 49 stream.F = 153 * "kmol/h";50 stream.P = 150 * "kPa";51 stream.T = 298.6 * "K";52 stream.z = [0.6, 0.4];53 stream.v = 0;54 splitter.frac(1) = 0.4;55 splitter.frac(2) = 0.1;49 Stream.Outlet.F = 153 * 'kmol/h'; 50 Stream.Outlet.P = 150 * 'kPa'; 51 Stream.Outlet.T = 298.6 * 'K'; 52 Stream.Outlet.z = [0.6, 0.4]; 53 54 Splitter.frac(1) = 0.4; 55 Splitter.frac(2) = 0.1; 56 56 57 57 OPTIONS 58 relativeAccuracy = 1e-7;58 RelativeAccuracy = 1e-7; 59 59 60 60 end
Note: See TracChangeset
for help on using the changeset viewer.