Changeset 768

Show
Ignore:
Timestamp:
11/04/07 18:45:30 (13 months ago)
Author:
otter
Message:

Forgot to save everything before committing. Therefore again:
Bug in torque calculation of Rotational correct, if bearing was not fixed to ground
(speed in torque calculation was the speed of the flange and not the correct relative speed to the bearing).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Modelica/branches/maintenance/2.2.2/Modelica/Mechanics/Rotational.mo

    r660 r768  
    19391939    partial model PartialSpeedDependentTorque  
    19401940      "Partial model of a torque acting at the flange (accelerates the flange)"  
    1941       Modelica.SIunits.AngularVelocity w = der(flange.phi)  
    1942         "Angular velocity at flange"; 
    1943       Modelica.SIunits.Torque tau = flange.tau  
    1944         "accelerating torque acting at flange"; 
     1941      Modelica.SIunits.Angle phi  
     1942        "Angle of flange with respect to bearing (= flange.phi - bearing.phi)"; 
     1943      Modelica.SIunits.AngularVelocity w  
     1944        "Angular velocity at flange with respect to bearing (= der(phi))"; 
     1945      Modelica.SIunits.Torque tau "Accelerating torque acting at flange"; 
    19451946      Modelica.Mechanics.Rotational.Interfaces.Flange_b flange  
    19461947        "Flange on which torque is acting"  
     
    19831984</HTML>")); 
    19841985    equation  
     1986      phi = flange.phi - bearing.phi; 
     1987      w = der(phi); 
     1988      tau = flange.tau; 
    19851989      if cardinality(bearing) == 0 then 
    19861990        bearing.phi = 0;