Changeset 1090 for branches/maintenance
- Timestamp:
- 02/27/08 22:01:26 (9 months ago)
- Location:
- branches/maintenance/3.0/Modelica/Mechanics/MultiBody
- Files:
-
- 2 modified
-
Sensors.mo (modified) (30 diffs)
-
Visualizers.mo (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/maintenance/3.0/Modelica/Mechanics/MultiBody/Sensors.mo
r1050 r1090 6 6 import SI = Modelica.SIunits; 7 7 8 Blocks.Interfaces.RealOutput r[3](each final quantity="Position", each final unit = "m") if get_r 8 Blocks.Interfaces.RealOutput r[3](each final quantity="Position", each 9 final unit = "m") if get_r 9 10 "Absolute position vector frame_a.r_0 resolved in frame defined by resolveInFrame" 10 11 annotation (Placement(transformation( … … 12 13 extent={{10,-10},{-10,10}}, 13 14 rotation=90))); 14 Blocks.Interfaces.RealOutput v[3](each final quantity="Velocity", each final unit = "m/s") if get_v "Absolute velocity vector" 15 Blocks.Interfaces.RealOutput v[3](each final quantity="Velocity", each 16 final unit = "m/s") if get_v 17 "Absolute velocity vector" 15 18 annotation (Placement(transformation( 16 19 origin={-60,-110}, 17 20 extent={{10,-10},{-10,10}}, 18 21 rotation=90))); 19 Blocks.Interfaces.RealOutput a[3](each final quantity="Acceleration", each final unit = "m/s2") if get_a "Absolute acceleration vector" 22 Blocks.Interfaces.RealOutput a[3](each final quantity="Acceleration", each 23 final unit = "m/s2") if get_a 24 "Absolute acceleration vector" 20 25 annotation (Placement(transformation( 21 26 origin={-20,-110}, 22 27 extent={{10,-10},{-10,10}}, 23 28 rotation=90))); 24 Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each final unit = "rad", each displayUnit="deg") if get_angles 29 Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each 30 final unit = "rad", each 31 displayUnit = "deg") if get_angles 25 32 "Angles to rotate world frame into frame_a via 'sequence'" 26 33 annotation (Placement(transformation( … … 28 35 extent={{10,-10},{-10,10}}, 29 36 rotation=90))); 30 Blocks.Interfaces.RealOutput w[3](each final quantity="AngularVelocity", each final unit = "1/s") if get_w 37 Blocks.Interfaces.RealOutput w[3](each final quantity="AngularVelocity", each 38 final unit = "1/s") if get_w 31 39 "Absolute angular velocity vector" 32 40 annotation (Placement(transformation( … … 34 42 extent={{10,-10},{-10,10}}, 35 43 rotation=90))); 36 Blocks.Interfaces.RealOutput z[3](each final quantity="AngularAcceleration", each final unit = "1/s2") if get_z 44 Blocks.Interfaces.RealOutput z[3](each final quantity="AngularAcceleration", each 45 final unit = "1/s2") if get_z 37 46 "Absolute angular acceleration vector" 38 47 annotation (Placement(transformation( … … 537 546 annotation(Dialog(tab="Advanced", group="if get_v_rel or get_a_rel or get_z_rel", enable=get_v_rel or get_a_rel or get_z_rel)); 538 547 539 Blocks.Interfaces.RealOutput r_rel[3](each final quantity="Position", each final unit = "m") if get_r_rel 548 Blocks.Interfaces.RealOutput r_rel[3](each final quantity="Position", each 549 final unit = "m") if get_r_rel 540 550 "Relative position vector frame_b.r_0 - frame_a.r_0 resolved in frame defined by resolveInFrame" 541 551 annotation (Placement(transformation( … … 543 553 extent={{10,-10},{-10,10}}, 544 554 rotation=90))); 545 Blocks.Interfaces.RealOutput v_rel[3](each final quantity="Velocity", each final unit = "m/s") if get_v_rel 555 Blocks.Interfaces.RealOutput v_rel[3](each final quantity="Velocity", each 556 final unit = "m/s") if get_v_rel 546 557 "Relative velocity vector" 547 558 annotation (Placement(transformation( … … 549 560 extent={{10,-10},{-10,10}}, 550 561 rotation=90))); 551 Blocks.Interfaces.RealOutput a_rel[3](each final quantity="Position", each final unit = "m") if get_a_rel 562 Blocks.Interfaces.RealOutput a_rel[3](each final quantity="Acceleration", 563 each final unit="m/s2") if get_a_rel 552 564 "Relative acceleration vector" 553 565 annotation (Placement(transformation( … … 555 567 extent={{10,-10},{-10,10}}, 556 568 rotation=90))); 557 Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each final unit = "rad", each displayUnit="deg") if get_angles 569 Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each 570 final unit = "rad", each 571 displayUnit = "deg") if get_angles 558 572 "Angles to rotate frame_a into frame_b via 'sequence'" 559 573 annotation (Placement(transformation( … … 561 575 extent={{10,-10},{-10,10}}, 562 576 rotation=90))); 563 Blocks.Interfaces.RealOutput w_rel[3](each final quantity="AngularVelocity", each final unit = "1/s") if get_w_rel 577 Blocks.Interfaces.RealOutput w_rel[3](each final quantity="AngularVelocity", each 578 final unit = "1/s") if get_w_rel 564 579 "Relative angular velocity vector" 565 580 annotation (Placement(transformation( … … 567 582 extent={{10,-10},{-10,10}}, 568 583 rotation=90))); 569 Blocks.Interfaces.RealOutput z_rel[3](each final quantity="AngularAcceleration", each final unit = "1/s2") if get_z_rel 584 Blocks.Interfaces.RealOutput z_rel[3](each final quantity="AngularAcceleration", each 585 final unit = "1/s2") if get_z_rel 570 586 "Relative angular acceleration vector" 571 587 annotation (Placement(transformation( … … 987 1003 "Measure absolute position vector of the origin of a frame connector" 988 1004 extends Internal.PartialAbsoluteSensor; 989 Blocks.Interfaces.RealOutput r[3](each final quantity="Position", each final unit = "m") 1005 Blocks.Interfaces.RealOutput r[3](each final quantity="Position", each 1006 final unit = "m") 990 1007 "Absolute position vector resolved in frame defined by resolveInFrame" 991 1008 annotation (Placement(transformation( … … 1015 1032 annotation (Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100, 1016 1033 -100},{100,100}}), graphics), Icon(coordinateSystem( 1017 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), 1018 graphics={1034 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics 1035 ={ 1019 1036 Line( 1020 1037 points={{70,0},{100,0}}, … … 1107 1124 "Measure absolute velocity vector of origin of frame connector" 1108 1125 extends Internal.PartialAbsoluteSensor; 1109 Blocks.Interfaces.RealOutput v[3](each final quantity="Velocity", each final unit = "m/s") 1126 Blocks.Interfaces.RealOutput v[3](each final quantity="Velocity", each 1127 final unit = "m/s") 1110 1128 "Absolute velocity vector resolved in frame defined by resolveInFrame" 1111 1129 annotation (Placement(transformation( … … 1242 1260 transformation(extent={{-116,-16},{-84,16}}, rotation=0))); 1243 1261 1244 Modelica.Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each final unit = "rad", each displayUnit="deg") 1262 Modelica.Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each 1263 final unit = "rad", each 1264 displayUnit = "deg") 1245 1265 "Angles to rotate world frame into frame_a via 'sequence'" 1246 1266 annotation (Placement(transformation( … … 1326 1346 "Measure absolute angular velocity of frame connector" 1327 1347 extends Internal.PartialAbsoluteSensor; 1328 Blocks.Interfaces.RealOutput w[3](each final quantity="AngularVelocity", each final unit = "1/s") 1348 Blocks.Interfaces.RealOutput w[3](each final quantity="AngularVelocity", each 1349 final unit = "1/s") 1329 1350 "Absolute angular velocity vector of frame_a with respect to world frame, resolved in frame defined by resolveInFrame" 1330 1351 annotation (Placement(transformation( … … 1473 1494 annotation (Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100, 1474 1495 -100},{100,100}}), graphics), Icon(coordinateSystem( 1475 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), 1476 graphics={1496 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics 1497 ={ 1477 1498 Line( 1478 1499 points={{0,-70},{0,-100}}, … … 1564 1585 "Measure relative velocity vector between the origins of two frame connectors" 1565 1586 extends Internal.PartialRelativeSensor; 1566 Blocks.Interfaces.RealOutput v_rel[3](each final quantity="Velocity", each final unit = "m/s") 1587 Blocks.Interfaces.RealOutput v_rel[3](each final quantity="Velocity", each 1588 final unit = "m/s") 1567 1589 "Relative velocity vector resolved in frame defined by resolveInFrame" 1568 1590 annotation (Placement(transformation( … … 1696 1718 transformation(extent={{84,-16},{116,16}}, rotation=0))); 1697 1719 1698 Modelica.Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each final unit = "rad", displayUnit="deg") 1720 Modelica.Blocks.Interfaces.RealOutput angles[3](each final quantity="Angles", each 1721 final unit = "rad", displayUnit="deg") 1699 1722 "Angles to rotate frame_a into frame_b via 'sequence'" 1700 1723 annotation (Placement(transformation( … … 1793 1816 "Measure relative angular velocity between two frame connectors" 1794 1817 extends Internal.PartialRelativeSensor; 1795 Blocks.Interfaces.RealOutput w_rel[3](each final quantity="AngularVelocity", each final unit = "1/s") 1818 Blocks.Interfaces.RealOutput w_rel[3](each final quantity="AngularVelocity", each 1819 final unit = "1/s") 1796 1820 "Relative angular velocity vector between frame_a and frame_b resolved in frame defined by resolveInFrame" 1797 1821 annotation (Placement(transformation( … … 1817 1841 annotation (Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100, 1818 1842 -100},{100,100}}), graphics), Icon(coordinateSystem( 1819 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), 1820 graphics={1843 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics 1844 ={ 1821 1845 Line( 1822 1846 points={{0,-70},{0,-100}}, … … 2030 2054 import SI = Modelica.SIunits; 2031 2055 2032 Modelica.Blocks.Interfaces.RealOutput force[3](final quantity="Force", final unit="N") 2056 Modelica.Blocks.Interfaces.RealOutput force[3](final quantity="Force", final unit 2057 = "N") 2033 2058 "Cut force resolved in frame defined by resolveInFrame" 2034 2059 annotation (Placement(transformation( … … 2290 2315 import Modelica.Mechanics.MultiBody.Types; 2291 2316 2292 Modelica.Blocks.Interfaces.RealOutput force[3](final quantity="Force", final unit="N") 2317 Modelica.Blocks.Interfaces.RealOutput force[3](final quantity="Force", final unit 2318 = "N") 2293 2319 "Cut force resolved in frame defined by resolveInFrame" 2294 2320 annotation (Placement(transformation( … … 2538 2564 iconTransformation(extent={{84,-15},{116,17}}))); 2539 2565 2540 Blocks.Interfaces.RealInput r_in[3] (each final quantity="Position", each final unit = "m")2566 Blocks.Interfaces.RealInput r_in[3] 2541 2567 "Input vector resolved in frame defined by frame_r_in" 2542 2568 annotation (Placement(transformation(extent={{-20,-20},{20,20}}, 2543 2569 rotation=-90, 2544 2570 origin={0,120}))); 2545 Blocks.Interfaces.RealOutput r_out[3] (each final quantity="Position", each final unit = "m")2571 Blocks.Interfaces.RealOutput r_out[3] 2546 2572 "Input vector r_in resolved in frame defined by frame_r_out" 2547 2573 annotation (Placement(transformation(extent={{-10,-10},{10,10}}, … … 2648 2674 iconTransformation(extent={{84,65},{116,97}}))); 2649 2675 2650 Blocks.Interfaces.RealInput r_in[3] (each final quantity="Position", each final unit = "m")2676 Blocks.Interfaces.RealInput r_in[3] 2651 2677 "Input vector resolved in frame defined by frame_r_in" 2652 2678 annotation (Placement(transformation(extent={{-20,-20},{20,20}}, 2653 2679 rotation=-90, 2654 2680 origin={0,120}))); 2655 Blocks.Interfaces.RealOutput r_out[3] (each final quantity="Position", each final unit = "m")2681 Blocks.Interfaces.RealOutput r_out[3] 2656 2682 "Input vector r_in resolved in frame defined by frame_r_out" 2657 2683 annotation (Placement(transformation(extent={{-10,-10},{10,10}}, … … 2672 2698 annotation (Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100, 2673 2699 -100},{100,100}}), graphics), Icon(coordinateSystem( 2674 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), 2675 graphics={2700 preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics 2701 ={ 2676 2702 Line( 2677 2703 points={{0,-70},{0,-100}}, … … 3118 3144 origin={100,0}))); 3119 3145 3120 Blocks.Interfaces.RealInput r_in[3] (each final quantity="Position", each final unit = "m")3146 Blocks.Interfaces.RealInput r_in[3] 3121 3147 "Input vector resolved in frame defined by frame_r_in" 3122 3148 annotation (Placement(transformation(extent={{-20,-20},{20,20}}, 3123 3149 rotation=-90, 3124 3150 origin={0,120}))); 3125 Blocks.Interfaces.RealOutput r_out[3] (each final quantity="Position", each final unit = "m")3151 Blocks.Interfaces.RealOutput r_out[3] 3126 3152 "Input vector r_in resolved in frame defined by frame_r_out" 3127 3153 annotation (Placement(transformation(extent={{-10,-10},{10,10}}, … … 3221 3247 "Frame in which vector r_out (= r_in in other frame) is resolved (1: world, 2: frame_a, 3: frame_b, 4: frame_resolve)"; 3222 3248 3223 Blocks.Interfaces.RealInput r_in[3] (each final quantity="Position", each final unit = "m")3249 Blocks.Interfaces.RealInput r_in[3] 3224 3250 "Input vector resolved in frame defined by frame_r_in" 3225 3251 annotation (Placement(transformation(extent={{-20,-20},{20,20}}, 3226 3252 rotation=-90, 3227 3253 origin={0,120}))); 3228 Blocks.Interfaces.RealOutput r_out[3] (each final quantity="Position", each final unit = "m")3254 Blocks.Interfaces.RealOutput r_out[3] 3229 3255 "Input vector r_in resolved in frame defined by frame_r_out" 3230 3256 annotation (Placement(transformation(extent={{-10,-10},{10,10}}, … … 3316 3342 3317 3343 annotation ( 3318 3319 3344 Documentation(info=" 3320 3345 <HTML> … … 3391 3416 3392 3417 annotation ( 3393 3394 3418 Documentation(info=" 3395 3419 <HTML> … … 3462 3486 extends 3463 3487 Modelica.Mechanics.MultiBody.Sensors.Internal.PartialCutForceBaseSensor; 3464 Modelica.Blocks.Interfaces.RealOutput force[3](final quantity="Force", final unit="N") 3488 Modelica.Blocks.Interfaces.RealOutput force[3](final quantity="Force", final unit 3489 = "N") 3465 3490 "Cut force resolved in frame defined by resolveInFrame" 3466 3491 annotation (Placement(transformation( -
branches/maintenance/3.0/Modelica/Mechanics/MultiBody/Visualizers.mo
r1050 r1090 87 87 annotation (Dialog(group="if animation = true", enable=animation)); 88 88 annotation ( 89 90 89 Documentation(info="<HTML> 91 90 <p> … … 171 170 fillPattern=FillPattern.Solid), 172 171 Polygon( 173 points={{-98,34},{-64,46},{0,30},{74,56},{50,32},{-10,12},{-98,34}}, 172 points={{-98,34},{-64,46},{0,30},{74,56},{50,32},{-10,12},{-98,34}}, 173 174 174 lineColor={255,255,255}, 175 175 fillColor={160,160,164}, … … 259 259 260 260 annotation ( 261 262 261 Icon(coordinateSystem( 263 262 preserveAspectRatio=true, … … 754 753 annotation (Dialog(group="if animation = true", enable=animation)); 755 754 756 Modelica.Blocks.Interfaces.RealInput r_head[3](each final quantity="Position", each final unit="m") 755 Modelica.Blocks.Interfaces.RealInput r_head[3](each final quantity="Position", each 756 final unit = "m") 757 757 "Position vector from origin of frame_a to head of arrow, resolved in frame_a" 758 758 annotation (Placement(transformation( … … 1105 1105 input Types.ShapeExtra extra=0.0 1106 1106 "Additional size data for some of the shape types" annotation(Dialog); 1107 input Integer color[3]={255,0,0} "Color of shape"annotation(Dialog);1107 input Real color[3]={255,0,0} "Color of shape" annotation(Dialog); 1108 1108 input Types.SpecularCoefficient specularCoefficient = 0.7 1109 1109 "Reflection of ambient light (= 0: light is completely absorbed)" annotation(Dialog); … … 1162 1162 extent={{-132,160},{128,100}}, 1163 1163 textString="%name", 1164 lineColor={0,0,255})}) 1165 , 1164 lineColor={0,0,255})}), 1166 1165 Documentation(info="<HTML> 1167 1166 <p>
