Changeset 1050 for trunk/Modelica
- Timestamp:
- 02/24/08 19:43:25 (9 months ago)
- Location:
- trunk/Modelica/Mechanics/MultiBody
- Files:
-
- 8 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modelica/Mechanics/MultiBody/Forces.mo
r1046 r1050 1411 1411 SI.Position r_rel_0[3] 1412 1412 "Position vector from frame_a to frame_b resolved in world frame"; 1413 Real e_rel_0[3] 1413 Real e_rel_0[3](each final unit="1") 1414 1414 "Unit vector in direction from frame_a to frame_b, resolved in world frame"; 1415 1415 annotation ( … … 1768 1768 SI.Position r_rel_0[3] 1769 1769 "Position vector from frame_a to frame_b resolved in world frame"; 1770 Real e_rel_0[3] 1770 Real e_rel_0[3](each final unit="1") 1771 1771 "Unit vector in direction from frame_a to frame_b, resolved in world frame"; 1772 1772 annotation ( … … 2648 2648 extent={{-16,-16},{16,16}}, 2649 2649 rotation=90))); 2650 Modelica.Blocks.Interfaces.RealInput force[3] 2650 Modelica.Blocks.Interfaces.RealInput force[3](each final quantity="Force", each 2651 final unit = "N") 2651 2652 "x-, y-, z-coordinates of force resolved in frame defined by resolveInFrame" 2652 2653 annotation (Placement(transformation( … … 2783 2784 rotation=90))); 2784 2785 2785 Modelica.Blocks.Interfaces.RealInput torque[3] 2786 Modelica.Blocks.Interfaces.RealInput torque[3](each final quantity="Torque", each 2787 final unit = "N.m") 2786 2788 "x-, y-, z-coordiantes of torque resolved in frame defined by resolveInFrame" 2787 2789 annotation (Placement(transformation( … … 2921 2923 rotation=270))); 2922 2924 2923 Modelica.Blocks.Interfaces.RealInput force[3] 2925 Modelica.Blocks.Interfaces.RealInput force[3](each final quantity="Force", each 2926 final unit = "N") 2924 2927 "x-, y-, z-coordinates of force resolved in frame defined by resolveInFrame" 2925 2928 annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, … … 3028 3031 rotation=270))); 3029 3032 3030 Modelica.Blocks.Interfaces.RealInput torque[3] 3033 Modelica.Blocks.Interfaces.RealInput torque[3](each final quantity="Torque", each 3034 final unit = "N.m") 3031 3035 "x-, y-, z-coordinates of torque resolved in frame defined by resolveInFrame" 3032 3036 annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, -
trunk/Modelica/Mechanics/MultiBody/Frames.mo
r937 r1050 404 404 import Modelica.Math; 405 405 extends Modelica.Icons.Function; 406 input Real e[3] "Normalized axis of rotation (must have length=1)";406 input Real e[3](each final unit="1") "Normalized axis of rotation (must have length=1)"; 407 407 input Modelica.SIunits.Angle angle 408 408 "Rotation angle to rotate frame 1 into frame 2 along axis e"; … … 420 420 421 421 extends Modelica.Icons.Function; 422 input Real e[3] 422 input Real e[3](each final unit="1") 423 423 "Normalized axis of rotation to rotate frame 1 around e into frame 2 (must have length=1)"; 424 424 input Real v1[3] … … 606 606 </HTML>")); 607 607 protected 608 Real e1_1[3] "First rotation axis, resolved in frame 1";609 Real e2_1a[3] "Second rotation axis, resolved in frame 1a";610 Real e3_1[3] "Third rotation axis, resolved in frame 1";611 Real e3_2[3] "Third rotation axis, resolved in frame 2";608 Real e1_1[3](each final unit="1") "First rotation axis, resolved in frame 1"; 609 Real e2_1a[3](each final unit="1") "Second rotation axis, resolved in frame 1a"; 610 Real e3_1[3](each final unit="1") "Third rotation axis, resolved in frame 1"; 611 Real e3_2[3](each final unit="1") "Third rotation axis, resolved in frame 2"; 612 612 Real A 613 613 "Coefficient A in the equation A*cos(angles[1])+B*sin(angles[1]) = 0"; … … 718 718 function from_nxy "Return fixed orientation object from n_x and n_y vectors" 719 719 extends Modelica.Icons.Function; 720 input Real n_x[3] 720 input Real n_x[3](each final unit="1") 721 721 "Vector in direction of x-axis of frame 2, resolved in frame 1"; 722 input Real n_y[3] 722 input Real n_y[3](each final unit="1") 723 723 "Vector in direction of y-axis of frame 2, resolved in frame 1"; 724 724 output Orientation R "Orientation object to rotate frame 1 into frame 2"; … … 746 746 protected 747 747 Real abs_n_x=sqrt(n_x*n_x); 748 Real e_x[3] =if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x;749 Real n_z_aux[3] =cross(e_x, n_y);750 Real n_y_aux[3] =if n_z_aux*n_z_aux > 1.0e-6 then n_y else (if abs(e_x[1])748 Real e_x[3](each final unit="1")=if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x; 749 Real n_z_aux[3](each final unit="1")=cross(e_x, n_y); 750 Real n_y_aux[3](each final unit="1")=if n_z_aux*n_z_aux > 1.0e-6 then n_y else (if abs(e_x[1]) 751 751 > 1.0e-6 then {0,1,0} else {1,0,0}); 752 Real e_z_aux[3] =cross(e_x, n_y_aux);753 Real e_z[3] =e_z_aux/sqrt(e_z_aux*e_z_aux);752 Real e_z_aux[3](each final unit="1")=cross(e_x, n_y_aux); 753 Real e_z[3](each final unit="1")=e_z_aux/sqrt(e_z_aux*e_z_aux); 754 754 algorithm 755 755 R := Orientation(T={e_x,cross(e_z, e_x),e_z},w= zeros(3)); … … 758 758 function from_nxz "Return fixed orientation object from n_x and n_z vectors" 759 759 extends Modelica.Icons.Function; 760 input Real n_x[3] 760 input Real n_x[3](each final unit="1") 761 761 "Vector in direction of x-axis of frame 2, resolved in frame 1"; 762 input Real n_z[3] 762 input Real n_z[3](each final unit="1") 763 763 "Vector in direction of z-axis of frame 2, resolved in frame 1"; 764 764 output Orientation R "Orientation object to rotate frame 1 into frame 2"; … … 786 786 protected 787 787 Real abs_n_x=sqrt(n_x*n_x); 788 Real e_x[3] =if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x;789 Real n_y_aux[3] =cross(n_z, e_x);790 Real n_z_aux[3] =if n_y_aux*n_y_aux > 1.0e-6 then n_z else (if abs(e_x[1])788 Real e_x[3](each final unit="1")=if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x; 789 Real n_y_aux[3](each final unit="1")=cross(n_z, e_x); 790 Real n_z_aux[3](each final unit="1")=if n_y_aux*n_y_aux > 1.0e-6 then n_z else (if abs(e_x[1]) 791 791 > 1.0e-6 then {0,0,1} else {1,0,0}); 792 Real e_y_aux[3] =cross(n_z_aux, e_x);793 Real e_y[3] =e_y_aux/sqrt(e_y_aux*e_y_aux);792 Real e_y_aux[3](each final unit="1")=cross(n_z_aux, e_x); 793 Real e_y[3](each final unit="1")=e_y_aux/sqrt(e_y_aux*e_y_aux); 794 794 algorithm 795 795 R := Orientation(T={e_x,e_y,cross(e_x, e_y)},w= zeros(3)); … … 925 925 extends Modelica.Icons.Function; 926 926 input Integer axis(min=1, max=3) "Axis vector to be returned"; 927 output Real e[3] "Unit axis vector";927 output Real e[3](each final unit="1") "Unit axis vector"; 928 928 annotation(Inline=true); 929 929 algorithm … … 1245 1245 import Modelica.Math; 1246 1246 extends Modelica.Icons.Function; 1247 input Real e[3] "Normalized axis of rotation (must have length=1)";1247 input Real e[3](each final unit="1") "Normalized axis of rotation (must have length=1)"; 1248 1248 input Modelica.SIunits.Angle angle 1249 1249 "Rotation angle to rotate frame 1 into frame 2 along axis e"; … … 1660 1660 import Modelica.Math; 1661 1661 extends Modelica.Icons.Function; 1662 input Real e[3] "Normalized axis of rotation (must have length=1)";1662 input Real e[3](each final unit="1") "Normalized axis of rotation (must have length=1)"; 1663 1663 input Modelica.SIunits.Angle angle 1664 1664 "Rotation angle to rotate frame 1 into frame 2 along axis e"; … … 1675 1675 1676 1676 extends Modelica.Icons.Function; 1677 input Real e[3] 1677 input Real e[3](each final unit="1") 1678 1678 "Normalized axis of rotation to rotate frame 1 around e into frame 2 (must have length=1)"; 1679 1679 input Real v1[3] … … 1850 1850 </HTML>")); 1851 1851 protected 1852 Real e1_1[3] "First rotation axis, resolved in frame 1";1853 Real e2_1a[3] "Second rotation axis, resolved in frame 1a";1854 Real e3_1[3] "Third rotation axis, resolved in frame 1";1855 Real e3_2[3] "Third rotation axis, resolved in frame 2";1852 Real e1_1[3](each final unit="1") "First rotation axis, resolved in frame 1"; 1853 Real e2_1a[3](each final unit="1") "Second rotation axis, resolved in frame 1a"; 1854 Real e3_1[3](each final unit="1") "Third rotation axis, resolved in frame 1"; 1855 Real e3_2[3](each final unit="1") "Third rotation axis, resolved in frame 2"; 1856 1856 Real A 1857 1857 "Coefficient A in the equation A*cos(angles[1])+B*sin(angles[1]) = 0"; … … 1963 1963 function from_nxy "Return orientation object from n_x and n_y vectors" 1964 1964 extends Modelica.Icons.Function; 1965 input Real n_x[3] 1965 input Real n_x[3](each final unit="1") 1966 1966 "Vector in direction of x-axis of frame 2, resolved in frame 1"; 1967 input Real n_y[3] 1967 input Real n_y[3](each final unit="1") 1968 1968 "Vector in direction of y-axis of frame 2, resolved in frame 1"; 1969 1969 output TransformationMatrices.Orientation T … … 1992 1992 protected 1993 1993 Real abs_n_x=sqrt(n_x*n_x); 1994 Real e_x[3] =if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x;1995 Real n_z_aux[3] =cross(e_x, n_y);1996 Real n_y_aux[3] =if n_z_aux*n_z_aux > 1.0e-6 then n_y else (if abs(e_x[1])1994 Real e_x[3](each final unit="1")=if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x; 1995 Real n_z_aux[3](each final unit="1")=cross(e_x, n_y); 1996 Real n_y_aux[3](each final unit="1")=if n_z_aux*n_z_aux > 1.0e-6 then n_y else (if abs(e_x[1]) 1997 1997 > 1.0e-6 then {0,1,0} else {1,0,0}); 1998 Real e_z_aux[3] =cross(e_x, n_y_aux);1999 Real e_z[3] =e_z_aux/sqrt(e_z_aux*e_z_aux);1998 Real e_z_aux[3](each final unit="1")=cross(e_x, n_y_aux); 1999 Real e_z[3](each final unit="1")=e_z_aux/sqrt(e_z_aux*e_z_aux); 2000 2000 algorithm 2001 2001 T := {e_x,cross(e_z, e_x),e_z}; … … 2004 2004 function from_nxz "Return orientation object from n_x and n_z vectors" 2005 2005 extends Modelica.Icons.Function; 2006 input Real n_x[3] 2006 input Real n_x[3](each final unit="1") 2007 2007 "Vector in direction of x-axis of frame 2, resolved in frame 1"; 2008 input Real n_z[3] 2008 input Real n_z[3](each final unit="1") 2009 2009 "Vector in direction of z-axis of frame 2, resolved in frame 1"; 2010 2010 output TransformationMatrices.Orientation T … … 2033 2033 protected 2034 2034 Real abs_n_x=sqrt(n_x*n_x); 2035 Real e_x[3] =if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x;2036 Real n_y_aux[3] =cross(n_z, e_x);2037 Real n_z_aux[3] =if n_y_aux*n_y_aux > 1.0e-6 then n_z else (if abs(e_x[1])2035 Real e_x[3](each final unit="1")=if abs_n_x < 1.e-10 then {1,0,0} else n_x/abs_n_x; 2036 Real n_y_aux[3](each final unit="1")=cross(n_z, e_x); 2037 Real n_z_aux[3](each final unit="1")=if n_y_aux*n_y_aux > 1.0e-6 then n_z else (if abs(e_x[1]) 2038 2038 > 1.0e-6 then {0,0,1} else {1,0,0}); 2039 Real e_y_aux[3] =cross(n_z_aux, e_x);2040 Real e_y[3] =e_y_aux/sqrt(e_y_aux*e_y_aux);2039 Real e_y_aux[3](each final unit="1")=cross(n_z_aux, e_x); 2040 Real e_y[3](each final unit="1")=e_y_aux/sqrt(e_y_aux*e_y_aux); 2041 2041 algorithm 2042 2042 T := {e_x,e_y,cross(e_x, e_y)}; -
trunk/Modelica/Mechanics/MultiBody/Interfaces.mo
r1046 r1050 606 606 SI.Position s 607 607 "(Guarded) distance between the origin of frame_a and the origin of frame_b (>= s_small))"; 608 Real e_a[3] 608 Real e_a[3](each final unit="1") 609 609 "Unit vector on the line connecting the origin of frame_a with the origin of frame_b resolved in frame_a (directed from frame_a to frame_b)"; 610 Realr_rel_a[3]610 Modelica.SIunits.Position r_rel_a[3] 611 611 "Position vector from origin of frame_a to origin of frame_b, resolved in frame_a"; 612 612 protected -
trunk/Modelica/Mechanics/MultiBody/Joints.mo
r1046 r1050 116 116 parameter StateSelect stateSelect=StateSelect.prefer 117 117 "Priority to use distance s and v=der(s) as states" annotation(Dialog(tab="Advanced")); 118 final parameter Real e[3] =Modelica.Math.Vectors.normalize(118 final parameter Real e[3](each final unit="1")=Modelica.Math.Vectors.normalize( 119 119 n) 120 120 "Unit vector in direction of prismatic axis n"; … … 133 133 134 134 annotation ( 135 136 135 Icon(coordinateSystem( 137 136 preserveAspectRatio=true, … … 351 350 SI.Angle angle "= phi_offset + phi"; 352 351 annotation ( 353 354 352 Icon(coordinateSystem( 355 353 preserveAspectRatio=true, … … 506 504 </html> 507 505 ")); 506 508 507 protected 509 508 outer Modelica.Mechanics.MultiBody.World world; 510 parameter Real e[3] =Modelica.Math.Vectors.normalize(509 parameter Real e[3](each final unit="1")=Modelica.Math.Vectors.normalize( 511 510 n) 512 511 "Unit vector in direction of rotation axis, resolved in frame_a (= same as in frame_b)"; … … 614 613 "Reflection of ambient light (= 0: light is completely absorbed)" 615 614 annotation (Dialog(group="if animation = true", enable=animation)); 616 annotation (defaultComponentName="revolute" 617 , 615 annotation (defaultComponentName="revolute", 618 616 Icon(coordinateSystem( 619 617 preserveAspectRatio=true, … … 706 704 protected 707 705 outer Modelica.Mechanics.MultiBody.World world; 708 parameter Real e[3] =Modelica.Math.Vectors.normalize(706 parameter Real e[3](each final unit="1")=Modelica.Math.Vectors.normalize( 709 707 n) 710 708 "Unit vector in direction of rotation axis, resolved in frame_a (= same as in frame_b)"; 711 parameter Real nnx_a[3] =if abs(e[1]) > 0.1 then {0,1,0} else (if abs(e[2])709 parameter Real nnx_a[3](each final unit="1")=if abs(e[1]) > 0.1 then {0,1,0} else (if abs(e[2]) 712 710 > 0.1 then {0,0,1} else {1,0,0}) 713 711 "Arbitrary vector that is not aligned with rotation axis n" 714 712 annotation (Evaluate=true); 715 parameter Real ey_a[3] =Modelica.Math.Vectors.normalize(713 parameter Real ey_a[3](each final unit="1")=Modelica.Math.Vectors.normalize( 716 714 cross(e, nnx_a)) 717 715 "Unit vector orthogonal to axis n of revolute joint, resolved in frame_a" 718 716 annotation (Evaluate=true); 719 parameter Real ex_a[3] =cross(ey_a, e)717 parameter Real ex_a[3](each final unit="1")=cross(ey_a, e) 720 718 "Unit vector orthogonal to axis n of revolute joint and to ey_a, resolved in frame_a" 721 719 annotation (Evaluate=true); 722 Real ey_b[3] "ey_a, resolved in frame_b";723 Real ex_b[3] "ex_a, resolved in frame_b";720 Real ey_b[3](each final unit="1") "ey_a, resolved in frame_b"; 721 Real ex_b[3](each final unit="1") "ex_a, resolved in frame_b"; 724 722 Frames.Orientation R_rel 725 723 "Dummy or relative orientation object from frame_a to frame_b"; 726 Realr_rel_a[3]724 Modelica.SIunits.Position r_rel_a[3] 727 725 "Position vector from origin of frame_a to origin of frame_b, resolved in frame_a"; 728 726 SI.Force f_c[2] "Dummy or constraint forces in direction of ex_a, ey_a"; … … 823 821 824 822 annotation ( 825 826 823 Documentation(info="<HTML> 827 824 <p> … … 979 976 980 977 annotation ( 981 982 978 Documentation(info="<HTML> 983 979 <p> … … 1078 1074 extent={{-100,-100},{100,100}}, 1079 1075 grid={1,1}), graphics)); 1076 1080 1077 equation 1081 1078 phi_a = revolute_a.phi; … … 1170 1167 1171 1168 annotation ( 1172 1173 1169 Documentation(info="<HTML> 1174 1170 <p> … … 1247 1243 protected 1248 1244 parameter Integer ndim=if world.enableAnimation and animation then 1 else 0; 1249 parameter Real e[3] =Modelica.Math.Vectors.normalize(1245 parameter Real e[3](each final unit="1")=Modelica.Math.Vectors.normalize( 1250 1246 n); 1251 1247 protected … … 1373 1369 "Orientation object from frame_a to frame_b at initial time"; 1374 1370 annotation ( 1375 1376 1371 Documentation(info="<html> 1377 1372 <p> … … 1697 1692 1698 1693 annotation ( 1699 1700 1694 Documentation(info="<HTML> 1701 1695 <p> … … 1828 1822 grid={1,1}), graphics={ 1829 1823 Line( 1830 points={{-86,31},{-74,61},{-49,83},{-17,92},{19,88},{40,69},{59,48}}, 1824 points={{-86,31},{-74,61},{-49,83},{-17,92},{19,88},{40,69},{59,48}}, 1825 1831 1826 color={160,160,164}, 1832 1827 thickness=0.5), … … 2054 2049 SI.Position rRod_a[3] 2055 2050 "Position vector from frame_a to frame_b resolved in frame_a"; 2056 Real eRod_a[3] 2051 Real eRod_a[3](each final unit="1") 2057 2052 "Unit vector in direction from frame_a to frame_b, resolved in frame_a"; 2058 2053 SI.Position r_CM_0[3] … … 2069 2064 2070 2065 annotation ( 2071 2072 2066 Icon(coordinateSystem( 2073 2067 preserveAspectRatio=true, … … 2222 2216 </p> 2223 2217 </html>")); 2218 2224 2219 protected 2225 2220 Visualizers.Advanced.Shape shape_rod( … … 2421 2416 rRod_ia) 2422 2417 "Length of rod (distance between origin of frame_a and origin of frame_b)"; 2423 final parameter Real eRod_ia[3] =Modelica.Math.Vectors.normalize(2418 final parameter Real eRod_ia[3](each final unit="1")=Modelica.Math.Vectors.normalize( 2424 2419 rRod_ia) 2425 2420 "Unit vector from origin of frame_a to origin of frame_b, resolved in frame_ia"; 2426 final parameter Real e2_ia[3] =Modelica.Math.Vectors.normalize(2421 final parameter Real e2_ia[3](each final unit="1")=Modelica.Math.Vectors.normalize( 2427 2422 cross(n1_a, eRod_ia)) 2428 2423 "Unit vector in direction of axis 2 of universal joint, resolved in frame_ia (orthogonal to n1_a and eRod_ia; note: frame_ia is parallel to frame_a when the universal joint angles are zero)"; 2429 final parameter Real e3_ia[3] =cross(eRod_ia, e2_ia)2424 final parameter Real e3_ia[3](each final unit="1")=cross(eRod_ia, e2_ia) 2430 2425 "Unit vector perpendicular to eRod_ia and e2_ia, resolved in frame_ia"; 2431 2426 SI.Power totalPower … … 2433 2428 SI.Force f_b_a1[3] 2434 2429 "frame_b.f without f_rod part, resolved in frame_a (needed for analytic loop handling)"; 2435 Real eRod_a[3] 2430 Real eRod_a[3](each final unit="1") 2436 2431 "Unit vector in direction of rRod_a, resolved in frame_a (needed for analytic loop handling)"; 2437 2432 SI.Position rRod_0[3](start=rRod_ia) … … 2440 2435 "Position vector from origin of frame_a to origin of frame_b resolved in frame_a"; 2441 2436 annotation ( 2442 2443 2437 Documentation(info="<html> 2444 2438 <p> … … 2744 2738 SI.Force f_ia_a[3] "frame_ia.f resolved in frame_a"; 2745 2739 SI.Torque t_ia_a[3] "frame_ia.t resolved in frame_a"; 2746 Real n2_a[3] 2740 Real n2_a[3](each final unit="1") 2747 2741 "Vector in direction of axis 2 of the universal joint (e2_ia), resolved in frame_a"; 2748 2742 Real length2_n2_a(start=1, unit="m2") "Square of length of vector n2_a"; 2749 2743 SI.Length length_n2_a "Length of vector n2_a"; 2750 Real e2_a[3] 2744 Real e2_a[3](each final unit="1") 2751 2745 "Unit vector in direction of axis 2 of the universal joint (e2_ia), resolved in frame_a"; 2752 Real e3_a[3] 2746 Real e3_a[3](each final unit="1") 2753 2747 "Unit vector perpendicular to eRod_ia and e2_a, resolved in frame_a"; 2754 Real der_rRod_a_L[3] "= der(rRod_a)/rodLength";2748 Real der_rRod_a_L[3](each unit="1/s") "= der(rRod_a)/rodLength"; 2755 2749 SI.AngularVelocity w_rel_ia1[3]; 2756 2750 Frames.Orientation R_rel_ia1; … … 3286 3280 "= true, if total power flowing into this component shall be determined (must be zero)" 3287 3281 annotation (Dialog(tab="Advanced")); 3288 final parameter Real eAxis_ia[3] =Modelica.Math.Vectors.normalize(3282 final parameter Real eAxis_ia[3](each final unit="1")=Modelica.Math.Vectors.normalize( 3289 3283 nAxis_ia) 3290 3284 "Unit vector from origin of frame_a to origin of frame_b, resolved in frame_ia"; 3291 final parameter Real e2_ia[3] =Modelica.Math.Vectors.normalize(3285 final parameter Real e2_ia[3](each final unit="1")=Modelica.Math.Vectors.normalize( 3292 3286 cross(n1_a, eAxis_ia)) 3293 3287 "Unit vector in direction of second rotation axis of universal joint, resolved in frame_ia"; 3294 final parameter Real e3_ia[3] =cross(eAxis_ia, e2_ia)3288 final parameter Real e3_ia[3](each final unit="1")=cross(eAxis_ia, e2_ia) 3295 3289 "Unit vector perpendicular to eAxis_ia and e2_ia, resolved in frame_ia"; 3296 3290 SI.Position s … … 3301 3295 "Total power flowing into this element, if checkTotalPower=true (otherwise dummy)"; 3302 3296 annotation ( 3303 3304 3297 Documentation(info="<html> 3305 3298 <p> … … 3569 3562 color={95,95,95}, 3570 3563 thickness=0.5), 3571 Polygon(points={{7,-1},{-5,2},{-5,-4},{7,-1}}, lineColor={0,0,255}), 3564 Polygon(points={{7,-1},{-5,2},{-5,-4},{7,-1}}, lineColor={0,0,255}), 3565 3572 3566 Line(points={{-50,19},{-30,57}}, color={0,0,255}), 3573 3567 Text( … … 3636 3630 textString="nAxis"), 3637 3631 Line(points={{-61,1},{-2,1}}, color={0,0,255}), 3638 Polygon(points={{10,1},{-2,4},{-2,-2},{10,1}}, lineColor={0,0,255}), 3632 Polygon(points={{10,1},{-2,4},{-2,-2},{10,1}}, lineColor={0,0,255}), 3633 3639 3634 Line( 3640 3635 points={{60,-1},{60,90},{80,90},{80,99}}, … … 3688 3683 SI.Position rAxis_a[3] 3689 3684 "Position vector from origin of frame_a to origin of frame_b resolved in frame_a"; 3690 Real eAxis_a[3] 3685 Real eAxis_a[3](each final unit="1") 3691 3686 "Unit vector in direction of rAxis_a, resolved in frame_a"; 3692 Real e2_a[3] 3687 Real e2_a[3](each final unit="1") 3693 3688 "Unit vector in direction of second rotation axis of universal joint, resolved in frame_a"; 3694 Real e3_a[3] 3689 Real e3_a[3](each final unit="1") 3695 3690 "Unit vector perpendicular to eAxis_a and e2_a, resolved in frame_a"; 3696 Real n2_a[3] 3691 Real n2_a[3](each final unit="1") 3697 3692 "Vector in direction of second rotation axis of universal joint, resolved in frame_a"; 3698 3693 Real length2_n2_a(unit="m2") "Square of length of vector n2_a"; 3699 3694 SI.Length length_n2_a "Length of vector n2_a"; 3700 Real der_rAxis_a_L[3] "= der(rAxis_a)/axisLength";3695 Real der_rAxis_a_L[3](each unit="1/s") "= der(rAxis_a)/axisLength"; 3701 3696 SI.AngularVelocity w_rel_ia1[3]; 3702 3697 Frames.Orientation R_ia1_a; … … 4008 4003 "= true, if total power flowing into this component shall be determined (must be zero)" 4009 4004 annotation (Dialog(tab="Advanced")); 4010 final parameter Real eRod1_ia[3] =rod1.eRod_ia4005 final parameter Real eRod1_ia[3](each final unit="1")=rod1.eRod_ia 4011 4006 "Unit vector from origin of frame_a to origin of spherical joint, resolved in frame_ia"; 4012 final parameter Real e2_ia[3] =rod1.e2_ia4007 final parameter Real e2_ia[3](each final unit="1")=rod1.e2_ia 4013 4008 "Unit vector in direction of axis 2 of universal joint, resolved in frame_ia"; 4014 4009 final parameter SI.Distance rod1Length=rod1.rodLength … … 4022 4017 4023 4018 annotation ( 4024 4025 4019 Documentation(info="<html> 4026 4020 <p> … … 4542 4536 "= true, if total power flowing into this component shall be determined (must be zero)" 4543 4537 annotation (Dialog(tab="Advanced")); 4544 final parameter Real eRod1_ia[3] =rod1.eRod_ia4538 final parameter Real eRod1_ia[3](each final unit="1")=rod1.eRod_ia 4545 4539 "Unit vector from origin of frame_a to origin of spherical joint, resolved in frame_ia";
