Changeset 582
- Timestamp:
- 08/20/2007 12:50:41 PM (17 months ago)
- Files:
-
- 1 modified
-
Modelica/trunk/Modelica/Thermal/FluidHeatFlow.mo (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/Modelica/Thermal/FluidHeatFlow.mo
r572 r582 1 1 within Modelica.Thermal; 2 2 package FluidHeatFlow 3 " Library of simple components for 1-dimensional incompressible thermo-fluid flow models"3 "Simple components for 1-dimensional incompressible thermo-fluid flow models" 4 4 extends Modelica.Icons.Library2; 5 5 annotation ( 6 version="1.6. 1", versionDate="2007-08-12",6 version="1.6.2", versionDate="2007-08-20", 7 7 preferedView="info",Documentation(info="<HTML> 8 8 <p> 9 9 This package contains very simple-to-use components to model coolant flows as needed to simulate cooling e.g. of electric machines: 10 </p>11 12 10 <ul> 13 11 <li>Components: components like different types of pipe models</li> … … 19 17 <li>Sources: various flow sources</li> 20 18 </ul> 21 19 </p> 22 20 <p> 23 21 <b>Variables used in connectors:</b> 24 </p>25 26 22 <ul> 27 23 <li>Pressure p</li> … … 30 26 <li>flow EnthalpyFlowRate H_flow</li> 31 27 </ul> 32 33 <p>34 28 EnthalpyFlowRate means the Enthalpy = cp<sub>constant</sub> * m * T that is carried by the medium's flow. 35 29 </p> 36 37 30 <p> 38 31 <b>Limitations and assumptions:</b> 39 </p>40 41 32 <ul> 42 33 <li>Splitting and mixing of coolant flows (media with the same cp) is possible.</li> … … 52 43 Outlet temperature is defined by variable T of the corresponding component.</li> 53 44 </ul> 54 55 45 </p> 56 46 <p> 57 47 <b>Further development:</b> 58 </p>59 60 48 <ul> 61 49 <li>Additional components like tanks (if needed)</li> 62 50 </ul> 63 64 51 </p> 52 <p> 65 53 <dl> 66 54 <dt><b>Main Authors:</b></dt> … … 81 69 </dd> 82 70 </dl> 83 71 </p> 72 </dl> 84 73 <p> 85 74 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. 86 75 </p> 87 76 <p> 88 <i>Th isModelica package is <b>free</b> software; it can be redistributed and/or modified77 <i>The Modelica package is <b>free</b> software; it can be redistributed and/or modified 89 78 under the terms of the <b>Modelica license</b>, see the license conditions 90 79 and the accompanying <b>disclaimer</b> … … 124 113 improved documentation<br> 125 114 removed type TemperatureDifference since this is defined in Modelica.SIunits</li> 115 <li> v1.6.2 2007/08/20 Anton Haumer<br> 116 improved documentation</li> 126 117 </ul> 127 118 </HTML> … … 153 144 <p> 154 145 This package contains test examples: 155 </p>156 157 146 <ul> 158 147 <li>1.SimpleCooling: heat is dissipated through a media flow</li> … … 165 154 <li>8.TwoMass: cooling of two masses (thermal capacities) by two parallel coolant flows</li> 166 155 </ul> 167 156 </p> 168 157 169 158 </HTML>", revisions="<HTML> … … 1037 1026 connect(Pipe1.flowPort_b, Ambient2.flowPort) 1038 1027 annotation (points=[20,0; 40,0], style(color=1, rgbcolor={255,0,0})); 1039 connect(ThermalConductor1.port_a, HeatCapacitor1.port) annotation (points=[10,-40; 1028 connect(ThermalConductor1.port_a, HeatCapacitor1.port) annotation (points=[10,-40; 1040 1029 10,-40; 10,-50; 10,-50], style(color=42, rgbcolor={191,0,0})); 1041 1030 connect(Pipe1.heatPort, ThermalConductor1.port_b) … … 1138 1127 connect(Pipe3.flowPort_b, Ambient2.flowPort) 1139 1128 annotation (points=[60,0; 80,0], style(color=1, rgbcolor={255,0,0})); 1140 connect(HeatCapacitor2.port, ThermalConductor2.port_a) annotation (points=[10,60; 1129 connect(HeatCapacitor2.port, ThermalConductor2.port_a) annotation (points=[10,60; 1141 1130 10,55.5; 10,50; 10,50], style(color=42, rgbcolor={191,0,0})); 1142 1131 connect(ThermalConductor2.port_b, Pipe2.heatPort) … … 1144 1133 connect(Pipe1.heatPort, ThermalConductor1.port_b) annotation (points=[10,-20; 1145 1134 10,-30], style(color=42, rgbcolor={191,0,0})); 1146 connect(ThermalConductor1.port_a, HeatCapacitor1.port) annotation (points=[10,-50; 1135 connect(ThermalConductor1.port_a, HeatCapacitor1.port) annotation (points=[10,-50; 1147 1136 10,-50; 10,-60; 10,-60], 1148 1137 style(color=42, rgbcolor={191,0,0})); … … 1201 1190 parameter Modelica.SIunits.Time interval=0.2 1202 1191 "Interval between end of 1st and beginning of 2nd ramp"; 1203 parameter Real height_1=-1 "|Ramp 1|Height of ramp"; 1192 parameter Real height_1=-1 "Height of ramp" 1193 annotation(Dialog(group="Ramp 1")); 1204 1194 parameter Modelica.SIunits.Time duration_1(min=Modelica.Constants.small) = 0.2 1205 "|Ramp 1|Duration of ramp"; 1206 parameter Real height_2=1 "|Ramp 2|Height of ramp"; 1195 "Duration of ramp" 1196 annotation(Dialog(group="Ramp 1")); 1197 parameter Real height_2=1 "Height of ramp" 1198 annotation(Dialog(group="Ramp 2")); 1207 1199 parameter Modelica.SIunits.Time duration_2(min=Modelica.Constants.small) = 0.2 1208 "|Ramp 2|Duration of ramp"; 1200 "Duration of ramp" 1201 annotation(Dialog(group="Ramp 2")); 1209 1202 annotation ( 1210 1203 Documentation(info="<HTML> … … 1257 1250 <p> 1258 1251 This package contains components: 1259 </p>1260 1261 1252 <ul> 1262 1253 <li>pipe without heat exchange</li> 1263 1254 <li>pipe with heat exchange</li> 1264 1255 <li>valve (simple controlled valve)</li> 1265 < /ul>1266 1256 <ul> 1257 </p> 1267 1258 <p> 1268 1259 Pressure drop is taken from partial model SimpleFriction.<br> 1269 1260 Thermodynamic equations are defined in partial models (package Partials). 1270 1261 </p> 1271 1262 <p> 1272 1263 1273 1264 </HTML>", revisions="<HTML> … … 1445 1436 extends Interfaces.Partials.TwoPort(m=0, final tapT=1); 1446 1437 parameter Boolean LinearCharacteristic=true 1447 " |Standard characteristic|Type of characteristic"1448 annotation( choices(choice=true "Linear", choice=false "Exponential"));1438 "Type of characteristic" 1439 annotation(Dialog(group="Standard characteristic"), choices(choice=true "Linear", choice=false "Exponential")); 1449 1440 parameter Real y1(min=small)=1 1450 "|Standard characteristic|Max. valve opening"; 1441 "Max. valve opening" 1442 annotation(Dialog(group="Standard characteristic")); 1451 1443 parameter Modelica.SIunits.VolumeFlowRate Kv1(min=small)=1 1452 "|Standard characteristic|Max. flow @ y = y1"; 1444 "Max. flow @ y = y1" 1445 annotation(Dialog(group="Standard characteristic")); 1453 1446 parameter Real kv0(min=small,max=1-small)=0.01 1454 "|Standard characteristic|Leakage flow / max.flow @ y = 0"; 1447 "Leakage flow / max.flow @ y = 0" 1448 annotation(Dialog(group="Standard characteristic")); 1455 1449 parameter Modelica.SIunits.Pressure dp0=1 1456 "|Standard characteristic|Standard pressure drop"; 1450 "Standard pressure drop" 1451 annotation(Dialog(group="Standard characteristic")); 1457 1452 parameter Modelica.SIunits.Density rho0 = 10 1458 "|Standard characteristic|Standard medium's density"; 1453 "Standard medium's density" 1454 annotation(Dialog(group="Standard characteristic")); 1459 1455 parameter Real frictionLoss(min=0, max=1) = 0 1460 1456 "Part of friction losses fed to medium"; … … 1751 1747 string="dp ~ V_flow²"))); 1752 1748 parameter Modelica.SIunits.VolumeFlowRate V_flowLaminar(min=Modelica.Constants.small)=0.1 1753 "|SimpleFriction|Laminar volume flow"; 1749 "Laminar volume flow" 1750 annotation(Dialog(group="Simple Friction")); 1754 1751 parameter Modelica.SIunits.Pressure dpLaminar=0.1 1755 "|SimpleFriction|Laminar pressure drop"; 1752 "Laminar pressure drop" 1753 annotation(Dialog(group="Simple Friction")); 1756 1754 parameter Modelica.SIunits.VolumeFlowRate V_flowNominal=1 1757 "|SimpleFriction|Nominal volume flow"; 1755 "Nominal volume flow" 1756 annotation(Dialog(group="Simple Friction")); 1758 1757 parameter Modelica.SIunits.Pressure dpNominal=1 1759 "|SimpleFriction|Nominal pressure drop"; 1758 "Nominal pressure drop" 1759 annotation(Dialog(group="Simple Friction")); 1760 1760 parameter Real frictionLoss(min=0, max=1) = 0 1761 "|SimpleFriction|Part of friction losses fed to medium"; 1761 "Part of friction losses fed to medium" 1762 annotation(Dialog(group="Simple Friction")); 1762 1763 Modelica.SIunits.Pressure pressureDrop; 1763 1764 Modelica.SIunits.VolumeFlowRate VolumeFlow; … … 2368 2369 <p> 2369 2370 This package contains different types of sources: 2370 </p>2371 2372 2371 <ul> 2373 2372 <li>Ambient with constant pressure and temperature</li> … … 2377 2376 <li>Constant and prescribed pressure increase</li> 2378 2377 <li>Simple pump with mechanical flange</li> 2379 < /ul>2380 2378 <ul> 2379 </p> 2381 2380 <p> 2382 2381 Thermodynamic equations are defined in partial models (package Interfaces.Partials).<br> 2383 2382 All fans / pumps are considered without losses, they do not change enthalpy flow. 2384 2383 </p> 2384 <p> 2385 2385 2386 2386 </HTML>", revisions="<HTML> … … 2403 2403 </dd> 2404 2404 </dl> 2405 2405 </p> 2406 </dl> 2406 2407 <p> 2407 2408 Copyright © 1998-2007, Modelica Association, Anton Haumer and arsenal research. … … 2697 2698 extends Interfaces.Partials.TwoPort(final tapT=1); 2698 2699 parameter Modelica.SIunits.AngularVelocity w_Nominal=1 2699 "|Pump characteristic|Nominal speed"; 2700 "Nominal speed" 2701 annotation(Dialog(group="Pump characteristic")); 2700 2702 parameter Modelica.SIunits.Pressure dp0=2 2701 "|Pump characteristic|Max. pressure increase @ V_flow=0"; 2703 "Max. pressure increase @ V_flow=0" 2704 annotation(Dialog(group="Pump characteristic")); 2702 2705 parameter Modelica.SIunits.VolumeFlowRate V_flow0=2 2703 "|Pump characteristic|Max. volume flow rate @ dp=0"; 2706 "Max. volume flow rate @ dp=0" 2707 annotation(Dialog(group="Pump characteristic")); 2704 2708 Modelica.SIunits.AngularVelocity w=der(flange_a.phi) "Speed"; 2705 2709 protected
