Show
Ignore:
Timestamp:
11/04/07 20:26:53 (13 months ago)
Author:
otter
Message:

Minor issues corrected, due to the changes in Rotational

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ObsoleteModelica3.mo

    r770 r771  
    323323      annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100, 
    324324                -100},{100,100}}), graphics={ 
    325             Text(extent={{-138,164},{138,104}}, textString="%name"),  
     325            Text(extent={{-138,164},{138,104}}, textString="%name"), 
    326326            Ellipse( 
    327               extent={{-100,100},{100,-100}},  
    328               lineColor={255,0,127},  
    329               fillColor={255,255,255},  
    330               fillPattern=FillPattern.Solid),  
     327              extent={{-100,100},{100,-100}}, 
     328              lineColor={255,0,127}, 
     329              fillColor={255,255,255}, 
     330              fillPattern=FillPattern.Solid), 
    331331            Text( 
    332               extent={{-100,100},{100,-100}},  
    333               lineColor={255,0,127},  
    334               fillColor={223,159,191},  
    335               fillPattern=FillPattern.Solid,  
     332              extent={{-100,100},{100,-100}}, 
     333              lineColor={255,0,127}, 
     334              fillColor={223,159,191}, 
     335              fillPattern=FillPattern.Solid, 
    336336              textString="e")}), 
    337337                          Documentation(info="<html> 
     
    455455                extent={{-100,-100},{100,100}}, 
    456456                grid={1,1}), graphics={ 
    457                 Line(points={{-70,0},{-90,0}}, color={0,0,0}),  
    458                 Line(points={{70,0},{100,0}}, color={0,0,127}),  
     457                Line(points={{-70,0},{-90,0}}, color={0,0,0}), 
     458                Line(points={{70,0},{100,0}}, color={0,0,127}), 
    459459                Text( 
    460                   extent={{150,80},{-150,120}},  
    461                   textString="%name",  
     460                  extent={{150,80},{-150,120}}, 
     461                  textString="%name", 
    462462                  lineColor={0,0,255})}), 
    463463            Diagram(coordinateSystem( 
     
    467467                      0,0}), Line(points={{70,0},{100,0}}, color={0,0,255})})); 
    468468        end AbsoluteSensor; 
    469  
     469         
    470470        partial model RelativeSensor  
    471471          "Base model to measure a single relative variable between two flanges"  
     
    507507                extent={{-100,-100},{100,100}}, 
    508508                grid={1,1}), graphics={ 
    509                 Line(points={{-70,0},{-90,0}}, color={0,0,0}),  
    510                 Line(points={{70,0},{90,0}}, color={0,0,0}),  
    511                 Line(points={{0,-100},{0,-70}}, color={0,0,127}),  
     509                Line(points={{-70,0},{-90,0}}, color={0,0,0}), 
     510                Line(points={{70,0},{90,0}}, color={0,0,0}), 
     511                Line(points={{0,-100},{0,-70}}, color={0,0,127}), 
    512512                Text( 
    513                   extent={{-150,70},{150,110}},  
    514                   textString="%name",  
     513                  extent={{-150,70},{150,110}}, 
     514                  textString="%name", 
    515515                  lineColor={0,0,255})}), 
    516516            Diagram(coordinateSystem( 
     
    518518                extent={{-100,-100},{100,100}}, 
    519519                grid={1,1}), graphics={ 
    520                 Line(points={{-70,0},{-90,0}}, color={0,0,0}),  
    521                 Line(points={{70,0},{90,0}}, color={0,0,0}),  
     520                Line(points={{-70,0},{-90,0}}, color={0,0,0}), 
     521                Line(points={{70,0},{90,0}}, color={0,0,0}), 
    522522                Line(points={{0,-100},{0,-70}}, color={0,0,255})})); 
    523523        end RelativeSensor; 
    524524      end Sensors; 
    525  
     525       
    526526      package Interfaces  
    527527        partial model Bearing  
     
    558558           
    559559        end Bearing; 
    560  
     560         
    561561        partial model TwoFlangesAndBearing  
    562562          "Base class for a equation-based component with two rotational 1D flanges and one rotational 1D bearing flange"  
     
    586586          phi_b = flange_b.phi - bearing.phi; 
    587587        end TwoFlangesAndBearing; 
    588  
     588         
    589589        partial model TwoFlangesAndBearingH  
    590590          "Base class for a hierarchically composed component with two rotational 1D flanges and one rotational bearing flange"  
     
    639639        end TwoFlangesAndBearingH; 
    640640      end Interfaces; 
    641  
     641       
    642642      package Types  
    643643        "Constants and types with choices, especially to build menus"  
     
    744744        end InitRel; 
    745745      end Types; 
    746  
     746       
    747747      model GearEfficiency "Obsolete component (use model LossyGear instead)"  
    748         extends Modelica.Mechanics.Rotational.Interfaces.PartialGear; 
     748        extends  
     749          ObsoleteModelica3.Mechanics.Rotational.Interfaces.TwoFlangesAndBearing; 
    749750        extends ObsoleteModelica3.Icons.ObsoleteBlock; 
    750751         
     
    894895        flange_b.tau = -(if driving_a then eta*flange_a.tau else flange_a.tau/eta); 
    895896      end GearEfficiency; 
    896  
     897       
    897898      model Gear "Realistic model of a gearbox"  
    898899        extends  
     
    984985                fillPattern=FillPattern.Solid),  
    985986              Line(points={{-36,25},{-3,25}}, color={128,128,128})})); 
     987         
    986988        Modelica.Mechanics.Rotational.IdealGear gearRatio(final ratio=ratio)  
    987989          annotation (Placement(transformation(extent={{-70,-10},{-50,10}}, 
     
    992994                rotation=0))); 
    993995        Modelica.Mechanics.Rotational.ElastoBacklash elastoBacklash( 
    994           final b=b,  
    995           final c=c,  
    996           final phi_rel0=0,  
     996          final b=b, 
     997          final c=c, 
     998          final phi_rel0=0, 
    997999          final d=d) annotation (Placement(transformation(extent={{50,-10},{70,10}}, 
    9981000                rotation=0))); 
     
    10121014        connect(elastoBacklash.flange_b, flange_b)  
    10131015          annotation (Line(points={{70,0},{100,0}}, color={0,0,0})); 
    1014         connect(gearRatio.bearing, adapter.flange_b) annotation (Line(points={{-60,-10}, 
    1015                 {-60,-40},{6.12323e-016,-40},{6.12323e-016,-50}},      color={0,0,0})); 
    10161016        connect(gearEfficiency.bearing, adapter.flange_b) annotation (Line(points={{-20,-10}, 
    10171017                {-20,-40},{6.12323e-016,-40},{6.12323e-016,-50}},           color={ 
    10181018                0,0,0})); 
    1019         connect(bearingFriction.bearing, adapter.flange_b) annotation (Line(points={{20,-10}, 
    1020                 {20,-40},{6.12323e-016,-40},{6.12323e-016,-50}},           color={0, 
    1021                 0,0})); 
     1019        connect(bearingFriction.support, adapter.flange_b) annotation (Line( 
     1020            points={{20,-10},{20,-40},{6.12323e-016,-40},{6.12323e-016,-50}},  
     1021            color={0,0,0},  
     1022            smooth=Smooth.None)); 
     1023        connect(gearRatio.support, adapter.flange_b) annotation (Line( 
     1024            points={{-60,-10},{-60,-40},{6.12323e-016,-40},{6.12323e-016,-50}},  
     1025               
     1026            color={0,0,0},  
     1027            smooth=Smooth.None)); 
    10221028      end Gear; 
    10231029    end Rotational;