- Timestamp:
- 05/04/08 13:43:24 (7 months ago)
- Location:
- branches/maintenance/3.0/Modelica
- Files:
-
- 2 modified
-
Mechanics/MultiBody/Forces.mo (modified) (20 diffs)
-
package.mo (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/maintenance/3.0/Modelica/Mechanics/MultiBody/Forces.mo
r1050 r1112 280 280 annotation (Dialog(group="if animation = true", enable=animation)); 281 281 282 annotation (defaultComponentName="torque" 283 , 282 annotation (defaultComponentName="torque", 284 283 Documentation(info="<HTML> 285 284 … … 391 390 r_head=-t_in_m) if world.enableAnimation and animation; 392 391 public 393 Internal.BasicWorldTorque basicWorldTorque 392 Internal.BasicWorldTorque basicWorldTorque(resolveInFrame=resolveInFrame) 394 393 annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); 395 394 protected … … 468 467 annotation (Dialog(group="if animation = true", enable=animation)); 469 468 469 Internal.BasicWorldForce basicWorldForce(resolveInFrame=resolveInFrame) 470 annotation (Placement(transformation(extent={{18,-50},{38,-70}}))); 471 Internal.BasicWorldTorque basicWorldTorque(resolveInFrame=resolveInFrame) 472 annotation (Placement(transformation(extent={{-10,50},{10,70}}))); 473 470 474 annotation (defaultComponentName="forceAndTorque", 471 475 Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ … … 581 585 extent=[-100, -100; 100, 100], 582 586 grid=[1, 1], 583 component=[20, 20]) 584 , 587 component=[20, 20]), 585 588 Documentation(info=" 586 589 An external force element exerts the inport signal … … 625 628 r_tail=t_in_m, 626 629 r_head=-t_in_m) if world.enableAnimation and animation; 627 public628 Internal.BasicWorldForce basicWorldForce(resolveInFrame=resolveInFrame)629 annotation (Placement(transformation(extent={{18,-50},{38,-70}})));630 WorldTorque torque1631 annotation (Placement(transformation(extent={{-10,50},{10,70}})));632 protected633 630 Interfaces.ZeroPosition zeroPosition if 634 631 not (resolveInFrame == Modelica.Mechanics.MultiBody.Types.ResolveInFrameB.frame_resolve) … … 644 641 color={0,0,127}, 645 642 smooth=Smooth.None)); 646 connect(torque1.frame_b, frame_b) annotation (Line( 643 connect(basicWorldTorque.frame_b, frame_b) 644 annotation (Line( 647 645 points={{10,60},{60,60},{60,0},{100,0}}, 648 646 color={95,95,95}, 649 647 thickness=0.5, 650 648 smooth=Smooth.None)); 651 connect(torque1.torque, torque) annotation (Line( 649 connect(basicWorldTorque.torque, torque) 650 annotation (Line( 652 651 points={{-12,60},{-120,60}}, 653 652 color={0,0,127}, … … 658 657 pattern=LinePattern.Dot, 659 658 smooth=Smooth.None)); 660 connect(torque1.frame_resolve, frame_resolve) annotation (Line( 659 connect(basicWorldTorque.frame_resolve, frame_resolve) 660 annotation (Line( 661 661 points={{0,70},{0,100}}, 662 662 color={95,95,95}, 663 663 pattern=LinePattern.Dot, 664 664 smooth=Smooth.None)); 665 connect(zeroPosition.frame_resolve, torque1.frame_resolve) annotation (Line( 665 connect(zeroPosition.frame_resolve, basicWorldTorque.frame_resolve) 666 annotation (Line( 666 667 points={{58,80},{0,80},{0,70}}, 667 668 color={95,95,95}, … … 1414 1415 "Unit vector in direction from frame_a to frame_b, resolved in world frame"; 1415 1416 annotation ( 1416 1417 1417 Icon(coordinateSystem( 1418 1418 preserveAspectRatio=true, … … 1534 1534 fillPattern=FillPattern.Solid), 1535 1535 Line(points={{-60,0},{-31,0}}, color={0,0,255}), 1536 Polygon(points={{-19,0},{-31,3},{-31,-3},{-19,0}}, lineColor={0,0,255}), 1536 Polygon(points={{-19,0},{-31,3},{-31,-3},{-19,0}}, lineColor={0,0,255}), 1537 1537 1538 Line(points={{-60,16},{0,16}}, color={0,0,255}), 1538 1539 Line(points={{0,0},{0,20}}, color={0,0,255}), … … 1541 1542 lineColor={0,0,0}, 1542 1543 textString="e_rel_0"), 1543 Polygon(points={{0,16},{-12,19},{-12,13},{0,16}}, lineColor={0,0,255}), 1544 Polygon(points={{0,16},{-12,19},{-12,13},{0,16}}, lineColor={0,0,255}), 1545 1544 1546 Text( 1545 1547 extent={{-50,35},{51,26}}, … … 1771 1773 "Unit vector in direction from frame_a to frame_b, resolved in world frame"; 1772 1774 annotation ( 1773 1774 1775 Icon(coordinateSystem( 1775 1776 preserveAspectRatio=true, … … 1919 1920 Line(points={{29,3},{29,22}}, color={0,0,255}), 1920 1921 Line(points={{29,16},{60,16}}, color={0,0,255}), 1921 Polygon(points={{29,16},{41,19},{41,13},{29,16}}, lineColor={0,0,255}), 1922 Polygon(points={{29,16},{41,19},{41,13},{29,16}}, lineColor={0,0,255}), 1923 1922 1924 Text( 1923 1925 extent={{15,36},{32,26}}, … … 2313 2315 extends Interfaces.PartialLineForce; 2314 2316 annotation ( 2315 2316 2317 Documentation(info="<HTML> 2317 2318 <p> … … 2436 2437 extends Interfaces.PartialLineForce; 2437 2438 annotation ( 2438 2439 2439 Documentation(info="<HTML> 2440 2440 <p> … … 2544 2544 extends Interfaces.PartialLineForce; 2545 2545 annotation ( 2546 2547 2546 Documentation(info="<HTML> 2548 2547 <p> … … 2630 2629 lineColor={160,160,164}, 2631 2630 textString="s")})); 2631 2632 2632 equation 2633 2633 f = c*(s - s_unstretched - s_damper); … … 2649 2649 rotation=90))); 2650 2650 Modelica.Blocks.Interfaces.RealInput force[3](each final quantity="Force", each 2651 final unit ="N")2651 final unit="N") 2652 2652 "x-, y-, z-coordinates of force resolved in frame defined by resolveInFrame" 2653 2653 annotation (Placement(transformation( … … 2785 2785 2786 2786 Modelica.Blocks.Interfaces.RealInput torque[3](each final quantity="Torque", each 2787 final unit ="N.m")2787 final unit="N.m") 2788 2788 "x-, y-, z-coordiantes of torque resolved in frame defined by resolveInFrame" 2789 2789 annotation (Placement(transformation( … … 2924 2924 2925 2925 Modelica.Blocks.Interfaces.RealInput force[3](each final quantity="Force", each 2926 final unit ="N")2926 final unit="N") 2927 2927 "x-, y-, z-coordinates of force resolved in frame defined by resolveInFrame" 2928 2928 annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, … … 3032 3032 3033 3033 Modelica.Blocks.Interfaces.RealInput torque[3](each final quantity="Torque", each 3034 final unit ="N.m")3034 final unit="N.m") 3035 3035 "x-, y-, z-coordinates of torque resolved in frame defined by resolveInFrame" 3036 3036 annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, -
branches/maintenance/3.0/Modelica/package.mo
r1097 r1112 2 2 package Modelica "Modelica Standard Library (Version 3.0)" 3 3 extends Icons.Library; 4 5 4 5 6 6 annotation ( 7 7 preferredView="info", … … 627 627 628 628 package ReleaseNotes "Release notes" 629 class Version_3_0_BugFixes "Version 3.0 with bug fixes" 630 631 annotation (Documentation(info="<html> 632 633 <p> 634 In this section bug fixes are summarized that have been incorporated 635 since the release of version 3.0. 636 </p> 637 638 <p><br> 639 The following <b style=\"color:red\">critical errors</b> have been fixed (i.e. errors 640 that can lead to wrong simulation results): 641 </p> 642 643 <table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 644 <tr><td colspan=\"2\"><b>Mechanics.MultiBody.Forces</b></td></tr> 645 <tr><td valign=\"top\"> WorldTorque </td> 646 <td valign=\"top\"> Parameter \"ResolveInFrame\" was not propagated and therefore 647 always the default (resolved in world frame) was used, independently 648 of the setting of this parameter. </td> 649 </tr> 650 <tr><td valign=\"top\"> WorldForceAndTorque </td> 651 <td valign=\"top\"> Parameter \"ResolveInFrame\" was not propagated and therefore 652 always the default (resolved in world frame) was used, independently 653 of the setting of this parameter.<br> 654 Furthermore, internally WorldTorque was used instead of 655 Internal.BasicWorldTorque and therefore the visualization of 656 worldTorque was performed twice. </td> 657 </tr> 658 </table> 659 660 661 <p><br> 662 The following <b style=\"color:red\">uncritical errors</b> have been fixed (i.e. errors 663 that do <b style=\"color:red\">not</b> lead to wrong simulation results, but, e.g., 664 units are wrong or errors in documentation): 665 </p> 666 667 <table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 668 <tr><td colspan=\"2\"><b>XXXX</b></td></tr> 669 <tr><td valign=\"top\"> XXX</td> 670 <td valign=\"top\"> XXX </td> 671 </tr> 672 </table> 673 674 </html>")); 675 end Version_3_0_BugFixes; 629 676 630 677 annotation (Documentation(info="<html>
