Changes in mso/eml/heat_exchangers/heater.mso [45:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mso/eml/heat_exchangers/heater.mso
r45 r1 1 1 #*--------------------------------------------------------------------- 2 * Model of a Heater and Cooler 2 * This file is property of the author and cannot be used, copyed 3 * or modified without permission. 3 4 * 4 * Streams: 5 * * Inlet(Ninlet) streams .... at least one material stream 6 * * Outlet stream .... one material stream 5 * Copyright (C) 2004-2005 the author 7 6 * 8 * Purpose: 9 * * Determines thermal and phase conditions of outlet stream 7 * 8 * Heater and Cooler 9 * 10 10 * 11 11 *---------------------------------------------------------------------- … … 14 14 *--------------------------------------------------------------------*# 15 15 16 16 17 using "streams.mso"; 17 18 18 19 Model Heater_Cooler_Basic 19 20 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# 20 #===================================================================== 21 21 # Heater or Cooler Basic Equations 22 # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#22 #===================================================================== 23 23 PARAMETERS 24 ext PP as CalcObject(Brief="Physical Properties");25 ext NComp as Integer(Brief="Number of Components");26 Ninlet as Integer(Brief="Number of Inlet Streams",Lower=1);24 ext PP as CalcObject (Brief="Physical Properties"); 25 ext NComp as Integer (Brief="Number of Components"); 26 ext Ninlet as Integer (Brief="Number of Inlet Streams",Lower=1); 27 27 28 28 VARIABLES 29 29 in Inlet(Ninlet) as stream; #(Brief="Inlet Streams") 30 30 out Outlet as stream_therm;#(Brief="Outlet Stream") 31 Q as power (Brief = "Heat Transfer"); 32 Vfrac as fraction (Brief = "Vapor fraction Outlet Stream"); 33 Lfrac as fraction (Brief = "Liquid fraction Outlet Stream"); 31 Q as power (Brief="Heat Transfer"); 34 32 35 33 EQUATIONS … … 45 43 end 46 44 45 47 46 "Outlet Vapourisation Fraction" 48 Outlet.v = PP.VapourFraction(Outlet.T,Outlet.P,Outlet.z); 49 50 "Vapor fraction Outlet Stream" 51 Vfrac = Outlet.v; 52 53 "Liquid fraction Outlet Stream" 54 Lfrac = 1-Vfrac; 47 Outlet.v = PP.VapourFraction(Outlet.T,Outlet.P,Outlet.z); 55 48 56 49 end 57 50 58 51 Model Heater as Heater_Cooler_Basic 59 # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#52 #===================================================================== 60 53 # Heater 61 # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#54 #===================================================================== 62 55 EQUATIONS 63 56 … … 68 61 69 62 Model Cooler as Heater_Cooler_Basic 70 # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#63 #===================================================================== 71 64 # Cooler 72 # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#65 #===================================================================== 73 66 EQUATIONS 74 67
Note: See TracChangeset
for help on using the changeset viewer.