Changeset 567
- Timestamp:
- Jul 24, 2008, 10:45:34 AM (15 years ago)
- Location:
- branches/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/pressure_changers/valve.mso
r558 r567 218 218 Pallete = true; 219 219 Icon = "icon/Valve"; 220 Brief = "Model of a very simple valve - used in distillation column models.";220 Brief = "Model of a very simple valve for setting the flow with a controller."; 221 221 Info = 222 222 "== Assumptions == 223 * no flashing liquid in the valve; 224 * the flow in the valve is adiabatic; 225 * dynamics in the valve are neglected; 226 * linear flow type. 223 * nothing happens in this valve 227 224 228 225 == Specify == 229 226 * the inlet stream 230 * the plug position (x) OR outlet temperature (Outlet.T) OR outlet pressure (Outlet.P) 231 232 OR 233 234 * the inlet stream excluding its flow (Inlet.F) 235 * the outlet pressure (Outlet.P) OR outlet flow (Outlet.F) 236 * the plug position (x) 227 * the flow fraction 237 228 "; 238 229 … … 246 237 VARIABLES 247 238 in Inlet as stream (Brief = "Inlet stream", PosX=0, PosY=0.7365, Symbol="_{in}"); 248 out Outlet as stream PH(Brief = "Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}");239 out Outlet as stream (Brief = "Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}"); 249 240 in FlowFraction as fraction (Brief="Flow Signal", PosX=0.5, PosY=0); 250 241 251 242 EQUATIONS 252 243 "Overall Molar Balance" 253 Inlet.F = Outlet.F; 254 244 Outlet.F = Inlet.F; 245 "Temperature" 246 Outlet.T = Inlet.T; 247 "Pressure" 248 Outlet.P = Inlet.P; 249 "Energy Balance" 250 Outlet.h = Inlet.h; 251 "Vapour fraction" 252 Outlet.v = Inlet.v; 253 255 254 "Componente Molar Balance" 256 Inlet.z = Outlet.z; 257 258 "Energy Balance" 259 Inlet.h = Outlet.h; 260 261 "Pressure" 262 Outlet.P = Inlet.P; 263 264 "Flow" 255 Outlet.z = Inlet.z; 256 257 "Flow computation" 265 258 Outlet.F = MinFlow + FlowFraction*(MaxFlow-MinFlow); 266 259 end -
branches/gui/sample/processes/Sample_Flowsheet.pfd
r560 r567 14 14 <Time_Step>0.02</Time_Step> 15 15 <Time_End>3</Time_End> 16 <Time_Unit _Text>h</Time_Unit_Text>16 <Time_Unit>h</Time_Unit> 17 17 <Sparse_Algebra>1</Sparse_Algebra> 18 18 <Integration_Index>0</Integration_Index> … … 20 20 <NLASolver_File_Index>0</NLASolver_File_Index> 21 21 <NLASolver_File_Text>sundials</NLASolver_File_Text> 22 <NLASolver_Relative_Accuracy>1e-6</NLASolver_Relative_Accuracy> 23 <NLASolver_Absolute_Accuracy>1e-8</NLASolver_Absolute_Accuracy> 22 <NLASolver_Absolute_Accuracy>1e-3</NLASolver_Absolute_Accuracy> 24 23 <DAESolver_File_Index>0</DAESolver_File_Index> 25 24 <DAESolver_File_Text>sundials</DAESolver_File_Text> 26 <DAESolver_Relative_Accuracy>1e-2</DAESolver_Relative_Accuracy> 27 <DAESolver_Absolute_Accuracy>1e-8</DAESolver_Absolute_Accuracy> 25 <DAESolver_Relative_Accuracy>1e-3</DAESolver_Relative_Accuracy> 26 <DAESolver_Absolute_Accuracy>1e-6</DAESolver_Absolute_Accuracy> 27 <DAESolver_Evt_Accuracy>1e-2</DAESolver_Evt_Accuracy> 28 28 </Options> 29 29 <Width>2000</Width> … … 35 35 <Snap_to_Grid>0</Snap_to_Grid> 36 36 <Width>1077</Width> 37 <Height> 373</Height>37 <Height>412</Height> 38 38 <X>0</X> 39 39 <Y>0</Y> … … 59 59 <Block_Properties> 60 60 <Model_File_Path>streams</Model_File_Path> 61 <Instance_Id> energy_source_1</Instance_Id>61 <Instance_Id>Heat</Instance_Id> 62 62 <Model_Name>energy_source</Model_Name> 63 63 <T_Connection>0</T_Connection> … … 82 82 <Block_Properties> 83 83 <Model_File_Path>stage_separators/flash</Model_File_Path> 84 <Instance_Id> flash_1</Instance_Id>84 <Instance_Id>F101</Instance_Id> 85 85 <Model_Name>flash</Model_Name> 86 86 <T_Connection>0</T_Connection> … … 566 566 <Model_File_Path>streams</Model_File_Path> 567 567 <Instance_Id>Outlet</Instance_Id> 568 <Model_Name>stream PH</Model_Name>568 <Model_Name>stream</Model_Name> 569 569 <T_Connection>2</T_Connection> 570 <Base_Models>571 <Block_Properties>572 <Model_File_Path>streams</Model_File_Path>573 <Instance_Id>Outlet</Instance_Id>574 <Model_Name>stream</Model_Name>575 <T_Connection>2</T_Connection>576 <Parameters>577 <Desc>NComp</Desc>578 <Index>0</Index>579 <Values>3</Values>580 <Status>0</Status>581 </Parameters>582 <Variables>583 <Desc>F</Desc>584 <Index>0</Index>585 <Values>395.748</Values>586 <Status>0</Status>587 <Unit>kmol/h</Unit>588 </Variables>589 <Variables>590 <Desc>T</Desc>591 <Index>0</Index>592 <Values>330.511</Values>593 <Status>0</Status>594 <Unit>K</Unit>595 </Variables>596 <Variables>597 <Desc>P</Desc>598 <Index>0</Index>599 <Values>0.6</Values>600 <Status>0</Status>601 <Unit>atm</Unit>602 </Variables>603 <Variables>604 <Desc>h</Desc>605 <Index>0</Index>606 <Values>-27264.5</Values>607 <Status>0</Status>608 <Unit>kJ/kmol</Unit>609 </Variables>610 <Variables>611 <Desc>v</Desc>612 <Index>0</Index>613 <Values>2.21819e-06</Values>614 <Status>0</Status>615 </Variables>616 <Variables>617 <Desc>z</Desc>618 <Index>0</Index>619 <Values>0.0959718</Values>620 <Status>0</Status>621 <Index>1</Index>622 <Values>0.328671</Values>623 <Status>0</Status>624 <Index>2</Index>625 <Values>0.575357</Values>626 <Status>0</Status>627 </Variables>628 </Block_Properties>629 </Base_Models>630 <Parameters>631 <Desc>PP</Desc>632 <Index>0</Index>633 <Values>PP</Values>634 <Status>0</Status>635 </Parameters>636 <Variables>637 <Desc>s</Desc>638 <Index>0</Index>639 <Values>-161.181</Values>640 <Status>0</Status>641 <Unit>kJ/kmol/K</Unit>642 </Variables>643 570 </Block_Properties> 644 571 </Base_Models> … … 690 617 <Block_Properties> 691 618 <Model_File_Path>streams</Model_File_Path> 692 <Instance_Id> simple_source_1</Instance_Id>619 <Instance_Id>Feed</Instance_Id> 693 620 <Model_Name>simple_source</Model_Name> 694 621 <T_Connection>0</T_Connection> … … 902 829 <Model_File_Path>streams</Model_File_Path> 903 830 <Instance_Id>Outlet</Instance_Id> 904 <Model_Name>stream PH</Model_Name>831 <Model_Name>stream</Model_Name> 905 832 <T_Connection>2</T_Connection> 906 <Base_Models>907 <Block_Properties>908 <Model_File_Path>streams</Model_File_Path>909 <Instance_Id>Outlet</Instance_Id>910 <Model_Name>stream</Model_Name>911 <T_Connection>2</T_Connection>912 <Parameters>913 <Desc>NComp</Desc>914 <Index>0</Index>915 <Values>3</Values>916 <Status>0</Status>917 </Parameters>918 <Variables>919 <Desc>F</Desc>920 <Index>0</Index>921 <Values>204.252</Values>922 <Status>0</Status>923 <Unit>kmol/h</Unit>924 </Variables>925 <Variables>926 <Desc>T</Desc>927 <Index>0</Index>928 <Values>330.511</Values>929 <Status>0</Status>930 <Unit>K</Unit>931 </Variables>932 <Variables>933 <Desc>P</Desc>934 <Index>0</Index>935 <Values>0.6</Values>936 <Status>0</Status>937 <Unit>atm</Unit>938 </Variables>939 <Variables>940 <Desc>h</Desc>941 <Index>0</Index>942 <Values>3109.1</Values>943 <Status>0</Status>944 <Unit>kJ/kmol</Unit>945 </Variables>946 <Variables>947 <Desc>v</Desc>948 <Index>0</Index>949 <Values>0.999999</Values>950 <Status>0</Status>951 </Variables>952 <Variables>953 <Desc>z</Desc>954 <Index>0</Index>955 <Values>0.695314</Values>956 <Status>0</Status>957 <Index>1</Index>958 <Values>0.244448</Values>959 <Status>0</Status>960 <Index>2</Index>961 <Values>0.060238</Values>962 <Status>0</Status>963 </Variables>964 </Block_Properties>965 </Base_Models>966 <Parameters>967 <Desc>PP</Desc>968 <Index>0</Index>969 <Values>PP</Values>970 <Status>0</Status>971 </Parameters>972 <Variables>973 <Desc>s</Desc>974 <Index>0</Index>975 <Values>-75.2136</Values>976 <Status>0</Status>977 <Unit>kJ/kmol/K</Unit>978 </Variables>979 833 </Block_Properties> 980 834 </Base_Models> … … 1026 880 <Block_Properties> 1027 881 <Model_File_Path>streams</Model_File_Path> 1028 <Instance_Id>Vapor </Instance_Id>882 <Instance_Id>VaporProduct</Instance_Id> 1029 883 <Model_Name>sink</Model_Name> 1030 884 <T_Connection>0</T_Connection> … … 1210 1064 <Id_String>LiquidProduct</Id_String> 1211 1065 <Image_File_Name>/home/rafael/src/biblioteca/branches/gui/eml/icon/Sink.png</Image_File_Name> 1212 <X> 799</X>1213 <Y> 183</Y>1066 <X>636</X> 1067 <Y>390</Y> 1214 1068 <Z>0</Z> 1215 1069 <Width>68</Width> … … 1217 1071 <Block_Properties> 1218 1072 <Model_File_Path>streams</Model_File_Path> 1219 <Instance_Id>Liquid </Instance_Id>1073 <Instance_Id>LiquidProduct</Instance_Id> 1220 1074 <Model_Name>sink</Model_Name> 1221 1075 <T_Connection>0</T_Connection> … … 1930 1784 <Image_File_Name>/home/rafael/src/biblioteca/branches/gui/eml/pressure_changers/icon/Valve.png</Image_File_Name> 1931 1785 <X>150</X> 1932 <Y>1 61</Y>1786 <Y>157</Y> 1933 1787 <Z>0</Z> 1934 <Width>4 2</Width>1935 <Height>3 2</Height>1788 <Width>47</Width> 1789 <Height>37</Height> 1936 1790 <Block_Properties> 1937 1791 <Model_File_Path>pressure_changers/valve</Model_File_Path> 1938 <Instance_Id> valve_flow_1</Instance_Id>1792 <Instance_Id>FeedValve</Instance_Id> 1939 1793 <Model_Name>valve_flow</Model_Name> 1940 1794 <T_Connection>0</T_Connection> … … 2017 1871 <Model_File_Path>streams</Model_File_Path> 2018 1872 <Instance_Id>Outlet</Instance_Id> 2019 <Model_Name>stream PH</Model_Name>1873 <Model_Name>stream</Model_Name> 2020 1874 <T_Connection>2</T_Connection> 2021 <Base_Models>2022 <Block_Properties>2023 <Model_File_Path>streams</Model_File_Path>2024 <Instance_Id>Outlet</Instance_Id>2025 <Model_Name>stream</Model_Name>2026 <T_Connection>2</T_Connection>2027 <Parameters>2028 <Desc>NComp</Desc>2029 <Index>0</Index>2030 <Values>3</Values>2031 <Status>0</Status>2032 </Parameters>2033 <Variables>2034 <Desc>F</Desc>2035 <Index>0</Index>2036 <Values>600</Values>2037 <Status>0</Status>2038 <Unit>kmol/h</Unit>2039 </Variables>2040 <Variables>2041 <Desc>T</Desc>2042 <Index>0</Index>2043 <Values>338</Values>2044 <Status>0</Status>2045 <Unit>K</Unit>2046 </Variables>2047 <Variables>2048 <Desc>P</Desc>2049 <Index>0</Index>2050 <Values>5</Values>2051 <Status>0</Status>2052 <Unit>atm</Unit>2053 </Variables>2054 <Variables>2055 <Desc>h</Desc>2056 <Index>0</Index>2057 <Values>-23082.6</Values>2058 <Status>0</Status>2059 <Unit>kJ/kmol</Unit>2060 </Variables>2061 <Variables>2062 <Desc>v</Desc>2063 <Index>0</Index>2064 <Values>0</Values>2065 <Status>0</Status>2066 </Variables>2067 <Variables>2068 <Desc>z</Desc>2069 <Index>0</Index>2070 <Values>0.3</Values>2071 <Status>0</Status>2072 <Index>1</Index>2073 <Values>0.3</Values>2074 <Status>0</Status>2075 <Index>2</Index>2076 <Values>0.4</Values>2077 <Status>0</Status>2078 </Variables>2079 </Block_Properties>2080 </Base_Models>2081 <Parameters>2082 <Desc>PP</Desc>2083 <Index>0</Index>2084 <Values>PP</Values>2085 <Status>0</Status>2086 </Parameters>2087 <Variables>2088 <Desc>s</Desc>2089 <Index>0</Index>2090 <Values>-153.328</Values>2091 <Status>0</Status>2092 <Unit>kJ/kmol/K</Unit>2093 </Variables>2094 1875 </Block_Properties> 2095 1876 </Base_Models> … … 2141 1922 <Block_Properties> 2142 1923 <Model_File_Path>controllers/PIDs</Model_File_Path> 2143 <Instance_Id> StepSignal_1</Instance_Id>1924 <Instance_Id>FeedStep</Instance_Id> 2144 1925 <Model_Name>StepSignal</Model_Name> 2145 1926 <T_Connection>0</T_Connection> … … 2219 2000 <X1>490</X1> 2220 2001 <Y1>405.67</Y1> 2221 <X2> 799</X2>2222 <Y2> 198.924</Y2>2002 <X2>636</X2> 2003 <Y2>405.924</Y2> 2223 2004 <Block_Source>LCV</Block_Source> 2224 2005 <Port_Source>Outlet</Port_Source> … … 2274 2055 <X1>84</X1> 2275 2056 <Y1>184.768</Y1> 2276 <X2>15 2</X2>2277 <Y2>18 8</Y2>2057 <X2>150</X2> 2058 <Y2>184.25</Y2> 2278 2059 <Block_Source>Feed</Block_Source> 2279 2060 <Port_Source>Outlet</Port_Source> … … 2285 2066 <X1>119</X1> 2286 2067 <Y1>30.5</Y1> 2287 <X2>173 </X2>2288 <Y2>1 67</Y2>2068 <X2>173.5</X2> 2069 <Y2>157</Y2> 2289 2070 <Block_Source>FeedStep</Block_Source> 2290 2071 <Port_Source>OutSignal</Port_Source> … … 2294 2075 <Line> 2295 2076 <Line_Name>12</Line_Name> 2296 <X1>19 2</X1>2297 <Y1>184. 568</Y1>2077 <X1>197</X1> 2078 <Y1>184.25</Y1> 2298 2079 <X2>250</X2> 2299 2080 <Y2>168</Y2>
Note: See TracChangeset
for help on using the changeset viewer.