Changeset 1113 for trunk/Modelica

Show
Ignore:
Timestamp:
05/04/08 13:46:15 (7 months ago)
Author:
otter
Message:

- Bugs in MultiBody.Forces.WorldTorque and WorldForceAndTorque fixed

(resolveInFrame was not propagated).

- Release notes updated

Location:
trunk/Modelica
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Modelica/Mechanics/MultiBody/Forces.mo

    r1050 r1113  
    280280      annotation (Dialog(group="if animation = true", enable=animation)); 
    281281 
    282     annotation (defaultComponentName="torque" 
    283       , 
     282    annotation (defaultComponentName="torque", 
    284283      Documentation(info="<HTML> 
    285284 
     
    391390      r_head=-t_in_m) if world.enableAnimation and animation; 
    392391  public 
    393     Internal.BasicWorldTorque basicWorldTorque  
     392    Internal.BasicWorldTorque basicWorldTorque(resolveInFrame=resolveInFrame)  
    394393      annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); 
    395394  protected 
     
    581580        extent=[-100, -100; 100, 100], 
    582581        grid=[1, 1], 
    583         component=[20, 20]) 
    584       , 
     582        component=[20, 20]), 
    585583      Documentation(info=" 
    586584An external force element exerts the inport signal 
     
    628626    Internal.BasicWorldForce basicWorldForce(resolveInFrame=resolveInFrame)  
    629627      annotation (Placement(transformation(extent={{18,-50},{38,-70}}))); 
    630     WorldTorque torque1  
     628    Internal.BasicWorldTorque basicWorldTorque(resolveInFrame=resolveInFrame)  
    631629      annotation (Placement(transformation(extent={{-10,50},{10,70}}))); 
    632630  protected 
     
    644642        color={0,0,127}, 
    645643        smooth=Smooth.None)); 
    646     connect(torque1.frame_b, frame_b) annotation (Line( 
     644    connect(basicWorldTorque.frame_b, frame_b)  
     645                                      annotation (Line( 
    647646        points={{10,60},{60,60},{60,0},{100,0}}, 
    648647        color={95,95,95}, 
    649648        thickness=0.5, 
    650649        smooth=Smooth.None)); 
    651     connect(torque1.torque, torque) annotation (Line( 
     650    connect(basicWorldTorque.torque, torque)  
     651                                    annotation (Line( 
    652652        points={{-12,60},{-120,60}}, 
    653653        color={0,0,127}, 
     
    658658        pattern=LinePattern.Dot, 
    659659        smooth=Smooth.None)); 
    660     connect(torque1.frame_resolve, frame_resolve) annotation (Line( 
     660    connect(basicWorldTorque.frame_resolve, frame_resolve)  
     661                                                  annotation (Line( 
    661662        points={{0,70},{0,100}}, 
    662663        color={95,95,95}, 
    663664        pattern=LinePattern.Dot, 
    664665        smooth=Smooth.None)); 
    665     connect(zeroPosition.frame_resolve, torque1.frame_resolve) annotation (Line( 
     666    connect(zeroPosition.frame_resolve, basicWorldTorque.frame_resolve)  
     667                                                               annotation (Line( 
    666668        points={{58,80},{0,80},{0,70}}, 
    667669        color={95,95,95}, 
     
    14141416      "Unit vector in direction from frame_a to frame_b, resolved in world frame"; 
    14151417    annotation ( 
    1416        
    14171418      Icon(coordinateSystem( 
    14181419          preserveAspectRatio=true, 
     
    17711772      "Unit vector in direction from frame_a to frame_b, resolved in world frame"; 
    17721773    annotation ( 
    1773        
    17741774      Icon(coordinateSystem( 
    17751775          preserveAspectRatio=true, 
     
    23132313    extends Interfaces.PartialLineForce; 
    23142314    annotation ( 
    2315        
    23162315      Documentation(info="<HTML> 
    23172316<p> 
     
    24362435    extends Interfaces.PartialLineForce; 
    24372436    annotation ( 
    2438        
    24392437      Documentation(info="<HTML> 
    24402438<p> 
     
    25442542    extends Interfaces.PartialLineForce; 
    25452543    annotation ( 
    2546        
    25472544      Documentation(info="<HTML> 
    25482545<p> 
     
    26302627            lineColor={160,160,164}, 
    26312628            textString="s")})); 
     2629 
    26322630  equation 
    26332631    f = c*(s - s_unstretched - s_damper); 
     
    26492647            rotation=90))); 
    26502648      Modelica.Blocks.Interfaces.RealInput force[3](each final quantity="Force", each 
    2651         final unit = "N") 
     2649          final unit="N") 
    26522650        "x-, y-, z-coordinates of force resolved in frame defined by resolveInFrame" 
    26532651        annotation (Placement(transformation( 
     
    27852783 
    27862784      Modelica.Blocks.Interfaces.RealInput torque[3](each final quantity="Torque", each 
    2787         final unit = "N.m") 
     2785          final unit="N.m") 
    27882786        "x-, y-, z-coordiantes of torque resolved in frame defined by resolveInFrame" 
    27892787        annotation (Placement(transformation( 
     
    29242922 
    29252923      Modelica.Blocks.Interfaces.RealInput force[3](each final quantity="Force", each 
    2926         final unit = "N") 
     2924          final unit="N") 
    29272925        "x-, y-, z-coordinates of force resolved in frame defined by resolveInFrame" 
    29282926        annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, 
     
    30323030 
    30333031      Modelica.Blocks.Interfaces.RealInput torque[3](each final quantity="Torque", each 
    3034         final unit = "N.m") 
     3032          final unit="N.m") 
    30353033        "x-, y-, z-coordinates of torque resolved in frame defined by resolveInFrame" 
    30363034        annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, 
  • trunk/Modelica/package.mo

    r1098 r1113  
    11within ; 
    2 package Modelica "Modelica Standard Library (Version 3.0)" 
     2package Modelica "Modelica Standard Library (Version 3.0.1 development)" 
    33extends Icons.Library; 
    4    
    54 
    65annotation ( 
     
    4746     how to use the components of the corresponding sublibrary.</li> 
    4847</ul> 
    49  
     48  
    5049<p> 
    5150This version of the Modelica Standard Library consists of 
     
    5857that are directly usable (= number of public, non-partial classes). 
    5958</p> 
    60  
     59  
    6160<p> 
    6261Copyright &copy; 1998-2008, Modelica Association. 
     
    7069</HTML> 
    7170")); 
    72  
    7371 
    7472package UsersGuide "User's Guide of Modelica library" 
     
    627625 
    628626  package ReleaseNotes "Release notes" 
     627  class Version_3_0_1_development "Version 3.0.1 (development)" 
     628 
     629      annotation (Documentation(info="<html> 
     630 
     631<p><br> 
     632The following <b style=\"color:red\">critical errors</b> have been fixed (i.e. errors 
     633that can lead to wrong simulation results): 
     634</p> 
     635  
     636<table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 
     637  <tr><td colspan=\"2\"><b>Mechanics.MultiBody.Forces</b></td></tr> 
     638  <tr><td valign=\"top\"> WorldTorque </td> 
     639      <td valign=\"top\"> Parameter \"ResolveInFrame\" was not propagated and therefore 
     640                        always the default (resolved in world frame) was used, independently 
     641                        of the setting of this parameter. </td>  
     642  </tr> 
     643  <tr><td valign=\"top\"> WorldForceAndTorque </td> 
     644      <td valign=\"top\"> Parameter \"ResolveInFrame\" was not propagated and therefore 
     645                        always the default (resolved in world frame) was used, independently 
     646                        of the setting of this parameter.<br> 
     647                        Furthermore, internally WorldTorque was used instead of 
     648                        Internal.BasicWorldTorque and therefore the visualization of 
     649                        worldTorque was performed twice. </td>  
     650  </tr> 
     651</table> 
     652  
     653  
     654<p><br> 
     655The following <b style=\"color:red\">uncritical errors</b> have been fixed (i.e. errors 
     656that do <b style=\"color:red\">not</b> lead to wrong simulation results, but, e.g.,  
     657units are wrong or errors in documentation): 
     658</p> 
     659  
     660<table border=\"1\" cellspacing=0 cellpadding=2 style=\"border-collapse:collapse;\"> 
     661  <tr><td colspan=\"2\"><b>XXXX</b></td></tr> 
     662  <tr><td valign=\"top\"> XXX</td> 
     663      <td valign=\"top\"> XXX </td>  
     664  </tr> 
     665</table> 
     666                        
     667                                
     668</html>")); 
     669  end Version_3_0_1_development; 
    629670 
    630671    annotation (Documentation(info="<html>