Changeset 771 for trunk/ObsoleteModelica3.mo
- Timestamp:
- 11/04/07 20:26:53 (13 months ago)
- Files:
-
- 1 modified
-
trunk/ObsoleteModelica3.mo (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ObsoleteModelica3.mo
r770 r771 323 323 annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100, 324 324 -100},{100,100}}), graphics={ 325 Text(extent={{-138,164},{138,104}}, textString="%name"), 325 Text(extent={{-138,164},{138,104}}, textString="%name"), 326 326 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), 331 331 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, 336 336 textString="e")}), 337 337 Documentation(info="<html> … … 455 455 extent={{-100,-100},{100,100}}, 456 456 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}), 459 459 Text( 460 extent={{150,80},{-150,120}}, 461 textString="%name", 460 extent={{150,80},{-150,120}}, 461 textString="%name", 462 462 lineColor={0,0,255})}), 463 463 Diagram(coordinateSystem( … … 467 467 0,0}), Line(points={{70,0},{100,0}}, color={0,0,255})})); 468 468 end AbsoluteSensor; 469 469 470 470 partial model RelativeSensor 471 471 "Base model to measure a single relative variable between two flanges" … … 507 507 extent={{-100,-100},{100,100}}, 508 508 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}), 512 512 Text( 513 extent={{-150,70},{150,110}}, 514 textString="%name", 513 extent={{-150,70},{150,110}}, 514 textString="%name", 515 515 lineColor={0,0,255})}), 516 516 Diagram(coordinateSystem( … … 518 518 extent={{-100,-100},{100,100}}, 519 519 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}), 522 522 Line(points={{0,-100},{0,-70}}, color={0,0,255})})); 523 523 end RelativeSensor; 524 524 end Sensors; 525 525 526 526 package Interfaces 527 527 partial model Bearing … … 558 558 559 559 end Bearing; 560 560 561 561 partial model TwoFlangesAndBearing 562 562 "Base class for a equation-based component with two rotational 1D flanges and one rotational 1D bearing flange" … … 586 586 phi_b = flange_b.phi - bearing.phi; 587 587 end TwoFlangesAndBearing; 588 588 589 589 partial model TwoFlangesAndBearingH 590 590 "Base class for a hierarchically composed component with two rotational 1D flanges and one rotational bearing flange" … … 639 639 end TwoFlangesAndBearingH; 640 640 end Interfaces; 641 641 642 642 package Types 643 643 "Constants and types with choices, especially to build menus" … … 744 744 end InitRel; 745 745 end Types; 746 746 747 747 model GearEfficiency "Obsolete component (use model LossyGear instead)" 748 extends Modelica.Mechanics.Rotational.Interfaces.PartialGear; 748 extends 749 ObsoleteModelica3.Mechanics.Rotational.Interfaces.TwoFlangesAndBearing; 749 750 extends ObsoleteModelica3.Icons.ObsoleteBlock; 750 751 … … 894 895 flange_b.tau = -(if driving_a then eta*flange_a.tau else flange_a.tau/eta); 895 896 end GearEfficiency; 896 897 897 898 model Gear "Realistic model of a gearbox" 898 899 extends … … 984 985 fillPattern=FillPattern.Solid), 985 986 Line(points={{-36,25},{-3,25}}, color={128,128,128})})); 987 986 988 Modelica.Mechanics.Rotational.IdealGear gearRatio(final ratio=ratio) 987 989 annotation (Placement(transformation(extent={{-70,-10},{-50,10}}, … … 992 994 rotation=0))); 993 995 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, 997 999 final d=d) annotation (Placement(transformation(extent={{50,-10},{70,10}}, 998 1000 rotation=0))); … … 1012 1014 connect(elastoBacklash.flange_b, flange_b) 1013 1015 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}));1016 1016 connect(gearEfficiency.bearing, adapter.flange_b) annotation (Line(points={{-20,-10}, 1017 1017 {-20,-40},{6.12323e-016,-40},{6.12323e-016,-50}}, color={ 1018 1018 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)); 1022 1028 end Gear; 1023 1029 end Rotational;
