Changeset 1020

Show
Ignore:
Timestamp:
01/29/2008 10:01:44 PM (12 months ago)
Author:
otter
Message:

- Changed StateGraph.Examples.ControlledTanks examples so that all models/connectors used are balanced

(did not fulfill the restrictions of Modelica 3 previously).

- Updated release notes

Location:
Modelica/trunk/Modelica
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Modelica/trunk/Modelica/StateGraph.mo

    r998 r1020  
    15351535    end MakeProduct; 
    15361536 
    1537     connector inflow 
     1537    connector inflow1 
    15381538        "Inflow connector (this is a copy from Isolde Dressler's master thesis project)" 
    15391539 
    1540         import Units = Modelica.SIunits; 
    1541  
    1542       Units.VolumeFlowRate Fi "inflow"; 
     1540      import Units = Modelica.SIunits; 
     1541 
     1542      input Units.VolumeFlowRate Fi "inflow"; 
    15431543      annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, 
    15441544                  -100},{100,100}}), graphics={Polygon( 
     
    15481548                fillColor={255,255,255}, 
    15491549                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 
    15531568        "Outflow connector (this is a copy from Isolde Dressler's master thesis project)" 
    15541569 
    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"; 
    15591574      annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, 
    15601575                  -100},{100,100}}), graphics={Polygon( 
     
    15641579                fillColor={255,255,255}, 
    15651580                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; 
    15671598 
    15681599    model valve 
     
    15951626              extent={{-20,-20},{20,20}}, 
    15961627              rotation=90))); 
    1597       inflow inflow1 annotation (Placement(transformation( 
     1628      Modelica.StateGraph.Examples.Utilities.inflow2 inflow1  
     1629                     annotation (Placement(transformation( 
    15981630              origin={50,0}, 
    15991631              extent={{-50,-50},{50,50}}, 
    16001632              rotation=90))); 
    1601       outflow outflow1 annotation (Placement(transformation( 
     1633      Modelica.StateGraph.Examples.Utilities.outflow2 outflow1  
     1634                       annotation (Placement(transformation( 
    16021635              origin={-50,0}, 
    16031636              extent={{-50,-50},{50,50}}, 
     
    16151648                rotation=0))); 
    16161649 
    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, 
    16181652                  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},{ 
    16201655                  65,-40}}, rotation=0))); 
    16211656      annotation ( 
     
    16661701        "Simple source model (this is a copy from Isolde Dressler's master thesis project)" 
    16671702 
    1668       outflow outflow1 annotation (Placement(transformation(extent={{-10,-60},{ 
     1703      Modelica.StateGraph.Examples.Utilities.outflow1 outflow1  
     1704                       annotation (Placement(transformation(extent={{-10,-60},{ 
    16691705                  10,-40}}, rotation=0))); 
    16701706      parameter Real maxflow=1 "maximal flow out of source"; 
     
    16801716                fillPattern=FillPattern.Solid, 
    16811717                textString="%name", 
    1682                 lineColor={0,0,255})})); 
     1718                lineColor={0,0,255})}), Diagram(coordinateSystem( 
     1719                preserveAspectRatio=false, extent={{-100,-100},{100,100}}), 
     1720              graphics)); 
    16831721    equation 
    16841722      if outflow1.open then 
     
    32203258          graphics={Rectangle( 
    32213259              extent={{-100,-100},{100,100}}, 
    3222               fillColor=DynamicSelect({192,192,192}, if on > 0.5 then {0,255,0} else  
    3223                        {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 
    32253263                  FillPattern.Solid else FillPattern.Solid), 
    32263264              lineColor={128,128,128}, 
  • Modelica/trunk/Modelica/package.mo

    r1015 r1020  
    1 within ;  
     1within ; 
    22package Modelica "Modelica Standard Library (Version 3.0)" 
    33extends Icons.Library; 
     
    754754Version 3.0 is <b>not</b> backward compatible to previous versions. 
    755755A conversion script is provided to transform models and libraries 
    756 of previous versions to the new version. 
     756of previous versions to the new version. Therefore, conversion  
     757should be automatic. 
    757758</p> 
    758759 
     
    12031204                        whether it is used as absolute or as a relative number)</td> </tr> 
    12041205 
     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 
    12051218  <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Sensors.</b></td></tr> 
    12061219  <tr><td valign=\"top\"> <br> 
     
    12121225  <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Sources.</b></td></tr> 
    12131226  <tr><td valign=\"top\"> Ambient<br>PrescribedAmbient</td> 
    1214       <td valign=\"top\"> available as one combined component Ambient<br> 
     1227      <td valign=\"top\"> ava" + "ilable as one combined component Ambient<br> 
    12151228                        Boolean parameters usePressureInput and useTemperatureInput decide  
    12161229                        whether pressure and/or temperature are constant or prescribed</td> </tr> 
     
    12221235      <td valign=\"top\"> available as one combined component PressureIncrease<br> 
    12231236                        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> 
    12251238 
    12261239  <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Examples.</b></td></tr> 
     
    14321445      <td valign=\"top\"> Unit of variable \"press\" corrected (from Pa to bar)</td>  
    14331446  </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 
    14341452 
    14351453  <tr><td colspan=\"2\"><b>Thermal.FluidHeatFlow.Interfaces.Partials.</b></td></tr>