Changeset 1129 for branches/maintenance

Show
Ignore:
Timestamp:
05/25/08 10:33:05 (6 months ago)
Author:
otter
Message:

maintenance/3.0/Modelica: Removed previously introduced fix for friction

Location:
branches/maintenance/3.0/Modelica
Files:
3 modified

Legend:

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

    r1119 r1129  
    66 
    77  annotation ( 
    8   version="1.1.1", versionDate="2007-11-22", 
     8  version="1.1.1", versionDate="2007-11-22" 
     9    , 
    910    Documentation(info="<html> 
    1011  
     
    841842locked, forward sliding.</p> 
    842843  
    843 </HTML>"), __Dymola_Commands(file="Scripts/__Dymola_CoupledClutches.mos" 
    844             "Simulate and Plot"), 
     844</HTML>"), __Dymola_Commands(file="Scripts/__Dymola_CoupledClutches.mos" "Simulate and Plot"), 
    845845        Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-140,-80},{ 
    846846                140,80}}, 
     
    13461346               0))); 
    13471347      annotation ( 
     1348         
    13481349        Icon(coordinateSystem( 
    13491350            preserveAspectRatio=true, 
     
    13831384            Line(points={{-40,-40},{-80,-80}}, color={0,0,0}), 
    13841385            Line(points={{0,-40},{0,-4}}, color={0,0,0})})); 
    1385  
    13861386    equation 
    13871387      flange.phi = phi0; 
     
    14071407 
    14081408      annotation ( 
     1409         
    14091410        Documentation(info="<html> 
    14101411<p> 
     
    14531454            extent={{-100,-100},{100,100}}, 
    14541455            grid={1,1}), graphics)); 
    1455  
    14561456    equation 
    14571457      phi = flange_a.phi; 
     
    14701470      SI.Angle phi "Absolute rotation angle of component"; 
    14711471      annotation ( 
     1472         
    14721473        Documentation(info="<html> 
    14731474<p> 
     
    15141515            extent={{-100,-100},{100,100}}, 
    15151516            grid={1,1}), graphics)); 
    1516  
    15171517    equation 
    15181518      flange_a.phi = phi - deltaPhi/2; 
     
    15281528 
    15291529      annotation ( 
     1530         
    15301531        Documentation(info="<html> 
    15311532<p> 
     
    15741575            Line(points={{-96,0},{-60,0},{-42,-32},{-12,30},{18,-30},{48,28},{ 
    15751576                  62,0},{96,0}}, color={0,0,255})})); 
    1576  
    15771577    equation 
    15781578      tau = c*(phi_rel - phi_rel0); 
     
    15851585        "Damping constant"; 
    15861586      annotation ( 
     1587         
    15871588        Documentation(info="<html> 
    15881589<p> 
     
    16411642              fillColor={128,128,128}, 
    16421643              fillPattern=FillPattern.Solid)})); 
    1643  
    16441644    equation 
    16451645      tau = d*w_rel; 
     
    16571657 
    16581658      annotation ( 
     1659         
    16591660        Documentation(info="<html> 
    16601661<p> 
     
    17321733            Line(points={{-96,0},{-80,0}}, color={0,0,0}), 
    17331734            Line(points={{96,0},{80,0}}, color={0,0,0})})); 
    1734  
    17351735    equation 
    17361736      tau = c*(phi_rel - phi_rel0) + d*w_rel; 
     
    17631763      constant SI.Angle bEps = 1e-10 "minimum backlash"; 
    17641764      annotation ( 
     1765         
    17651766        Documentation(info="<html> 
    17661767<p> 
     
    20362037              fillPattern=FillPattern.Solid, 
    20372038              textString="b")})); 
    2038  
    20392039    equation 
    20402040        if initial() then 
     
    21942194  
    21952195</HTML> 
    2196 "),     Icon(coordinateSystem( 
     2196")     , 
     2197        Icon(coordinateSystem( 
    21972198            preserveAspectRatio=true, 
    21982199            extent={{-100,-100},{100,100}}, 
     
    23202321            rotation=90))); 
    23212322      annotation ( 
     2323         
    23222324        Icon(coordinateSystem( 
    23232325            preserveAspectRatio=true, 
     
    23662368              fillPattern=FillPattern.Solid), 
    23672369            Line(points={{0,90},{80,70},{80,-40},{70,-40}}, color={0,0,127}), 
    2368             Line(points={{0,90},{-80,70},{-80,-40},{-70,-40}}, color={0,0,127}), 
     2370            Line(points={{0,90},{-80,70},{-80,-40},{-70,-40}}, color={0,0,127}),  
     2371 
    23692372            Text( 
    23702373              extent={{-150,-180},{150,-140}}, 
     
    25162519            rotation=90))); 
    25172520      annotation ( 
     2521         
    25182522        Icon(coordinateSystem( 
    25192523            preserveAspectRatio=true, 
     
    26492653            extent={{-100,-100},{100,100}}, 
    26502654            grid={1,1}), graphics)); 
    2651  
    26522655    equation 
    26532656      // Constant auxiliary variable 
     
    27142717            rotation=90))); 
    27152718      annotation ( 
     2719         
    27162720        Icon(coordinateSystem( 
    27172721            preserveAspectRatio=true, 
     
    28472851            extent={{-100,-100},{100,100}}, 
    28482852            grid={1,1}), graphics)); 
    2849  
    28502853    equation 
    28512854      // Constant auxiliary variable 
     
    28882891 
    28892892      annotation ( 
     2893         
    28902894        Documentation(info="<html> 
    28912895<p> 
     
    29592963            extent={{-100,-100},{100,100}}, 
    29602964            grid={1,1}), graphics)); 
    2961  
    29622965    equation 
    29632966      phi_a = flange_a.phi - internalSupport.phi; 
     
    33153318               0))); 
    33163319      annotation ( 
     3320         
    33173321        Documentation(info="<HTML> 
    33183322<p> 
     
    35023506              lineColor={128,128,128}, 
    35033507              textString="rotation axis")})); 
    3504  
    35053508    equation 
    35063509      (1 + ratio)*carrier.phi = sun.phi + ratio*ring.phi; 
     
    35793582              fillColor={192,192,192}), 
    35803583            Polygon( 
    3581               points={{-60,10},{-60,20},{-40,40},{-40,-40},{-60,-20},{-60,10}}, 
     3584              points={{-60,10},{-60,20},{-40,40},{-40,-40},{-60,-20},{-60,10}},  
     3585 
    35823586              lineColor={0,0,0}, 
    35833587              fillPattern=FillPattern.HorizontalCylinder, 
     
    36393643        "Transmission ratio (flange_a.phi/flange_b.s)"; 
    36403644      annotation ( 
     3645         
    36413646        Documentation(info="<html> 
    36423647This is an ideal mass- and inertialess gearbox which transforms a 
     
    37153720            extent={{-100,-100},{100,100}}, 
    37163721            grid={1,1}), graphics)); 
    3717  
    37183722    equation 
    37193723      (flangeR.phi - internalSupportR.phi) = ratio*(flangeT.s - internalSupportT.s); 
     
    40144018      SI.AngularAcceleration a_rel(start=0) "Relative angular acceleration"; 
    40154019      annotation ( 
     4020         
    40164021        Documentation(info="<html> 
    40174022<p> 
     
    41084113              color={0,0,0}, 
    41094114              pattern=LinePattern.Dash)})); 
    4110  
    41114115    equation 
    41124116      phi_rel = flange_b.phi - flange_a.phi; 
     
    41564160              rotation=0))); 
    41574161      annotation ( 
     4162         
    41584163        Documentation(info="<HTML> 
    41594164<p> 
     
    42264231            extent={{-100,-100},{100,100}}, 
    42274232            grid={2,2}), graphics)); 
    4228  
    42294233    protected 
    42304234      parameter Modelica.SIunits.AngularFrequency w_crit=2*Modelica.Constants.pi*f_crit 
     
    42704274              rotation=0))); 
    42714275      annotation ( 
     4276         
    42724277        Documentation(info="<html> 
    42734278<p> 
     
    43404345            extent={{-100,-100},{100,100}}, 
    43414346            grid={2,2}), graphics)); 
    4342  
    43434347    protected 
    43444348      parameter Modelica.SIunits.AngularFrequency w_crit=2*Modelica.Constants.pi*f_crit 
     
    43784382              rotation=0))); 
    43794383      annotation ( 
     4384         
    43804385        Documentation(info="<html> 
    43814386<p> 
     
    44244429            extent={{-100,-100},{100,100}}, 
    44254430            grid={2,2}), graphics)); 
    4426  
    44274431    equation 
    44284432      phi = flange.phi - internalSupport.phi; 
     
    45014505              extent={{-150,100},{150,60}}, 
    45024506              textString="%name", 
    4503               lineColor={0,0,255})})); 
     4507              lineColor={0,0,255})}) 
     4508        ); 
    45044509    protected 
    45054510      function position 
     
    45514556              rotation=0))); 
    45524557      annotation ( 
     4558         
    45534559        Documentation(info="<HTML> 
    45544560<p> 
     
    45904596            Line(points={{-10,-50},{10,-30}}, color={0,0,0}), 
    45914597            Line(points={{10,-50},{30,-30}}, color={0,0,0}), 
    4592             Line(points={{-54,-42},{-38,-28},{-16,-16},{4,-14},{22,-18},{36,-26}, 
    4593                   {48,-36},{56,-46},{64,-58}}, color={0,0,0}), 
     4598            Line( 
     4599              points={{-54,-42},{-38,-28},{-16,-16},{4,-14},{22,-18},{36,-26},{ 
     4600                  48,-36},{56,-46},{64,-58}}, 
     4601              color={0,0,0}), 
    45944602            Polygon( 
    45954603              points={{-61,-66},{-44,-42},{-58,-36},{-61,-66}}, 
     
    46214629              fillColor={0,0,0}, 
    46224630              fillPattern=FillPattern.Solid)})); 
    4623  
    46244631    equation 
    46254632      flange.tau = -tau; 
     
    46374644 
    46384645      annotation ( 
     4646         
    46394647        Documentation(info="<HTML> 
    46404648<p> 
     
    47124720              fillColor={0,0,0}, 
    47134721              fillPattern=FillPattern.Solid)})); 
    4714  
    47154722    equation 
    47164723      flange_a.tau =  tau; 
     
    49344941            preserveAspectRatio=true, 
    49354942            extent={{-100,-100},{100,100}}, 
    4936             grid={1,1}), graphics)); 
     4943            grid={1,1}), graphics) 
     4944        ); 
    49374945    equation 
    49384946      phi = flange.phi; 
     
    49674975            preserveAspectRatio=true, 
    49684976            extent={{-100,-100},{100,100}}, 
    4969             grid={1,1}), graphics)); 
     4977            grid={1,1}), graphics) 
     4978        ); 
    49704979    equation 
    49714980      w = der(flange.phi); 
     
    50015010            preserveAspectRatio=true, 
    50025011            extent={{-100,-100},{100,100}}, 
    5003             grid={1,1}), graphics)); 
     5012            grid={1,1}), graphics) 
     5013        ); 
    50045014    equation 
    50055015      w = der(flange.phi); 
     
    50385048            preserveAspectRatio=true, 
    50395049            extent={{-100,-100},{100,100}}, 
    5040             grid={1,1}), graphics)); 
     5050            grid={1,1}), graphics) 
     5051        ); 
    50415052    equation 
    50425053      phi_rel = flange_b.phi - flange_a.phi; 
     
    50785089            preserveAspectRatio=true, 
    50795090            extent={{-100,-100},{100,100}}, 
    5080             grid={1,1}), graphics)); 
     5091            grid={1,1}), graphics) 
     5092        ); 
    50815093    equation 
    50825094      phi_rel = flange_b.phi - flange_a.phi; 
     
    51205132            preserveAspectRatio=true, 
    51215133            extent={{-100,-100},{100,100}}, 
    5122             grid={1,1}), graphics)); 
     5134            grid={1,1}), graphics) 
     5135        ); 
    51235136    equation 
    51245137      phi_rel = flange_b.phi - flange_a.phi; 
     
    51595172            preserveAspectRatio=true, 
    51605173            extent={{-100,-100},{100,100}}, 
    5161             grid={1,1}), graphics)); 
     5174            grid={1,1}), graphics) 
     5175        ); 
    51625176    equation 
    51635177      flange_a.phi = flange_b.phi; 
     
    51945208            preserveAspectRatio=true, 
    51955209            extent={{-100,-100},{100,100}}, 
    5196             grid={1,1}), graphics)); 
     5210            grid={1,1}), graphics) 
     5211        ); 
    51975212    equation 
    51985213      flange_a.phi = flange_b.phi; 
     
    52195234      SI.Angle phi "Absolute rotation angle of flange"; 
    52205235      flow SI.Torque tau "Cut torque in the flange"; 
    5221       annotation(defaultComponentName = "flange_a", 
     5236      annotation(defaultComponentName = "flange_a" 
     5237        , 
    52225238        Documentation(info="<html> 
    52235239<p> 
     
    52805296      SI.Angle phi "Absolute rotation angle of flange"; 
    52815297      flow SI.Torque tau "Cut torque in the flange"; 
    5282       annotation(defaultComponentName = "flange_b", 
     5298      annotation(defaultComponentName = "flange_b" 
     5299        , 
    52835300        Documentation(info="<html> 
    52845301<p> 
     
    55035520            preserveAspectRatio=true, 
    55045521            extent={{-100,-100},{100,100}}, 
    5505             grid={2,2}), graphics)); 
     5522            grid={2,2}), graphics) 
     5523        ); 
    55065524    end PartialTwoFlanges; 
    55075525 
     
    55405558              extent={{21,-95},{61,-96}}, 
    55415559              lineColor={95,95,95}, 
    5542               textString="(if not useSupport)")}), 
     5560              textString="(if not useSupport)")}) 
     5561        , 
    55435562        Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 
    55445563                100,100}}), graphics={ 
     
    56175636              extent={{24,-97},{64,-98}}, 
    56185637              lineColor={95,95,95}, 
    5619               textString="(if not useSupport)")}), 
     5638              textString="(if not useSupport)")}) 
     5639        , 
    56205640        Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 
    56215641                100,100}}), graphics={ 
     
    56725692 
    56735693      annotation ( 
     5694         
    56745695        Documentation(info="<html> 
    56755696<p> 
     
    56875708            extent={{-100,-100},{100,100}}, 
    56885709            grid={2,2}), graphics)); 
    5689  
    56905710    equation 
    56915711      phi_rel = flange_b.phi - flange_a.phi; 
     
    57185738 
    57195739      annotation ( 
     5740         
    57205741        Documentation(info="<html> 
    57215742<p> 
     
    57535774            extent={{-100,-100},{100,100}}, 
    57545775            grid={2,2}), graphics)); 
    5755  
    57565776    equation 
    57575777      phi_rel = flange_b.phi - flange_a.phi; 
     
    57965816              extent={{-38,-98},{-6,-96}}, 
    57975817              lineColor={95,95,95}, 
    5798               textString="(if useSupport)")}), 
     5818              textString="(if useSupport)")}) 
     5819        , 
    57995820        Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 
    58005821                100,100}}), graphics={ 
     
    58735894              extent={{-38,-98},{-6,-96}}, 
    58745895              lineColor={95,95,95}, 
    5875               textString="(if useSupport)")}), 
     5896              textString="(if useSupport)")}) 
     5897        , 
    58765898        Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 
    58775899                100,100}}), graphics={ 
     
    59375959 
    59385960      annotation ( 
     5961         
    59395962        Documentation(info="<html> 
    59405963  
     
    60096032            extent={{-100,-100},{100,100}}, 
    60106033            grid={1,1}), graphics)); 
    6011  
    60126034    protected 
    60136035      Rotational.Interfaces.InternalSupport internalSupportR(tau = - flangeR.tau)  
     
    60676089              fillColor={0,0,0}, 
    60686090              fillPattern=FillPattern.Solid), 
    6069             Line(points={{-58,-82},{-42,-68},{-20,-56},{0,-54},{18,-56},{34,-62}, 
    6070                   {44,-72},{54,-82},{60,-94}}, color={0,0,0}), 
     6091            Line( 
     6092              points={{-58,-82},{-42,-68},{-20,-56},{0,-54},{18,-56},{34,-62},{ 
     6093                  44,-72},{54,-82},{60,-94}}, 
     6094              color={0,0,0}), 
    60716095            Polygon( 
    60726096              points={{-65,-98},{-46,-80},{-58,-72},{-65,-98}}, 
     
    61206144              rotation=0))); 
    61216145      annotation ( 
     6146         
    61226147        Documentation(info="<html> 
    61236148<p> 
     
    61646189            extent={{-100,-100},{100,100}}, 
    61656190            grid={1,1}), graphics)); 
    6166  
    61676191    equation 
    61686192      0 = flange.tau; 
     
    61796203              rotation=0))); 
    61806204      annotation ( 
     6205         
    61816206        Documentation(info="<html> 
    61826207<p> 
     
    62246249            extent={{-100,-100},{100,100}}, 
    62256250            grid={1,1}), graphics)); 
    6226  
    62276251    equation 
    62286252      0 = flange_a.tau + flange_b.tau; 
     
    62716295      constant SI.AngularAcceleration unitAngularAcceleration = 1 annotation(HideResult=true); 
    62726296      constant SI.Torque unitTorque = 1 annotation(HideResult=true); 
    6273       Real sa0 = (tau0_max + (tau0_max - tau0))/unitTorque 
    6274         "Value of sa when start of forward sliding at w=0"; 
    62756297    equation 
    62766298    /* Friction characteristic 
     
    62796301   if for each configuration special code shall be generated) 
    62806302*/ 
    6281       startForward  = pre(mode) == Stuck and sa >  tau0_max/unitTorque or  
     6303      startForward  = pre(mode) == Stuck and  
     6304        (pre(startForward)  or sa >  tau0_max/unitTorque and sa >  tau0/unitTorque) or  
    62826305        pre(mode) == Backward and w_relfric >  w_small or initial() and w_relfric > 0; 
    6283       startBackward = pre(mode) == Stuck and sa < -tau0_max/unitTorque or  
     6306      startBackward = pre(mode) == Stuck and  
     6307        (pre(startBackward) or sa < -tau0_max/unitTorque and sa < -tau0/unitTorque) or  
    62846308        pre(mode) == Forward  and w_relfric < -w_small or initial() and w_relfric < 0; 
    62856309      locked = not free and  
     
    62876311      a_relfric/unitAngularAcceleration = if locked then               0 else  
    62886312                                          if free then                 sa else  
    6289                                           if startForward then         sa - sa0 else  
    6290                                           if startBackward then        sa + sa0 else  
    6291                                           if pre(mode) == Forward then sa - sa0 else  
    6292                                                                        sa + sa0; 
     6313                                          if startForward then         sa - tau0/unitTorque else  
     6314                                          if startBackward then        sa + tau0/unitTorque else  
     6315                                          if pre(mode) == Forward then sa - tau0/unitTorque else  
     6316                                                                       sa + tau0/unitTorque; 
    62936317    /* Friction torque has to be defined in a subclass. Example for a clutch: 
    62946318   tau = if locked then sa else  
  • branches/maintenance/3.0/Modelica/Mechanics/Translational.mo

    r1119 r1129  
    55  import SI = Modelica.SIunits; 
    66  annotation ( 
    7   version="1.1.1", versionDate="2007-11-22",