Changeset 1020
- Timestamp:
- 01/29/2008 10:01:44 PM (12 months ago)
- Location:
- Modelica/trunk/Modelica
- Files:
-
- 2 modified
-
StateGraph.mo (modified) (8 diffs)
-
package.mo (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/Modelica/StateGraph.mo
r998 r1020 1535 1535 end MakeProduct; 1536 1536 1537 connector inflow 1537 connector inflow1 1538 1538 "Inflow connector (this is a copy from Isolde Dressler's master thesis project)" 1539 1539 1540 import Units = Modelica.SIunits;1541 1542 Units.VolumeFlowRate Fi "inflow";1540 import Units = Modelica.SIunits; 1541 1542 input Units.VolumeFlowRate Fi "inflow"; 1543 1543 annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, 1544 1544 -100},{100,100}}), graphics={Polygon( … … 1548 1548 fillColor={255,255,255}, 1549 1549 fillPattern=FillPattern.Solid)})); 1550 end inflow; 1551 1552 connector outflow 1550 end inflow1; 1551 1552 connector inflow2 1553 "Inflow connector (this is a copy from Isolde Dressler's master thesis project)" 1554 1555 import Units = Modelica.SIunits; 1556 1557 output Units.VolumeFlowRate Fi "inflow"; 1558 annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, 1559 -100},{100,100}}), graphics={Polygon( 1560 points={{-100,-100},{0,100},{100,-100},{-100,-100}}, 1561 lineColor={0,0,0}, 1562 lineThickness=2, 1563 fillColor={255,255,255}, 1564 fillPattern=FillPattern.Solid)})); 1565 end inflow2; 1566 1567 connector outflow1 1553 1568 "Outflow connector (this is a copy from Isolde Dressler's master thesis project)" 1554 1569 1555 import Units = Modelica.SIunits;1556 1557 Units.VolumeFlowRate Fo "outflow";1558 Boolean open "valve open";1570 import Units = Modelica.SIunits; 1571 1572 output Units.VolumeFlowRate Fo "outflow"; 1573 input Boolean open "valve open"; 1559 1574 annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, 1560 1575 -100},{100,100}}), graphics={Polygon( … … 1564 1579 fillColor={255,255,255}, 1565 1580 fillPattern=FillPattern.Solid)})); 1566 end outflow; 1581 end outflow1; 1582 1583 connector outflow2 1584 "Outflow connector (this is a copy from Isolde Dressler's master thesis project)" 1585 1586 import Units = Modelica.SIunits; 1587 1588 input Units.VolumeFlowRate Fo "outflow"; 1589 output Boolean open "valve open"; 1590 annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, 1591 -100},{100,100}}), graphics={Polygon( 1592 points={{-100,100},{0,-100},{100,100},{-100,100}}, 1593 lineColor={0,0,0}, 1594 lineThickness=2, 1595 fillColor={255,255,255}, 1596 fillPattern=FillPattern.Solid)})); 1597 end outflow2; 1567 1598 1568 1599 model valve … … 1595 1626 extent={{-20,-20},{20,20}}, 1596 1627 rotation=90))); 1597 inflow inflow1 annotation (Placement(transformation( 1628 Modelica.StateGraph.Examples.Utilities.inflow2 inflow1 1629 annotation (Placement(transformation( 1598 1630 origin={50,0}, 1599 1631 extent={{-50,-50},{50,50}}, 1600 1632 rotation=90))); 1601 outflow outflow1 annotation (Placement(transformation( 1633 Modelica.StateGraph.Examples.Utilities.outflow2 outflow1 1634 annotation (Placement(transformation( 1602 1635 origin={-50,0}, 1603 1636 extent={{-50,-50},{50,50}}, … … 1615 1648 rotation=0))); 1616 1649 1617 inflow inflow1 annotation (Placement(transformation(extent={{-55,60},{-45, 1650 Modelica.StateGraph.Examples.Utilities.inflow1 inflow1 1651 annotation (Placement(transformation(extent={{-55,60},{-45, 1618 1652 70}}, rotation=0))); 1619 outflow outflow1 annotation (Placement(transformation(extent={{55,-50},{ 1653 Modelica.StateGraph.Examples.Utilities.outflow1 outflow1 1654 annotation (Placement(transformation(extent={{55,-50},{ 1620 1655 65,-40}}, rotation=0))); 1621 1656 annotation ( … … 1666 1701 "Simple source model (this is a copy from Isolde Dressler's master thesis project)" 1667 1702 1668 outflow outflow1 annotation (Placement(transformation(extent={{-10,-60},{ 1703 Modelica.StateGraph.Examples.Utilities.outflow1 outflow1 1704 annotation (Placement(transformation(extent={{-10,-60},{ 1669 1705 10,-40}}, rotation=0))); 1670 1706 parameter Real maxflow=1 "maximal flow out of source"; … … 1680 1716 fillPattern=FillPattern.Solid, 1681 1717 textString="%name", 1682 lineColor={0,0,255})})); 1718 lineColor={0,0,255})}), Diagram(coordinateSystem( 1719 preserveAspectRatio=false, extent={{-100,-100},{100,100}}), 1720 graphics)); 1683 1721 equation 1684 1722 if outflow1.open then … … 3220 3258 graphics={Rectangle( 3221 3259 extent={{-100,-100},{100,100}}, 3222 fillColor=DynamicSelect({192,192,192}, if on > 0.5 then {0,255,0} else3223 {192,192,192}),3224 fillPattern=DynamicSelect(FillPattern.Solid, if on > 0.5 then 3260 fillColor=DynamicSelect({192,192,192}, if on > 0.5 then {0,255,0} 3261 else {192,192,192}), 3262 fillPattern=DynamicSelect(FillPattern.Solid, if on > 0.5 then 3225 3263 FillPattern.Solid else FillPattern.Solid), 3226 3264 lineColor={128,128,128}, -
Modelica/trunk/Modelica/package.mo
r1015 r1020 1 within ; 1 within ; 2 2 package Modelica "Modelica Standard Library (Version 3.0)" 3 3 extends Icons.Library; … … 754 754 Version 3.0 is <b>not</b> backward compatible to previous versions. 755 755 A conversion script is provided to transform models and libraries 756 of previous versions to the new version. 756 of previous versions to the new version. Therefore, conversion 757 should be automatic. 757 758 </p> 758 759 … … 1203 1204 whether it is used as absolute or as a relative number)</td> </tr> 1204 1205 1206 <tr><td colspan=\"2\"><b>StateGraph.Examples.</b></td></tr> 1207 <tr><td valign=\"top\"> ControlledTanks </td> 1208 <td valign=\"top\"> The connectors of the ControlledTanks did not fulfill the new 1209 restrictions of Modelica 3. This has been fixed.</td> </tr> 1210 <tr><td valign=\"top\"> Utilities </td> 1211 <td valign=\"top\"> Replacing inflow, outflow by connectors inflow1, inflow2, 1212 outflow1, outflow2 with appropriate input/output prefixes in 1213 order to fufill the restrictions of Modelica 3 to arrive 1214 at balanced models. No conversion is provided, since 1215 too difficult and since the non-backward compatible change is in 1216 an example. </td> </tr> 1217 1205 1218 <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Sensors.</b></td></tr> 1206 1219 <tr><td valign=\"top\"> <br> … … 1212 1225 <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Sources.</b></td></tr> 1213 1226 <tr><td valign=\"top\"> Ambient<br>PrescribedAmbient</td> 1214 <td valign=\"top\"> ava ilable as one combined component Ambient<br>1227 <td valign=\"top\"> ava" + "ilable as one combined component Ambient<br> 1215 1228 Boolean parameters usePressureInput and useTemperatureInput decide 1216 1229 whether pressure and/or temperature are constant or prescribed</td> </tr> … … 1222 1235 <td valign=\"top\"> available as one combined component PressureIncrease<br> 1223 1236 Boolean parameter usePressureIncreaseInput decides 1224 whether pressure increase i " + "s constant or prescribed</td> </tr>1237 whether pressure increase is constant or prescribed</td> </tr> 1225 1238 1226 1239 <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Examples.</b></td></tr> … … 1432 1445 <td valign=\"top\"> Unit of variable \"press\" corrected (from Pa to bar)</td> 1433 1446 </tr> 1447 1448 <tr><td colspan=\"2\"><b>StateGraph.Examples.</b></td></tr> 1449 <tr><td valign=\"top\">SimpleFriction</td> 1450 <td valign=\"top\"> The internal parameter k is defined and calculated with the appropriate unit.</td> </tr> 1451 1434 1452 1435 1453 <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Interfaces.Partials.</b></td></tr>
