Changeset 588
- Timestamp:
- 08/21/2007 12:13:51 PM (17 months ago)
- Files:
-
- 1 modified
-
Modelica/trunk/Modelica/Thermal/FluidHeatFlow.mo (modified) (83 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/Modelica/Thermal/FluidHeatFlow.mo
r585 r588 4 4 extends Modelica.Icons.Library2; 5 5 annotation ( 6 version="1.6. 2", versionDate="2007-08-20",6 version="1.6.3", versionDate="2007-08-21", 7 7 preferedView="info",Documentation(info="<HTML> 8 <p>9 8 This package contains very simple-to-use components to model coolant flows as needed to simulate cooling e.g. of electric machines: 10 9 <ul> … … 17 16 <li>Sources: various flow sources</li> 18 17 </ul> 19 </p>20 <p>21 18 <b>Variables used in connectors:</b> 22 19 <ul> … … 26 23 <li>flow EnthalpyFlowRate H_flow</li> 27 24 </ul> 28 EnthalpyFlowRate means the Enthalpy = cp<sub>constant</sub> * m * T that is carried by the medium's flow. 29 </p> 30 <p> 25 EnthalpyFlowRate means the Enthalpy = cp<sub>constant</sub> * m * T that is carried by the medium's flow.<br><br> 31 26 <b>Limitations and assumptions:</b> 32 27 <ul> … … 43 38 Outlet temperature is defined by variable T of the corresponding component.</li> 44 39 </ul> 45 </p>46 <p>47 40 <b>Further development:</b> 48 41 <ul> 49 42 <li>Additional components like tanks (if needed)</li> 50 43 </ul> 51 </p>52 <p>53 44 <dl> 54 45 <dt><b>Main Authors:</b></dt> … … 68 59 </p> 69 60 </dd> 70 </dl>71 </p>72 61 </dl> 73 62 <p> … … 115 104 <li> v1.6.2 2007/08/20 Anton Haumer<br> 116 105 improved documentation</li> 106 <li> v1.6.3 2007/08/21 Anton Haumer<br> 107 improved documentation</li> 117 108 </ul> 118 109 </HTML> … … 142 133 extends Modelica.Icons.Library2; 143 134 annotation (Documentation(info="<HTML> 144 <p>145 135 This package contains test examples: 146 136 <ul> … … 154 144 <li>8.TwoMass: cooling of two masses (thermal capacities) by two parallel coolant flows</li> 155 145 </ul> 156 </p>157 158 </HTML>", revisions="<HTML>159 <p>160 146 <dl> 161 147 <dt><b>Main Authors:</b></dt> … … 176 162 </dd> 177 163 </dl> 178 </p>179 </dl>180 164 <p> 181 165 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 187 171 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 188 172 </p> 189 173 </HTML>", revisions="<HTML> 190 174 <ul> 191 175 <li> v1.00 2005/02/01 Anton Haumer<br> … … 216 200 1st test example: SimpleCooling 217 201 </p> 218 <p>219 202 A prescribed heat source dissipates its heat through a thermal conductor to a coolant flow. The coolant flow is taken from an ambient and driven by a pump with prescribed mass flow.<br> 220 203 <b>Results</b>:<br> … … 245 228 </tr> 246 229 </table> 247 </p>248 230 </HTML>"), Diagram, 249 231 experiment(StopTime=1.0), … … 319 301 2nd test example: ParallelCooling 320 302 </p> 321 <p>322 303 Two prescribed heat sources dissipate their heat through thermal conductors to coolant flows. The coolant flow is taken from an ambient and driven by a pump with prescribed mass flow, then splitted into two coolant flows connected to the two heat sources, and afterwards merged. Splitting of coolant flows is determined by pressure drop characteristic of the two pipes.<br> 323 304 <b>Results</b>:<br> … … 372 353 </tr> 373 354 </table> 374 </p>375 355 </HTML>"), Diagram, 376 356 experiment(StopTime=1.0), … … 489 469 3rd test example: IndirectCooling 490 470 </p> 491 <p>492 471 A prescribed heat sources dissipates its heat through a thermal conductor to the inner coolant cycle. It is necessary to define the pressure level of the inner coolant cycle. The inner coolant cycle is coupled to the outer coolant flow through a thermal conductor.<br> 493 472 Inner coolant's temperature rise near the source is the same as temperature drop near the cooler.<br> … … 531 510 </tr> 532 511 </table> 533 </p>534 512 </HTML>"), Diagram, 535 513 experiment(StopTime=1.5), … … 659 637 4th test example: PumpAndValve 660 638 </p> 661 <p>662 639 The pump is running with half speed for 0.4 s, 663 640 afterwards with full speed (using a ramp of 0.1 s).<br> 664 The valve is half open for 0.9 s, afterwards full open (using a ramp of 0.1 s). 665 </p> 666 <p> 667 You may try to<br> 641 The valve is half open for 0.9 s, afterwards full open (using a ramp of 0.1 s).<br> 642 You may try to: 668 643 <ul> 669 644 <li>drive the pump with variable speed and let the valve full open … … 672 647 to regulate the volume flow rate of coolant</li> 673 648 </ul> 674 </p>675 649 </HTML>"), Diagram, 676 650 experiment(StopTime=2), … … 769 743 5th test example: PumpDropOut 770 744 </p> 771 <p>772 745 Same as 1st test example, but with a drop out of the pump:<br> 773 746 The pump is running for 0.2 s, then shut down (using a ramp of 0.2 s) for 0.2 s, 774 747 then started again (using a ramp of 0.2 s). 775 </p>776 748 </HTML>"), Diagram, 777 749 experiment(StopTime=2), … … 851 823 6th test example: ParallelPumpDropOut 852 824 </p> 853 <p>854 825 Same as 2nd test example, but with a drop out of the pump:<br> 855 826 The pump is running for 0.2 s, then shut down (using a ramp of 0.2 s) for 0.2 s, 856 827 then started again (using a ramp of 0.2 s). 857 </p>858 828 </HTML>"), Diagram, 859 829 experiment(StopTime=2, Algorithm="Lsodar"), … … 972 942 7th test example: OneMass 973 943 </p> 974 <p>975 944 A thermal capacity is coupled with a coolant flow. 976 945 Different inital temperatures of thermal capacity and pipe's coolant get ambient's temperature, 977 946 the time behaviour depending on coolant flow. 978 </p>979 947 </HTML>"), Diagram, 980 948 experiment(StopTime=1.0), … … 1040 1008 8th test example: TwoMass 1041 1009 </p> 1042 <p>1043 1010 Two thermal capacities are coupled with two parallel coolant flow. 1044 1011 Different inital temperatures of thermal capacities and pipe's coolants get ambient's temperature, 1045 1012 the time behaviour depending on coolant flow. 1046 </p>1047 1013 </HTML>"), Diagram, 1048 1014 experiment(StopTime=1.0), … … 1143 1109 extends Modelica.Icons.Library; 1144 1110 annotation (Documentation(info="<html> 1145 <p> 1146 This package contains utility components used for the test examples. 1147 <p> 1148 1149 </html>", revisions="<HTML> 1111 This package contains utility components used for the test examples.<br> 1150 1112 <dl> 1151 1113 <dt><b>Main Authors:</b></dt> … … 1166 1128 </dd> 1167 1129 </dl> 1168 </p>1169 </dl>1170 1130 <p> 1171 1131 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 1177 1137 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 1178 1138 </p> 1179 1139 </HTML>", revisions="<HTML> 1180 1140 <ul> 1181 1141 <li> v1.41 Beta 2005/06/17 Anton Haumer<br> … … 1202 1162 annotation ( 1203 1163 Documentation(info="<HTML> 1204 <p>1205 1164 Block generating the sum of two ramps. 1206 </p>1207 1165 </HTML>"),Diagram, 1208 1166 Icon( … … 1248 1206 extends Modelica.Icons.Library2; 1249 1207 annotation (Documentation(info="<HTML> 1250 <p>1251 1208 This package contains components: 1252 </p>1253 1254 1209 <ul> 1255 1210 <li>pipe without heat exchange</li> … … 1257 1212 <li>valve (simple controlled valve)</li> 1258 1213 </ul> 1259 1260 <p>1261 1214 Pressure drop is taken from partial model SimpleFriction.<br> 1262 Thermodynamic equations are defined in partial models (package Partials). 1263 </p> 1264 1265 </HTML>", revisions="<HTML> 1215 Thermodynamic equations are defined in partial models (package Partials).<br> 1266 1216 <dl> 1267 1217 <dt><b>Main Authors:</b></dt> … … 1282 1232 </dd> 1283 1233 </dl> 1284 </p>1285 </dl>1286 1234 <p> 1287 1235 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 1293 1241 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 1294 1242 </p> 1295 1243 </HTML>", revisions="<HTML> 1296 1244 <ul> 1297 1245 <li> v1.00 2005/02/01 Anton Haumer<br> … … 1327 1275 1328 1276 annotation (Documentation(info="<HTML> 1329 <p>1330 1277 Pipe without heat exchange.<br> 1331 Thermodynamic equations are defined by Partials.TwoPortMass(Q_flow = 0). 1332 </p> 1333 <p> 1278 Thermodynamic equations are defined by Partials.TwoPortMass(Q_flow = 0).<br> 1334 1279 <b>Note:</b> Setting parameter m (mass of medium within pipe) to zero 1335 1280 leads to neglection of temperature transient cv*m*der(T). 1336 </p>1337 1281 </HTML>"), 1338 1282 Icon(Rectangle(extent=[-90, 20; 90, -20], style( … … 1357 1301 1358 1302 annotation (Documentation(info="<HTML> 1359 <p>1360 1303 Pipe with heat exchange.<br> 1361 1304 Thermodynamic equations are defined by Partials.TwoPort.<br> 1362 Q_flow is defined by heatPort.Q_flow. 1363 </p> 1364 <p> 1305 Q_flow is defined by heatPort.Q_flow.<br> 1365 1306 <b>Note:</b> Setting parameter m (mass of medium within pipe) to zero 1366 leads to neglection of temperature transient cv*m*der(T). 1367 </p> 1368 <p> 1307 leads to neglection of temperature transient cv*m*der(T).<br> 1369 1308 <b>Note:</b> Injecting heat into a pipe with zero massflow causes 1370 1309 temperature rise defined by storing heat in medium's mass. 1371 </p>1372 1310 </HTML>"), 1373 1311 Icon(Rectangle(extent=[-90, 20; 90, -20], style( … … 1403 1341 1404 1342 annotation (Documentation(info="<HTML> 1405 <p>1406 1343 Simple controlled valve.<br> 1407 1344 Standard characteristic Kv=<i>f </i>(y) is given at standard conditions (dp0, rho0),<br> … … 1420 1357 Flow resistance under real conditions is calculated by<br> 1421 1358 <tt>V_flow**2 * rho / dp = Kv(y)**2 * rho0 / dp0</tt> 1422 </p>1423 1359 </HTML>"), 1424 1360 Icon( Text(extent=[-150,-60; 150,-120], string="%name"), … … 1479 1415 extends Modelica.Icons.Library2; 1480 1416 annotation (Documentation(info="<HTML> 1481 <p>1482 1417 This package contains connectors and partial models: 1483 1418 <ul> … … 1486 1421 <li>package Partials (defining basic thermodynamic equations)</li> 1487 1422 </ul> 1488 </p>1489 <p>1490 1491 </HTML>", revisions="<HTML>1492 1423 <dl> 1493 1424 <dt><b>Main Authors:</b></dt> … … 1508 1439 </dd> 1509 1440 </dl> 1510 </p>1511 </dl>1512 1441 <p> 1513 1442 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 1519 1448 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 1520 1449 </p> 1521 1450 </HTML>", revisions="<HTML> 1522 1451 <ul> 1523 1452 <li> v1.00 2005/02/01 Anton Haumer<br> … … 1548 1477 1549 1478 annotation (Documentation(info="<HTML> 1550 <p> 1551 Basic definition of the connector. 1552 </p> 1553 <p> 1479 Basic definition of the connector.<br> 1554 1480 <b>Variables:</b> 1555 1481 <ul> … … 1559 1485 <li>flow EnthaplyFlowRate H_flow</li> 1560 1486 </ul> 1561 </p>1562 <p>1563 <p>1564 1487 If ports with different media are connected, the simulation is asserted due to the check of parameter. 1565 </p>1566 1488 </HTML>")); 1567 1489 parameter FluidHeatFlow.Media.Medium medium "Medium in the connector"; … … 1575 1497 1576 1498 annotation (Documentation(info="<HTML> 1577 <p>1578 1499 Same as FlowPort, but icon allows to differentiate direction of flow. 1579 </p>1580 1500 </HTML>"), 1581 1501 Icon(Rectangle(extent=[-100, 100; 100, -100], style( … … 1609 1529 1610 1530 annotation (Documentation(info="<HTML> 1611 <p>1612 1531 Same as FlowPort, but icon allows to differentiate direction of flow. 1613 </p>1614 1532 </HTML>"), 1615 1533 Icon(Rectangle(extent=[-100,100; 100,-100], style( … … 1636 1554 extends Modelica.Icons.Library; 1637 1555 annotation (Documentation(info="<HTML> 1638 <p> 1639 This package contains partial models, defining in a very compact way the basic thermodynamic equations used by the different components. 1640 </p> 1641 <p> 1556 This package contains partial models, defining in a very compact way the basic thermodynamic equations used by the different components.<br> 1642 1557 <dl> 1643 1558 <dt><b>Main Authors:</b></dt> … … 1658 1573 </dd> 1659 1574 </dl> 1660 </p>1661 </dl>1662 1575 <p> 1663 1576 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 1669 1582 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 1670 1583 </p> 1671 </HTML>", revisions="<HTML>1584 </HTML>",revisions="<HTML> 1672 1585 <ul> 1673 1586 <li> v1.00 2005/02/01 Anton Haumer<br> … … 1697 1610 1698 1611 annotation (Documentation(info="<HTML> 1699 <p> 1700 Definition of relationship between pressure drop and volume flow rate: 1701 </p> 1702 <p> 1612 Definition of relationship between pressure drop and volume flow rate:<br> 1703 1613 -V_flowLaminar < VolumeFlow < +V_flowLaminar: laminar i.e. linear dependency of pressure drop on volume flow.<br> 1704 1614 -V_flowLaminar > VolumeFlow or VolumeFlow < +V_flowLaminar: turbulent i.e. quadratic dependency of pressure drop on volume flow.<br> … … 1706 1616 Quadratic dependency is defined by nominal volume flow and pressure drop (V_flowNominal / dpNominal).<br> 1707 1617 See also sketch at diagram layer. 1708 </p>1709 1618 </HTML>"), 1710 1619 Diagram( … … 1784 1693 1785 1694 annotation (Documentation(info="<HTML> 1786 <p>1787 1695 Partial model with two flowPorts.<br> 1788 1696 Possible heat exchange with the ambient is defined by Q_flow; setting this = 0 means no energy exchange.<br> … … 1791 1699 Mixing rule is applied.<br> 1792 1700 Parameter 0 < tapT < 1 defines temperature of heatPort between medium's inlet and outlet temperature. 1793 </p>1794 1701 </HTML>")); 1795 1702 parameter FluidHeatFlow.Media.Medium medium=FluidHeatFlow.Media.Medium() … … 1876 1783 1877 1784 annotation (Documentation(info="<HTML> 1878 <p>1879 1785 Partial model for an absolute sensor (pressure/temperature).<br> 1880 1786 Pressure, mass flow, temperature and enthalpy flow of medium are not affected. 1881 </p>1882 1787 </HTML>")); 1883 1788 parameter FluidHeatFlow.Media.Medium medium=FluidHeatFlow.Media.Medium() … … 1921 1826 1922 1827 annotation (Documentation(info="<HTML> 1923 <p>1924 1828 Partial model for a relative sensor (pressure drop/temperature difference).<br> 1925 1829 Pressure, mass flow, temperature and enthalpy flow of medium are not affected. 1926 </p>1927 1830 </HTML>")); 1928 1831 parameter FluidHeatFlow.Media.Medium medium=FluidHeatFlow.Media.Medium() … … 1971 1874 1972 1875 annotation (Documentation(info="<HTML> 1973 <p>1974 1876 Partial model for a flow sensor (mass flow/heat flow).<br> 1975 1877 Pressure, mass flow, temperature and enthalpy flow of medium are not affected, but mixing rule is applied. 1976 </p>1977 1878 </HTML>")); 1978 1879 extends TwoPort(final m=0, final T0=0, final tapT=1); … … 2015 1916 extends Modelica.Icons.Library2; 2016 1917 annotation (Documentation(info="<HTML> 2017 <p> 2018 This package contains definitions of medium properties. 2019 </p> 2020 2021 </HTML>", revisions="<HTML> 1918 This package contains definitions of medium properties.<br> 2022 1919 <dl> 2023 1920 <dt><b>Main Authors:</b></dt> … … 2038 1935 </dd> 2039 1936 </dl> 2040 </p>2041 </dl>2042 1937 <p> 2043 1938 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 2049 1944 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 2050 1945 </p> 2051 1946 </HTML>", revisions="<HTML> 2052 1947 <ul> 2053 1948 <li> v1.00 2005/02/01 Anton Haumer<br> … … 2132 2027 extends Modelica.Icons.Library2; 2133 2028 annotation (Documentation(info="<HTML> 2134 <p>2135 2029 This package contains sensors: 2136 2030 <ul> … … 2143 2037 <li>H_flowSensor: measures enthalpy flow rate</li> 2144 2038 </ul> 2145 </p>2146 <p>2147 2039 Some of the sensors do not need access to medium properties for measuring, 2148 2040 but it is necessary to define the medium in the connector (check of connections).<br> 2149 2041 Thermodynamic equations are defined in partial models (package Interfaces.Partials).<br> 2150 All sensors are considered massless, they do not change mass flow or enthalpy flow. 2151 </p> 2152 <p> 2153 2154 </HTML>", revisions="<HTML> 2042 All sensors are considered massless, they do not change mass flow or enthalpy flow.<br> 2155 2043 <dl> 2156 2044 <dt><b>Main Authors:</b></dt> … … 2171 2059 </dd> 2172 2060 </dl> 2173 </p>2174 </dl>2175 2061 <p> 2176 2062 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 2182 2068 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 2183 2069 </p> 2184 2070 </HTML>", revisions="<HTML> 2185 2071 <ul> 2186 2072 <li> v1.00 2005/02/01 Anton Haumer<br> … … 2232 2118 2233 2119 annotation (Documentation(info="<HTML> 2234 <p>2235 2120 pSensor measures the absolute pressure.<br> 2236 2121 Thermodynamic equations are defined by Partials.AbsoluteSensor. 2237 </p>2238 2122 </HTML>"), Diagram); 2239 2123 extends Interfaces.Partials.AbsoluteSensor(y(redeclare type SignalType = … … 2250 2134 2251 2135 annotation (Documentation(info="<HTML> 2252 <p>2253 2136 TSensor measures the absolute temperature (Kelvin).<br> 2254 2137 Thermodynamic equations are defined by Partials.AbsoluteSensor. 2255 </p>2256 2138 </HTML>"), Diagram); 2257 2139 extends Interfaces.Partials.AbsoluteSensor(y(redeclare type SignalType = … … 2268 2150 2269 2151 annotation (Documentation(info="<HTML> 2270 <p>2271 2152 dpSensor measures the pressure drop between flowPort_a and flowPort_b.<br> 2272 2153 Thermodynamic equations are defined by Partials.RelativeSensor. 2273 </p>2274 2154 </HTML>"), Diagram); 2275 2155 extends Interfaces.Partials.RelativeSensor(y(redeclare type SignalType = … … 2286 2166 2287 2167 annotation (Documentation(info="<HTML> 2288 <p>2289 2168 dTSensor measures the temperature difference between flowPort_a and flowPort_b.<br> 2290 Thermodynamic equations are defined by Partials.RelativeSensor. 2291 </p> 2292 <ul> 2293 <li><b>Note:</b> Connected flowPorts have the same temperature (mixing temperature)!<br> 2169 Thermodynamic equations are defined by Partials.RelativeSensor.<br> 2170 <b>Note:</b> Connected flowPorts have the same temperature (mixing temperature)!<br> 2294 2171 Since mixing my occur, the outlet temperature of a component may be different from the connector's temperature.<br> 2295 Outlet temperature is defined by variable T of the corresponding component.</li> 2296 </ul> 2172 Outlet temperature is defined by variable T of the corresponding component. 2297 2173 </HTML>"), Diagram); 2298 2174 extends Interfaces.Partials.RelativeSensor(y(redeclare type SignalType = … … 2309 2185 2310 2186 annotation (Documentation(info="<HTML> 2311 <p>2312 2187 m_flowSensor measures the mass flow rate.<br> 2313 2188 Thermodynamic equations are defined by Partials.FlowSensor. 2314 </p>2315 2189 </HTML>"), Diagram); 2316 2190 extends Interfaces.Partials.FlowSensor(y(redeclare type SignalType = … … 2327 2201 2328 2202 annotation (Documentation(info="<HTML> 2329 <p>2330 2203 V_flowSensor measures the volume flow rate.<br> 2331 2204 Thermodynamic equations are defined by Partials.FlowSensor. 2332 </p>2333 2205 </HTML>"), Diagram); 2334 2206 extends Interfaces.Partials.FlowSensor(y(redeclare type SignalType = … … 2345 2217 2346 2218 annotation (Documentation(info="<HTML> 2347 <p>2348 2219 H_flowSensor measures the enthalpy flow rate.<br> 2349 2220 Thermodynamic equations are defined by Partials.FlowSensor. 2350 </p>2351 2221 </HTML>"), Diagram); 2352 2222 extends Interfaces.Partials.FlowSensor(y(redeclare type SignalType = … … 2364 2234 extends Modelica.Icons.Library2; 2365 2235 annotation (Documentation(info="<HTML> 2366
