Show
Ignore:
Timestamp:
11/04/2007 07:07:07 PM (14 months ago)
Author:
AHaumer
Message:

fixed a bug in Mechanics.Rotational.Interfaces.
PartialSpeedDependentTorque (angle resp. speed has to be the difference between flange and bearing!)

Files:
1 modified

Legend:

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

    r463 r769  
    18861886    partial model PartialSpeedDependentTorque  
    18871887      "Partial model of a torque acting at the flange (accelerates the flange)"  
    1888       Modelica.SIunits.AngularVelocity w = der(flange.phi)  
    1889         "Angular velocity at flange"; 
    1890       Modelica.SIunits.Torque tau = flange.tau  
    1891         "accelerating torque acting at flange"; 
     1888      Modelica.SIunits.Angle phi  
     1889        "Angle of flange with respect to bearing (= flange.phi - bearing.phi)"; 
     1890      Modelica.SIunits.AngularVelocity w  
     1891        "Angular velocity at flange with respect to bearing (= der(phi))"; 
     1892      Modelica.SIunits.Torque tau "Accelerating torque acting at flange"; 
    18921893      Modelica.Mechanics.Rotational.Interfaces.Flange_b flange  
    18931894        "Flange on which torque is acting"  
     
    19301931</HTML>")); 
    19311932    equation  
     1933      phi = flange.phi - bearing.phi; 
     1934      w = der(phi); 
     1935      tau = flange.tau; 
    19321936      if cardinality(bearing) == 0 then 
    19331937        bearing.phi = 0;