Changeset 1030 for trunk

Show
Ignore:
Timestamp:
02/06/08 17:00:26 (8 months ago)
Author:
otter
Message:

- Added start values for Boolean variables of Rotational.Components.LossyGear

since there are examples where these are used as iteration variables and
then meaning guess values are needed.

- Removed torque/force modifier from icon of Rotational/Translational.Interfaces.InternalSupport

because it looks bad when using it.

Location:
trunk/Modelica/Mechanics
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Modelica/Mechanics/Rotational.mo

    r1011 r1030  
    30643064      SI.Torque tauLossMin "Torque loss for negative speed"; 
    30653065 
    3066       Boolean tau_aPos "true, if torque of flange_a is not negative"; 
    3067       Boolean startForward "true, if starting to roll forward"; 
    3068       Boolean startBackward "true, if starting to roll backward"; 
    3069       Boolean locked "true, if gear is locked"; 
     3066      Boolean tau_aPos(start=true) 
     3067        "true, if torque of flange_a is not negative"; 
     3068      Boolean startForward(start=false) "true, if starting to roll forward"; 
     3069      Boolean startBackward(start=false) "true, if starting to roll backward"; 
     3070      Boolean locked(start=false) "true, if gear is locked"; 
    30703071 
    30713072      Boolean ideal "true, if losses are neglected"; 
     
    55985599                -100},{100,100}}), graphics), Icon(coordinateSystem( 
    55995600              preserveAspectRatio=true, extent={{-100,-100},{100,100}}), 
    5600             graphics={ 
    5601             Ellipse( 
     5601            graphics={Ellipse( 
    56025602              extent={{-20,20},{20,-20}}, 
    56035603              lineColor={135,135,135}, 
    56045604              fillColor={175,175,175}, 
    5605               fillPattern=FillPattern.Solid), 
    5606             Text( 
     5605              fillPattern=FillPattern.Solid), Text( 
    56075606              extent={{-200,80},{200,40}}, 
    56085607              lineColor={0,0,255}, 
    56095608              fillColor={175,175,175}, 
    56105609              fillPattern=FillPattern.Solid, 
    5611               textString="%name"), 
    5612             Text( 
    5613               extent={{-200,-38},{200,-78}}, 
    5614               lineColor={0,0,255}, 
    5615               fillColor={175,175,175}, 
    5616               fillPattern=FillPattern.Solid, 
    5617               textString="tau=%tau")}), 
     5610              textString="%name")}), 
    56185611        Documentation(info="<html> 
    56195612<p> 
  • trunk/Modelica/Mechanics/Translational.mo

    r998 r1030  
    35793579 
    35803580      annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, 
    3581                 -100},{100,100}}), graphics={Line(points={{-100,-100},{100,100}},  
     3581                -100},{100,100}}), graphics={Line(points={{-100,-100},{100,100}}, 
    35823582                color={0,0,255})}), Documentation(info="<HTML> 
    35833583<p> 
     
    37533753            preserveAspectRatio=true, 
    37543754            extent={{-100,-100},{100,100}}, 
    3755             grid={1,1}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}),  
     3755            grid={1,1}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}), 
    37563756              Text( 
    37573757              extent={{80,-28},{114,-62}}, 
     
    37893789            preserveAspectRatio=true, 
    37903790            extent={{-100,-100},{100,100}}, 
    3791             grid={1,1}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}),  
     3791            grid={1,1}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}), 
    37923792              Text( 
    37933793              extent={{80,-28},{111,-61}}, 
     
    38273827            preserveAspectRatio=true, 
    38283828            extent={{-100,-100},{100,100}}, 
    3829             grid={1,1}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}),  
     3829            grid={1,1}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}), 
    38303830              Text( 
    38313831              extent={{80,-28},{115,-60}}, 
     
    42224222                -100},{100,100}}), graphics), Icon(coordinateSystem( 
    42234223              preserveAspectRatio=true, extent={{-100,-100},{100,100}}), 
    4224             graphics={ 
    4225             Text( 
     4224            graphics={Text( 
    42264225              extent={{-200,80},{200,40}}, 
    42274226              lineColor={0,0,255}, 
    42284227              fillColor={175,175,175}, 
    42294228              fillPattern=FillPattern.Solid, 
    4230               textString="%name"), 
    4231             Rectangle( 
     4229              textString="%name"), Rectangle( 
    42324230              extent={{-20,20},{20,-20}}, 
    42334231              lineColor={0,127,0}, 
    42344232              fillColor={175,175,175}, 
    4235               fillPattern=FillPattern.Solid), 
    4236             Text( 
    4237               extent={{-200,-38},{200,-78}}, 
    4238               lineColor={0,0,255}, 
    4239               fillColor={175,175,175}, 
    4240               fillPattern=FillPattern.Solid, 
    4241               textString="f=%f")}), 
     4233              fillPattern=FillPattern.Solid)}), 
    42424234        Documentation(info="<html> 
    42434235<p>