Changeset 783
- Timestamp:
- Jun 30, 2009, 12:28:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/tank.mso
r782 r783 45 45 * the Inlet stream; 46 46 * the outlet flow; 47 * the tank Q.47 * the InletQ (requires an energy source). 48 48 49 49 == Initial Conditions == 50 * the tank initial temperature (OutletL.T);51 * the tank initial level (Level);52 * (NoComps - 1) OutletL (OR OutletV) compositions.50 * the tank initial temperature; 51 * the tank initial level; 52 * the tank initial composition. 53 53 "; 54 54 55 55 PARAMETERS 56 outer PP 56 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 57 57 outer NComp as Integer; 58 Across as area (Brief="Tank cross section area", Default=2); 59 L as length (Brief="Tank length"); 60 Vtotal as volume (Brief="Tank total volume"); 61 62 Initial_Level as length (Brief="Initial Level of the Tank"); 63 Initial_Temperature as temperature (Brief="Initial Temperature of Liquid"); 64 Initial_Composition(NComp) as fraction (Brief="Initial Liquid Composition"); 58 59 pi as positive (Brief="Pi value", Default=3.141593,Hidden=true); 60 Diameter as length (Brief="Tank internal Diameter",Default=1.5); 61 Across as area (Brief="Tank cross section area", Hidden=true); 62 L as length (Brief="Tank length",Default=5); 63 64 65 Initial_Level as length (Brief="Initial Level of the Tank",Default=1); 66 Initial_Temperature as temperature (Brief="Initial Temperature of Liquid",Default=300); 67 Initial_Composition(NComp) as positive (Brief="Initial Liquid Composition",Lower=1E-8, Default=0.10); 65 68 66 69 SET 67 Vtotal =Across*L; 70 71 Across = 0.25*pi*(Diameter)^2; 68 72 69 73 VARIABLES 70 in Inlet as stream(Brief = "Inlet stream", PosX=0.3037, PosY=0, Symbol="_{in}");74 in Inlet as stream (Brief = "Inlet stream", PosX=0.3037, PosY=0, Symbol="_{in}"); 71 75 out Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1, Symbol="_{out}"); 72 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}"); 73 Vfilled as volume (Brief="Tank volume content"); 74 Level as length (Brief="Tank level"); 75 M(NComp) as mol (Brief="Molar Holdup in the tank"); 76 E as energy (Brief="Total Energy Holdup on tank"); 77 vL as volume_mol (Brief="Liquid Molar Volume"); 76 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}",Protected=true); 77 Vtotal as volume (Brief="Tank total volume",Protected=true); 78 Vfilled as volume (Brief="Tank volume content",Protected=true); 79 Level as length (Brief="Tank level",Protected=true); 80 E as energy (Brief="Total Energy Holdup on tank",Protected=true); 81 vL as volume_mol (Brief="Liquid Molar Volume",Protected=true); 82 M(NComp) as mol (Brief="Molar Holdup in the tank",Protected=true); 78 83 79 84 INITIAL 80 85 81 Level = Initial_Level; 82 Outlet.T = Initial_Temperature; 83 Outlet.z(1:NComp-1) = Initial_Composition(1:NComp-1)/sum(Initial_Composition); 86 "Initial Level" 87 Level = Initial_Level; 88 89 "Initial Liquid Temperature" 90 Outlet.T = Initial_Temperature; 91 92 "Initial Liquid Composition" 93 Outlet.z(1:NComp-1) = Initial_Composition(1:NComp-1)/sum(Initial_Composition); 84 94 85 95 EQUATIONS 96 97 "Tank total volume" 98 Vtotal = Across*L; 86 99 87 100 "Mass balance"
Note: See TracChangeset
for help on using the changeset viewer.