Changeset 808 for branches/gui/eml/pressure_changers/valve.mso
- Timestamp:
- Aug 3, 2009, 6:15:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/pressure_changers/valve.mso
r690 r808 100 100 101 101 Model valve_flow 102 ATTRIBUTES 103 Pallete = true; 104 Icon = "icon/Valve"; 105 Brief = "Model of a very simple valve for setting the flow with a controller."; 106 Info = 107 "== Assumptions == 102 103 ATTRIBUTES 104 Pallete = true; 105 Icon = "icon/Valve"; 106 Brief = "Model of a very simple valve for setting the flow with a controller."; 107 Info = 108 "== ASSUMPTIONS == 108 109 * nothing happens in this valve 109 110 == Specify == 111 * the inlet stream 112 * the flow fraction 110 111 == SET == 112 * MinFlow: the Minimum Flow Allowable in the valve; 113 * MaxFlow: the Maximum Flow Allowable in the valve; 114 115 == SPECIFY == 116 * the Inlet stream 117 * the FlowFraction (the model requires an inlet signal, also you can use a controller for setting the FlowFraction) 113 118 "; 114 119 115 PARAMETERS 116 outer PP as Plugin(Type="PP"); 117 outer NComp as Integer; 118 119 MinFlow as flow_mol(Default=0); 120 MaxFlow as flow_mol(Default=1000); 121 122 VARIABLES 123 in Inlet as stream (Brief = "Inlet stream", PosX=0, PosY=0.7365, Symbol="_{in}"); 124 out Outlet as stream (Brief = "Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}"); 125 in FlowFraction as fraction (Brief="Flow Signal", PosX=0.5, PosY=0); 126 127 EQUATIONS 128 "Overall Molar Balance" 120 PARAMETERS 121 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 122 outer NComp as Integer (Brief="Number of Components"); 123 124 MinFlow as flow_mol(Brief="Minimum Flow Allowable in the valve", Default=0); 125 MaxFlow as flow_mol(Brief="Maximum Flow Allowable in the valve", Default=1000); 126 127 VARIABLES 128 129 in Inlet as stream (Brief ="Inlet stream", PosX=0, PosY=0.7365, Symbol="_{in}",Protected=true); 130 out Outlet as stream (Brief ="Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}",Protected=true); 131 in FlowFraction as fraction (Brief ="Flow Signal", PosX=0.5, PosY=0,Protected=true); 132 133 EQUATIONS 134 "Overall Molar Balance" 129 135 Outlet.F = Inlet.F; 130 "Temperature" 136 137 "Temperature" 131 138 Outlet.T = Inlet.T; 132 "Pressure" 139 140 "Pressure" 133 141 Outlet.P = Inlet.P; 134 "Energy Balance" 142 143 "Energy Balance" 135 144 Outlet.h = Inlet.h; 136 "Vapour fraction" 145 146 "Vapour fraction" 137 147 Outlet.v = Inlet.v; 138 148 139 149 "Componente Molar Balance" 140 150 Outlet.z = Inlet.z; 141 151 142 152 "Flow computation" 143 153 Outlet.F = MinFlow + FlowFraction*(MaxFlow-MinFlow); 154 144 155 end 145 156
Note: See TracChangeset
for help on using the changeset viewer.