Changeset 1142

Show
Ignore:
Timestamp:
06/26/08 08:45:49 (4 months ago)
Author:
otter
Message:

Changed annotation "PreserveAspectRatio" from "true" to "false" for the components:
- Blocks.Math.InverseBlockConstraints
- Blocks.Sources.RealExpression/.IntegerExpression/.BooleanExpression
Updated the release notes

Location:
branches/maintenance/3.0/Modelica
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/maintenance/3.0/Modelica/Blocks/Math.mo

    r1047 r1142  
    616616 
    617617    annotation(__Dymola_structurallyIncomplete=true, 
    618       Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-200,-100},{ 
     618      Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-200,-100},{ 
    619619              200,100}}), 
    620620              graphics), 
    621       Icon(coordinateSystem(preserveAspectRatio=true, extent={{-200,-100},{200, 
     621      Icon(coordinateSystem(preserveAspectRatio=false, extent={{-200,-100},{200, 
    622622              100}}), graphics={ 
    623623          Line( 
     
    641641<a href=\"Modelica://Modelica.Blocks.Examples.InverseModel\">Modelica.Blocks.Examples.InverseModel</a>. 
    642642</p> 
    643  
     643  
    644644<p> 
    645645Note, if a block shall be inverted that has several input and output blocks, 
     
    647647instances: 
    648648</p> 
    649  
     649  
    650650<pre> 
    651651   InverseBlockConstraint invert[3];  // Block to be inverted has 3 input signals 
     
    656656    y1 = y2; 
    657657  end InverseBlockConstraints; 
    658  
    659658 
    660659      block Gain "Output the product of a gain value with the input signal" 
  • branches/maintenance/3.0/Modelica/Blocks/Sources.mo

    r1046 r1142  
    1212 
    1313    annotation ( 
    14        
    1514      Icon(coordinateSystem( 
    16           preserveAspectRatio=true, 
     15          preserveAspectRatio=false, 
    1716          extent={{-100,-100},{100,100}}, 
    1817          grid={2,2}), graphics={ 
     
    6160 
    6261    annotation ( 
    63        
    6462      Icon(coordinateSystem( 
    65           preserveAspectRatio=true, 
     63          preserveAspectRatio=false, 
    6664          extent={{-100,-100},{100,100}}, 
    6765          grid={2,2}), graphics={ 
     
    110108 
    111109    annotation ( 
    112        
    113110      Icon(coordinateSystem( 
    114           preserveAspectRatio=true, 
     111          preserveAspectRatio=false, 
    115112          extent={{-100,-100},{100,100}}, 
    116113          grid={2,2}), graphics={ 
     
    162159 
    163160      annotation ( 
    164          
    165161        Documentation(info="<HTML> 
    166162<p> 
     
    218214</ul> 
    219215</html>")); 
     216 
    220217      block Clock "Generate actual time signal " 
    221218        parameter Modelica.SIunits.Time offset=0 "Offset of output signal"; 
     
    225222 
    226223        annotation ( 
    227            
    228224          Icon(coordinateSystem( 
    229225          preserveAspectRatio=true, 
     
    343339        extends Interfaces.SO; 
    344340 
    345         annotation (defaultComponentName="const" 
    346           , 
     341        annotation (defaultComponentName="const", 
    347342          Icon(coordinateSystem( 
    348343          preserveAspectRatio=true, 
     
    421416        extends Interfaces.SignalSource; 
    422417        annotation ( 
    423            
    424418          Icon(coordinateSystem( 
    425419          preserveAspectRatio=true, 
     
    546540 
    547541        annotation ( 
    548            
    549542          Icon(coordinateSystem( 
    550543          preserveAspectRatio=true, 
     
    684677</p> 
    685678</html>")); 
     679 
    686680      equation 
    687681        y = offset + (if time < startTime then 0 else if time < (startTime + 
     
    700694        constant Real pi=Modelica.Constants.pi; 
    701695        annotation ( 
    702            
    703696          Icon(coordinateSystem( 
    704697          preserveAspectRatio=true, 
     
    807800</p> 
    808801</html>")); 
     802 
    809803      equation 
    810804        y = offset + (if time < startTime then 0 else amplitude* 
     
    825819        constant Real pi=Modelica.Constants.pi; 
    826820        annotation ( 
    827            
    828821          Icon(coordinateSystem( 
    829822          preserveAspectRatio=true, 
     
    957950</p> 
    958951</html>")); 
     952 
    959953      equation 
    960954        y = offset + (if time < startTime then 0 else amplitude* 
     
    978972        Real y_riseTime; 
    979973        annotation ( 
    980            
    981974          Icon(coordinateSystem( 
    982975          preserveAspectRatio=true, 
     
    10981091</p> 
    10991092</html>")); 
     1093 
    11001094      equation 
    11011095        y_riseTime = outMax*(1 - Modelica.Math.exp(-riseTime/riseTimeConst)); 
     
    11191113        extends Modelica.Blocks.Interfaces.SO; 
    11201114        annotation ( 
    1121            
    11221115          Icon(coordinateSystem( 
    11231116          preserveAspectRatio=true, 
     
    12671260</p> 
    12681261</html>")); 
     1262 
    12691263  protected 
    12701264        Modelica.SIunits.Time T0(final start=startTime) 
     
    12901284        SIunits.Time T0(final start=startTime) "Start time of current period"; 
    12911285        annotation ( 
    1292            
    12931286          Icon(coordinateSystem( 
    12941287          preserveAspectRatio=true, 
     
    14151408</p> 
    14161409</html>")); 
     1410 
    14171411      equation 
    14181412        when sample(startTime, period) then 
     
    14501444        Integer counter2(start=nperiod); 
    14511445        annotation ( 
    1452            
    14531446          Icon(coordinateSystem( 
    14541447          preserveAspectRatio=true, 
     
    16531646</p> 
    16541647</html>")); 
     1648 
    16551649      equation 
    16561650        when pre(counter2) <> 0 and sample(startTime, period) then 
     
    16971691        Boolean noWphase; 
    16981692        annotation ( 
    1699            
    17001693          Icon(coordinateSystem( 
    17011694          preserveAspectRatio=true, 
     
    18111804</ul> 
    18121805</html>")); 
     1806 
    18131807      equation 
    18141808        for i in 1:nout loop 
     
    18711865            rotation=0))); 
    18721866 
    1873     annotation (defaultComponentName="kinematicPTP" 
    1874       , 
     1867    annotation (defaultComponentName="kinematicPTP", 
    18751868      Icon(coordinateSystem( 
    18761869          preserveAspectRatio=true, 
     
    21892182        SIunits.Time nextEvent(start=0, fixed=true) "Next event instant"; 
    21902183        annotation ( 
    2191            
    21922184          Icon(coordinateSystem( 
    21932185          preserveAspectRatio=true, 
     
    23552347</ul> 
    23562348</html>")); 
     2349 
    23572350        function getInterpolationCoefficients 
    23582351      "Determine interpolation coefficients and next time event" 
     
    26542647            fillPattern=FillPattern.Solid), 
    26552648          Line(points={{-20,-30},{-20,90},{80,90},{80,-30},{-20,-30},{-20,0},{ 
    2656                 80,0},{80,30},{-20,30},{-20,60},{80,60},{80,90},{20,90},{20,-30}},  
     2649                80,0},{80,30},{-20,30},{-20,60},{80,60},{80,90},{20,90},{20,-30}}, 
    26572650              color={0,0,0}), 
    26582651          Text( 
     
    27812774      extends Interfaces.partialBooleanSource; 
    27822775      annotation ( 
    2783          
    27842776        Icon(coordinateSystem( 
    27852777          preserveAspectRatio=true, 
     
    28252817</p> 
    28262818</html>")); 
     2819 
    28272820    equation 
    28282821      y = k; 
     
    28922885      extends Modelica.Blocks.Interfaces.partialBooleanSource; 
    28932886      annotation ( 
    2894          
    28952887        Icon(coordinateSystem( 
    28962888          preserveAspectRatio=true, 
     
    29752967</p> 
    29762968</html>")); 
     2969 
    29772970  protected 
    29782971      parameter Modelica.SIunits.Time Twidth=period*width/100 
     
    29972990 
    29982991      annotation ( 
    2999          
    30002992        Icon(coordinateSystem( 
    30012993          preserveAspectRatio=true, 
     
    30793071</p> 
    30803072</html>")); 
     3073 
    30813074    equation 
    30823075      y = sample(startTime, period); 
  • branches/maintenance/3.0/Modelica/package.mo

    r1139 r1142  
    656656                        worldTorque was performed twice. </td>  
    657657  </tr> 
    658   <tr><td colspan=\"2\"><b>Mechanics.Translational.Components</b></td></tr> 
     658  <tr><td colspan=\"2\"><b>Mechanics.Translational.Components.</b></td></tr> 
    659659  <tr><td valign=\"top\"> SupportFriction<br> 
    660660                        Brake </td> 
     
    675675  
    676676<table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 
     677  <tr><td colspan=\"2\"><b>Blocks.Math.</b></td></tr> 
     678  <tr><td valign=\"top\"> InverseBlockConstraint </td> 
     679      <td valign=\"top\"> Changed annotation preserveAspectRatio from true to false.</td>  
     680  </tr> 
     681 
     682  <tr><td colspan=\"2\"><b>Blocks.Sources.</b></td></tr> 
     683  <tr><td valign=\"top\"> RealExpression<br> 
     684                        IntegerExpression<br> 
     685                        BooleanExpression </td> 
     686      <td valign=\"top\"> Changed annotation preserveAspectRatio from true to false.</td>  
     687  </tr> 
     688 
    677689  <tr><td colspan=\"2\"><b>Media.Interfaces.PartialSimpleMedium</b></td></tr> 
    678690  <tr><td valign=\"top\"> pressure<br>  
     
    681693                        specificEnthalpy </td> 
    682694      <td valign=\"top\"> Missing functions added.</td>  
    683   </tr></table> 
     695  </tr> 
     696</table> 
    684697                                                 
    685698</html>"));