- Timestamp:
- 06/26/08 08:45:49 (5 months ago)
- Location:
- branches/maintenance/3.0/Modelica
- Files:
-
- 3 modified
-
Blocks/Math.mo (modified) (4 diffs)
-
Blocks/Sources.mo (modified) (34 diffs)
-
package.mo (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/maintenance/3.0/Modelica/Blocks/Math.mo
r1047 r1142 616 616 617 617 annotation(__Dymola_structurallyIncomplete=true, 618 Diagram(coordinateSystem(preserveAspectRatio= true, extent={{-200,-100},{618 Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-200,-100},{ 619 619 200,100}}), 620 620 graphics), 621 Icon(coordinateSystem(preserveAspectRatio= true, extent={{-200,-100},{200,621 Icon(coordinateSystem(preserveAspectRatio=false, extent={{-200,-100},{200, 622 622 100}}), graphics={ 623 623 Line( … … 641 641 <a href=\"Modelica://Modelica.Blocks.Examples.InverseModel\">Modelica.Blocks.Examples.InverseModel</a>. 642 642 </p> 643 643 644 644 <p> 645 645 Note, if a block shall be inverted that has several input and output blocks, … … 647 647 instances: 648 648 </p> 649 649 650 650 <pre> 651 651 InverseBlockConstraint invert[3]; // Block to be inverted has 3 input signals … … 656 656 y1 = y2; 657 657 end InverseBlockConstraints; 658 659 658 660 659 block Gain "Output the product of a gain value with the input signal" -
branches/maintenance/3.0/Modelica/Blocks/Sources.mo
r1046 r1142 12 12 13 13 annotation ( 14 15 14 Icon(coordinateSystem( 16 preserveAspectRatio= true,15 preserveAspectRatio=false, 17 16 extent={{-100,-100},{100,100}}, 18 17 grid={2,2}), graphics={ … … 61 60 62 61 annotation ( 63 64 62 Icon(coordinateSystem( 65 preserveAspectRatio= true,63 preserveAspectRatio=false, 66 64 extent={{-100,-100},{100,100}}, 67 65 grid={2,2}), graphics={ … … 110 108 111 109 annotation ( 112 113 110 Icon(coordinateSystem( 114 preserveAspectRatio= true,111 preserveAspectRatio=false, 115 112 extent={{-100,-100},{100,100}}, 116 113 grid={2,2}), graphics={ … … 162 159 163 160 annotation ( 164 165 161 Documentation(info="<HTML> 166 162 <p> … … 218 214 </ul> 219 215 </html>")); 216 220 217 block Clock "Generate actual time signal " 221 218 parameter Modelica.SIunits.Time offset=0 "Offset of output signal"; … … 225 222 226 223 annotation ( 227 228 224 Icon(coordinateSystem( 229 225 preserveAspectRatio=true, … … 343 339 extends Interfaces.SO; 344 340 345 annotation (defaultComponentName="const" 346 , 341 annotation (defaultComponentName="const", 347 342 Icon(coordinateSystem( 348 343 preserveAspectRatio=true, … … 421 416 extends Interfaces.SignalSource; 422 417 annotation ( 423 424 418 Icon(coordinateSystem( 425 419 preserveAspectRatio=true, … … 546 540 547 541 annotation ( 548 549 542 Icon(coordinateSystem( 550 543 preserveAspectRatio=true, … … 684 677 </p> 685 678 </html>")); 679 686 680 equation 687 681 y = offset + (if time < startTime then 0 else if time < (startTime + … … 700 694 constant Real pi=Modelica.Constants.pi; 701 695 annotation ( 702 703 696 Icon(coordinateSystem( 704 697 preserveAspectRatio=true, … … 807 800 </p> 808 801 </html>")); 802 809 803 equation 810 804 y = offset + (if time < startTime then 0 else amplitude* … … 825 819 constant Real pi=Modelica.Constants.pi; 826 820 annotation ( 827 828 821 Icon(coordinateSystem( 829 822 preserveAspectRatio=true, … … 957 950 </p> 958 951 </html>")); 952 959 953 equation 960 954 y = offset + (if time < startTime then 0 else amplitude* … … 978 972 Real y_riseTime; 979 973 annotation ( 980 981 974 Icon(coordinateSystem( 982 975 preserveAspectRatio=true, … … 1098 1091 </p> 1099 1092 </html>")); 1093 1100 1094 equation 1101 1095 y_riseTime = outMax*(1 - Modelica.Math.exp(-riseTime/riseTimeConst)); … … 1119 1113 extends Modelica.Blocks.Interfaces.SO; 1120 1114 annotation ( 1121 1122 1115 Icon(coordinateSystem( 1123 1116 preserveAspectRatio=true, … … 1267 1260 </p> 1268 1261 </html>")); 1262 1269 1263 protected 1270 1264 Modelica.SIunits.Time T0(final start=startTime) … … 1290 1284 SIunits.Time T0(final start=startTime) "Start time of current period"; 1291 1285 annotation ( 1292 1293 1286 Icon(coordinateSystem( 1294 1287 preserveAspectRatio=true, … … 1415 1408 </p> 1416 1409 </html>")); 1410 1417 1411 equation 1418 1412 when sample(startTime, period) then … … 1450 1444 Integer counter2(start=nperiod); 1451 1445 annotation ( 1452 1453 1446 Icon(coordinateSystem( 1454 1447 preserveAspectRatio=true, … … 1653 1646 </p> 1654 1647 </html>")); 1648 1655 1649 equation 1656 1650 when pre(counter2) <> 0 and sample(startTime, period) then … … 1697 1691 Boolean noWphase; 1698 1692 annotation ( 1699 1700 1693 Icon(coordinateSystem( 1701 1694 preserveAspectRatio=true, … … 1811 1804 </ul> 1812 1805 </html>")); 1806 1813 1807 equation 1814 1808 for i in 1:nout loop … … 1871 1865 rotation=0))); 1872 1866 1873 annotation (defaultComponentName="kinematicPTP" 1874 , 1867 annotation (defaultComponentName="kinematicPTP", 1875 1868 Icon(coordinateSystem( 1876 1869 preserveAspectRatio=true, … … 2189 2182 SIunits.Time nextEvent(start=0, fixed=true) "Next event instant"; 2190 2183 annotation ( 2191 2192 2184 Icon(coordinateSystem( 2193 2185 preserveAspectRatio=true, … … 2355 2347 </ul> 2356 2348 </html>")); 2349 2357 2350 function getInterpolationCoefficients 2358 2351 "Determine interpolation coefficients and next time event" … … 2654 2647 fillPattern=FillPattern.Solid), 2655 2648 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}}, 2657 2650 color={0,0,0}), 2658 2651 Text( … … 2781 2774 extends Interfaces.partialBooleanSource; 2782 2775 annotation ( 2783 2784 2776 Icon(coordinateSystem( 2785 2777 preserveAspectRatio=true, … … 2825 2817 </p> 2826 2818 </html>")); 2819 2827 2820 equation 2828 2821 y = k; … … 2892 2885 extends Modelica.Blocks.Interfaces.partialBooleanSource; 2893 2886 annotation ( 2894 2895 2887 Icon(coordinateSystem( 2896 2888 preserveAspectRatio=true, … … 2975 2967 </p> 2976 2968 </html>")); 2969 2977 2970 protected 2978 2971 parameter Modelica.SIunits.Time Twidth=period*width/100 … … 2997 2990 2998 2991 annotation ( 2999 3000 2992 Icon(coordinateSystem( 3001 2993 preserveAspectRatio=true, … … 3079 3071 </p> 3080 3072 </html>")); 3073 3081 3074 equation 3082 3075 y = sample(startTime, period); -
branches/maintenance/3.0/Modelica/package.mo
r1139 r1142 656 656 worldTorque was performed twice. </td> 657 657 </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> 659 659 <tr><td valign=\"top\"> SupportFriction<br> 660 660 Brake </td> … … 675 675 676 676 <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 677 689 <tr><td colspan=\"2\"><b>Media.Interfaces.PartialSimpleMedium</b></td></tr> 678 690 <tr><td valign=\"top\"> pressure<br> … … 681 693 specificEnthalpy </td> 682 694 <td valign=\"top\"> Missing functions added.</td> 683 </tr></table> 695 </tr> 696 </table> 684 697 685 698 </html>"));
