Changeset 793

Show
Ignore:
Timestamp:
11/14/07 09:24:00 (13 months ago)
Author:
AHaumer
Message:

some cosmetic changes ...

Location:
Modelica/branches/maintenance/2.2.1/Modelica/Mechanics
Files:
2 modified

Legend:

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

    r769 r793  
    11package Rotational  
    22  "Library to model 1-dimensional, rotational mechanical systems"  
     3  extends Modelica.Icons.Library2; 
     4  import SI = Modelica.SIunits; 
     5 
     6 annotation(preferedView="info", 
     7    Window( 
     8      x=0.05, 
     9      y=0.09, 
     10      width=0.43, 
     11      height=0.63, 
     12      library=1, 
     13      autolayout=1), 
     14    Documentation(info="<html> 
     15  
     16<p> 
     17Library <b>Rotational</b> is a <b>free</b> Modelica package providing 
     181-dimensional, rotational mechanical components to model in a convenient way 
     19drive trains with frictional losses. A typical, simple example is shown 
     20in the next figure: 
     21</p> 
     22  
     23<p><img src=\"../Images/Rotational/driveExample.png\"></p> 
     24  
     25<p> 
     26For an introduction, have especially a look at: 
     27</p> 
     28<ul> 
     29<li> <a href=\"Modelica://Modelica.Mechanics.Rotational.UsersGuide\">Rotational.UsersGuide</a> 
     30     discusses the most important aspects how to use this library.</li> 
     31<li> <a href=\"Modelica://Modelica.Mechanics.Rotational.Examples\">Rotational.Examples</a> 
     32     contains examples that demonstrate the usage of this library.</li> 
     33</ul> 
     34  
     35<p> 
     36Copyright &copy; 1998-2006, Modelica Association and DLR. 
     37</p> 
     38<p> 
     39<i>This Modelica package is <b>free</b> software; it can be redistributed and/or modified 
     40under the terms of the <b>Modelica license</b>, see the license conditions 
     41and the accompanying <b>disclaimer</b>  
     42<a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 
     43</p><br> 
     44</HTML> 
     45", revisions=""), 
     46    Icon( 
     47      Line(points=[-83, -66; -63, -66], style(color=0)), 
     48      Line(points=[36, -68; 56, -68], style(color=0)), 
     49      Line(points=[-73, -66; -73, -91], style(color=0)), 
     50      Line(points=[46, -68; 46, -91], style(color=0)), 
     51      Line(points=[-83, -29; -63, -29], style(color=0)), 
     52      Line(points=[36, -32; 56, -32], style(color=0)), 
     53      Line(points=[-73, -9; -73, -29], style(color=0)), 
     54      Line(points=[46, -12; 46, -32], style(color=0)), 
     55      Line(points=[-73, -91; 46, -91], style(color=0)), 
     56      Rectangle(extent=[-47, -17; 27, -80], style( 
     57          color=0, 
     58          gradient=2, 
     59          fillColor=8)), 
     60      Rectangle(extent=[-87, -41; -47, -54], style( 
     61          color=0, 
     62          gradient=2, 
     63          fillColor=8)), 
     64      Rectangle(extent=[27, -42; 66, -56], style( 
     65          color=0, 
     66          gradient=2, 
     67          fillColor=8)))); 
     68   
    369package UsersGuide "Users Guide"  
    470  annotation (DocumentationClass=true, Documentation(info="<HTML> 
     
    823889     
    824890    model ElasticBearing "Example to show possible usage of bearing flange"  
    825       extends Icons.Example; 
     891      extends Modelica.Icons.Example; 
    826892      Modelica.Mechanics.Rotational.Inertia shaft  
    827893        annotation (extent=[-20, 40; 0, 60]); 
     
    13281394    end PowerSensor; 
    13291395  end Sensors; 
    1330   import SI = Modelica.SIunits; 
    1331    
    1332   extends Modelica.Icons.Library2; 
    1333    
    1334   annotation(preferedView="info", 
    1335     Window( 
    1336       x=0.05, 
    1337       y=0.09, 
    1338       width=0.43, 
    1339       height=0.63, 
    1340       library=1, 
    1341       autolayout=1), 
    1342     Documentation(info="<html> 
    1343   
    1344 <p> 
    1345 Library <b>Rotational</b> is a <b>free</b> Modelica package providing 
    1346 1-dimensional, rotational mechanical components to model in a convenient way 
    1347 drive trains with frictional losses. A typical, simple example is shown 
    1348 in the next figure: 
    1349 </p> 
    1350   
    1351 <p><img src=\"../Images/Rotational/driveExample.png\"></p> 
    1352   
    1353 <p> 
    1354 For an introduction, have especially a look at: 
    1355 </p> 
    1356 <ul> 
    1357 <li> <a href=\"Modelica://Modelica.Mechanics.Rotational.UsersGuide\">Rotational.UsersGuide</a> 
    1358      discusses the most important aspects how to use this library.</li> 
    1359 <li> <a href=\"Modelica://Modelica.Mechanics.Rotational.Examples\">Rotational.Examples</a> 
    1360      contains examples that demonstrate the usage of this library.</li> 
    1361 </ul> 
    1362   
    1363 <p> 
    1364 Copyright &copy; 1998-2006, Modelica Association and DLR. 
    1365 </p> 
    1366 <p> 
    1367 <i>This Modelica package is <b>free</b> software; it can be redistributed and/or modified 
    1368 under the terms of the <b>Modelica license</b>, see the license conditions 
    1369 and the accompanying <b>disclaimer</b>  
    1370 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 
    1371 </p><br> 
    1372 </HTML> 
    1373 ", revisions=""), 
    1374     Icon( 
    1375       Line(points=[-83, -66; -63, -66], style(color=0)), 
    1376       Line(points=[36, -68; 56, -68], style(color=0)), 
    1377       Line(points=[-73, -66; -73, -91], style(color=0)), 
    1378       Line(points=[46, -68; 46, -91], style(color=0)), 
    1379       Line(points=[-83, -29; -63, -29], style(color=0)), 
    1380       Line(points=[36, -32; 56, -32], style(color=0)), 
    1381       Line(points=[-73, -9; -73, -29], style(color=0)), 
    1382       Line(points=[46, -12; 46, -32], style(color=0)), 
    1383       Line(points=[-73, -91; 46, -91], style(color=0)), 
    1384       Rectangle(extent=[-47, -17; 27, -80], style( 
    1385           color=0, 
    1386           gradient=2, 
    1387           fillColor=8)), 
    1388       Rectangle(extent=[-87, -41; -47, -54], style( 
    1389           color=0, 
    1390           gradient=2, 
    1391           fillColor=8)), 
    1392       Rectangle(extent=[27, -42; 66, -56], style( 
    1393           color=0, 
    1394           gradient=2, 
    1395           fillColor=8)))); 
    13961396   
    13971397  package Interfaces  
     
    24812481          style(color=10)))); 
    24822482    Interfaces.Flange_a bearingR annotation (extent=[-70, -110; -50, -90]); 
    2483     Translational.Interfaces.Flange_a bearingT  
     2483    Modelica.Mechanics.Translational.Interfaces.Flange_a bearingT  
    24842484      annotation (extent=[50, -110; 70, -90]); 
    24852485  equation  
     
    46624662    SI.Torque tau_support "Support torque"; 
    46634663  protected  
    4664     parameter Real w_crit=2*Constants.pi*f_crit "critical frequency in [1/s]"; 
     4664    parameter Real w_crit=2*Modelica.Constants.pi*f_crit  
     4665      "critical frequency in [1/s]"; 
    46654666  public  
    46664667    Interfaces.Flange_b flange_b annotation (extent=[90, -10; 110, 10]); 
    4667     Blocks.Interfaces.RealInput w_ref(redeclare type SignalType =  
     4668    Modelica.Blocks.Interfaces.RealInput w_ref(redeclare type SignalType =  
    46684669          SI.AngularVelocity)  
    46694670      "Reference angular velocity of flange_b as input signal"  
     
    48004801     
    48014802    Interfaces.Flange_b flange_b annotation (extent=[90, -10; 110, 10]); 
    4802     Blocks.Interfaces.RealInput a( 
     4803    Modelica.Blocks.Interfaces.RealInput a( 
    48034804          redeclare type SignalType = SI.AngularAcceleration)  
    48044805      "absolute angular acceleration of flange_b as input signal"  
     
    50945095   
    50955096  model Torque "Input signal acting as external torque on a flange"  
     5097     
    50965098    Modelica.Blocks.Interfaces.RealInput tau( redeclare type SignalType =  
    50975099          SI.Torque)  
  • Modelica/branches/maintenance/2.2.1/Modelica/Mechanics/Translational.mo

    r463 r793  
    11package Translational  
    22  "Library to model 1-dimensional, translational mechanical systems"  
     3  extends Modelica.Icons.Library2; 
     4  import SI = Modelica.SIunits; 
     5 
     6  annotation(preferedView="info", 
     7    Window( 
     8      x=0.05, 
     9      y=0.09, 
     10      width=0.39, 
     11      height=0.47, 
     12      library=1, 
     13      autolayout=1), 
     14    Icon( 
     15      Line(points=[-84, -73; 66, -73], style(color=0)), 
     16      Rectangle(extent=[-81, -22; -8, -65], style( 
     17          color=0, 
     18          gradient=3, 
     19          fillColor=8, 
     20          fillPattern=1)), 
     21      Line(points=[-8, -43; -1, -43; 6, -64; 17, -23; 29, -65; 40, -23; 50, -44; 
     22              61, -44], style(color=0)), 
     23      Line(points=[-59, -73; -84, -93], style(color=0)), 
     24      Line(points=[-11, -73; -36, -93], style(color=0)), 
     25      Line(points=[-34, -73; -59, -93], style(color=0)), 
     26      Line(points=[14, -73; -11, -93], style(color=0)), 
     27      Line(points=[39, -73; 14, -93], style(color=0)), 
     28      Line(points=[63, -73; 38, -93], style(color=0))), Documentation(info="<html> 
     29<p> 
     30This package contains components to model <i>1-dimensional translational 
     31mechanical</i> systems. 
     32</p> 
     33<p> 
     34The <i>filled</i> and <i>non-filled green squares</i> at the left and 
     35right side of a component represent <i>mechanical flanges</i>. 
     36Drawing a line between such squares means that the corresponding 
     37flanges are <i>rigidly attached</i> to each other. The components of this 
     38library can be usually connected together in an arbitrary way. E.g. it is 
     39possible to connect two springs or two sliding masses with inertia directly 
     40together. 
     41<p> The only <i>connection restriction</i> is that the Coulomb friction 
     42elements (Stop) should be only connected 
     43together provided a compliant element, such as a spring, is in between. 
     44The reason is that otherwise the frictional force is not uniquely 
     45defined if the elements are stuck at the same time instant (i.e., there 
     46does not exist a unique solution) and some simulation systems may not be 
     47able to handle this situation, since this leads to a singularity during 
     48simulation. It can only be resolved in a \"clean way\" by combining the 
     49two connected friction elements into 
     50one component and resolving the ambiguity of the frictional force in the 
     51stuck mode. 
     52</p> 
     53<p> Another restriction arises if the hard stops in model Stop are used, i. e. 
     54the movement of the mass is limited by a stop at smax or smin. 
     55<font color=\"#ff0000\"> <b>This requires the states Stop.s and Stop.v</b> </font>. If these states are eliminated during the index reduction 
     56the model will not work. To avoid this any inertias should be connected via springs 
     57to the Stop element, other sliding masses, dampers or hydraulic chambers must be avoided. </p> 
     58<p> 
     59In the <i>icon</i> of every component an <i>arrow</i> is displayed in grey 
     60color. This arrow characterizes the coordinate system in which the vectors 
     61of the component are resolved. It is directed into the positive 
     62translational direction (in the mathematical sense). 
     63In the flanges of a component, a coordinate system is rigidly attached 
     64to the flange. It is called <i>flange frame</i> and is directed in parallel 
     65to the component coordinate system. As a result, e.g., the positive 
     66cut-force of a \"left\" flange (flange_a) is directed into the flange, whereas 
     67the positive cut-force of a \"right\" flange (flange_b) is directed out of the 
     68flange. A flange is described by a Modelica connector containing 
     69the following variables: 
     70</p> 
     71<pre> 
     72   SIunits.Position s  \"absolute position of flange\"; 
     73   <i>flow</i> Force f        \"cut-force in the flange\"; 
     74</pre> 
     75  
     76<p> 
     77This library is designed in a fully object oriented way in order that 
     78components can be connected together in every meaningful combination 
     79(e.g. direct connection of two springs or two shafts with inertia). 
     80As a consequence, most models lead to a system of 
     81differential-algebraic equations of <i>index 3</i> (= constraint 
     82equations have to be differentiated twice in order to arrive at 
     83a state space representation) and the Modelica translator or 
     84the simulator has to cope with this system representation. 
     85According to our present knowledge, this requires that the 
     86Modelica translator is able to symbolically differentiate equations 
     87(otherwise it is e.g. not possible to provide consistent initial 
     88conditions; even if consistent initial conditions are present, most 
     89numerical DAE integrators can cope at most with index 2 DAEs). 
     90</p> 
     91  
     92<dl> 
     93<dt><b>Main Author:</b></dt> 
     94<dd>Peter Beater <br> 
     95    Universit&auml;t Paderborn, Abteilung Soest<br> 
     96    Fachbereich Maschinenbau/Automatisierungstechnik<br> 
     97    L&uuml;becker Ring 2 <br> 
     98    D 59494 Soest <br> 
     99    Germany <br> 
     100    email: <A HREF=\"mailto:Beater@mailso.uni-paderborn.de\">Beater@mailso.uni-paderborn.de</A><br> 
     101</dd> 
     102</dl> 
     103  
     104<p> 
     105Copyright &copy; 1998-2006, Modelica Association and Universit&auml;t Paderborn, FB 12. 
     106</p> 
     107<p> 
     108<i>This Modelica package is <b>free</b> software; it can be redistributed and/or modified 
     109under the terms of the <b>Modelica license</b>, see the license conditions 
     110and the accompanying <b>disclaimer</b>  
     111<a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 
     112</p><br> 
     113  
     114</HTML> 
     115", revisions="<html> 
     116<ul> 
     117<li><i>Version 1.0 (January 5, 2000)</i> 
     118       by Peter Beater <br> 
     119       Realized a first version based on Modelica library Mechanics.Rotational 
     120       by Martin Otter and an existing Dymola library onedof.lib by Peter Beater. 
     121       <br> 
     122<li><i>Version 1.01 (July 18, 2001)</i> 
     123       by Peter Beater <br> 
     124       Assert statement added to \"Stop\", small bug fixes in examples. 
     125       <br><br> 
     126</li> 
     127</ul> 
     128</html>")); 
     129   
    3130  package Examples "Demonstration examples of the components of this package"  
    4131     
     
    9851112  end Sensors; 
    9861113   
    987   import SI = Modelica.SIunits; 
    988    
    989   extends Modelica.Icons.Library2; 
    990    
    991   annotation(preferedView="info", 
    992     Window( 
    993       x=0.05, 
    994       y=0.09, 
    995       width=0.39, 
    996       height=0.47, 
    997       library=1, 
    998       autolayout=1), 
    999     Icon( 
    1000       Line(points=[-84, -73; 66, -73], style(color=0)), 
    1001       Rectangle(extent=[-81, -22; -8, -65], style( 
    1002           color=0, 
    1003           gradient=3, 
    1004           fillColor=8, 
    1005           fillPattern=1)), 
    1006       Line(points=[-8, -43; -1, -43; 6, -64; 17, -23; 29, -65; 40, -23; 50, -44; 
    1007               61, -44], style(color=0)), 
    1008       Line(points=[-59, -73; -84, -93], style(color=0)), 
    1009       Line(points=[-11, -73; -36, -93], style(color=0)), 
    1010       Line(points=[-34, -73; -59, -93], style(color=0)), 
    1011       Line(points=[14, -73; -11, -93], style(color=0)), 
    1012       Line(points=[39, -73; 14, -93], style(color=0)), 
    1013       Line(points=[63, -73; 38, -93], style(color=0))), Documentation(info="<html> 
    1014 <p> 
    1015 This package contains components to model <i>1-dimensional translational 
    1016 mechanical</i> systems. 
    1017 </p> 
    1018 <p> 
    1019 The <i>filled</i> and <i>non-filled green squares</i> at the left and 
    1020 right side of a component represent <i>mechanical flanges</i>. 
    1021 Drawing a line between such squares means that the corresponding 
    1022 flanges are <i>rigidly attached</i> to each other. The components of this 
    1023 library can be usually connected together in an arbitrary way. E.g. it is 
    1024 possible to connect two springs or two sliding masses with inertia directly 
    1025 together. 
    1026 <p> The only <i>connection restriction</i> is that the Coulomb friction 
    1027 elements (Stop) should be only connected 
    1028 together provided a compliant element, such as a spring, is in between. 
    1029 The reason is that otherwise the frictional force is not uniquely 
    1030 defined if the elements are stuck at the same time instant (i.e., there 
    1031 does not exist a unique solution) and some simulation systems may not be 
    1032 able to handle this situation, since this leads to a singularity during 
    1033 simulation. It can only be resolved in a \"clean way\" by combining the 
    1034 two connected friction elements into 
    1035 one component and resolving the ambiguity of the frictional force in the 
    1036 stuck mode. 
    1037 </p> 
    1038 <p> Another restriction arises if the hard stops in model Stop are used, i. e. 
    1039 the movement of the mass is limited by a stop at smax or smin. 
    1040 <font color=\"#ff0000\"> <b>This requires the states Stop.s and Stop.v</b> </font>. If these states are eliminated during the index reduction 
    1041 the model will not work. To avoid this any inertias should be connected via springs 
    1042 to the Stop element, other sliding masses, dampers or hydraulic chambers must be avoided. </p> 
    1043 <p> 
    1044 In the <i>icon</i> of every component an <i>arrow</i> is displayed in grey 
    1045 color. This arrow characterizes the coordinate system in which the vectors 
    1046 of the component are resolved. It is directed into the positive 
    1047 translational direction (in the mathematical sense). 
    1048 In the flanges of a component, a coordinate system is rigidly attached 
    1049 to the flange. It is called <i>flange frame</i> and is directed in parallel 
    1050 to the component coordinate system. As a result, e.g., the positive 
    1051 cut-force of a \"left\" flange (flange_a) is directed into the flange, whereas 
    1052 the positive cut-force of a \"right\" flange (flange_b) is directed out of the 
    1053 flange. A flange is described by a Modelica connector containing 
    1054 the following variables: 
    1055 </p> 
    1056 <pre> 
    1057    SIunits.Position s  \"absolute position of flange\"; 
    1058    <i>flow</i> Force f        \"cut-force in the flange\"; 
    1059 </pre> 
    1060  
    1061 <p> 
    1062 This library is designed in a fully object oriented way in order that 
    1063 components can be connected together in every meaningful combination 
    1064 (e.g. direct connection of two springs or two shafts with inertia). 
    1065 As a consequence, most models lead to a system of 
    1066 differential-algebraic equations of <i>index 3</i> (= constraint 
    1067 equations have to be differentiated twice in order to arrive at 
    1068 a state space representation) and the Modelica translator or 
    1069 the simulator has to cope with this system representation. 
    1070 According to our present knowledge, this requires that the 
    1071 Modelica translator is able to symbolically differentiate equations 
    1072 (otherwise it is e.g. not possible to provide consistent initial 
    1073 conditions; even if consistent initial conditions are present, most 
    1074 numerical DAE integrators can cope at most with index 2 DAEs). 
    1075 </p> 
    1076  
    1077 <dl> 
    1078 <dt><b>Main Author:</b></dt> 
    1079 <dd>Peter Beater <br> 
    1080     Universit&auml;t Paderborn, Abteilung Soest<br> 
    1081     Fachbereich Maschinenbau/Automatisierungstechnik<br> 
    1082     L&uuml;becker Ring 2 <br> 
    1083     D 59494 Soest <br> 
    1084     Germany <br> 
    1085     email: <A HREF=\"mailto:Beater@mailso.uni-paderborn.de\">Beater@mailso.uni-paderborn.de</A><br> 
    1086 </dd> 
    1087 </dl> 
    1088  
    1089 <p> 
    1090 Copyright &copy; 1998-2006, Modelica Association and Universit&auml;t Paderborn, FB 12. 
    1091 </p> 
    1092 <p> 
    1093 <i>This Modelica package is <b>free</b> software; it can be redistributed and/or modified 
    1094 under the terms of the <b>Modelica license</b>, see the license conditions 
    1095 and the accompanying <b>disclaimer</b>  
    1096 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 
    1097 </p><br> 
    1098  
    1099 </HTML> 
    1100 ", revisions="<html> 
    1101 <ul> 
    1102 <li><i>Version 1.0 (January 5, 2000)</i> 
    1103        by Peter Beater <br> 
    1104        Realized a first version based on Modelica library Mechanics.Rotational 
    1105        by Martin Otter and an existing Dymola library onedof.lib by Peter Beater. 
    1106        <br> 
    1107 <li><i>Version 1.01 (July 18, 2001)</i> 
    1108        by Peter Beater <br> 
    1109        Assert statement added to \"Stop\", small bug fixes in examples. 
    1110        <br><br> 
    1111 </li> 
    1112 </ul> 
    1113 </html>")); 
    1114    
    11151114  package Interfaces  
    11161115    "Interfaces for 1-dim. translational mechanical components"  
     
    15741573A negative force at flange flange_a moves the sliding mass to the negative direction. 
    15751574</p> 
    1576  
     1575  
    15771576</html> 
    15781577", revisions="<html> 
     
    16901689continuous/discrete systems of equations which have to be solved by appropriate 
    16911690numerical methods. The method is described in: </P> 
    1692  
     1691  
    16931692<dl> 
    16941693Otter M., Elmqvist H., and Mattsson S.E. (1999): 
     
    17141713</DD> 
    17151714</DL> 
    1716  
     1715  
    17171716</HTML> 
    17181717", revisions="<html> 
     
    19041903Rod <i>without inertia</i> and two rigidly connected flanges. 
    19051904</p> 
    1906  
     1905  
    19071906</HTML> 
    19081907", revisions="<html> 
     
    19731972a coupling of the slidin mass with the housing via a spring. 
    19741973</p> 
    1975  
     1974  
    19761975</HTML> 
    19771976", revisions="<html> 
     
    20262025between two sliding masses. 
    20272026</p> 
    2028  
     2027  
    20292028</HTML> 
    20302029", revisions="<html> 
     
    21722171the contact of a sliding mass with the housing. 
    21732172</p> 
    2174  
     2173  
    21752174</HTML> 
    21762175", revisions="<html> 
     
    24642463blocks of the block library Modelica.Blocks.Source. 
    24652464</p> 
    2466  
     2465  
    24672466</HTML> 
    24682467", revisions="<html> 
     
    26372636     position. 
    26382637</ul> 
    2639  
     2638  
    26402639</HTML> 
    26412640", revisions="<html> 
     
    26782677blocks of Modelica.Blocks.Source. 
    26792678</p> 
    2680  
     2679  
    26812680</HTML> 
    26822681", revisions="<html> 
     
    27532752velocity of model mass1 or of model mass2 as state variables. 
    27542753</p> 
    2755  
     2754  
    27562755</HTML> 
    27572756", revisions="<html>