;Runmec input file Version 4.0

; example 4 : Vertidrain mechanism

      

KIN ANA ;  kinematic analysis

 

TOPOLOGY

 elem  1  bin  1    2    5    6

       2  bin  3    4    7    8

       3  bin  5    6    7    8

       4  bin  5    6    9   10

       5  tr1  7    8    11   9   10 ;this element type can be referenced

                                     ;for the pole curve of the coupler

 form  1  lenl   1    1   1.0

       2  lenl   2    2   1.0

       3  lenl   3    3   1.0

       4  lenl   4    4   1.0

       5  lenu   5    5   1.0

       6  lenv   5    6   1.0

       7  angb   1    7   1.0        ; angle of element 1 (crank) is prescribed

       8  angb   2    -1  1.0        ; angle of element 2 (rocker) is free (-1)

       9  angb   3    -2  1.0        ; angle between elements 2 and 3. This is

      10  angb   2    -2 -1.0        ; the angle of el.3 minus the angle of el.2

      11  angb   3    -3  1.0        ; angle of element 3

 nrdof 1                             ; the degree of freedom

 

GEOMETRY

 xfix  1    0.71904

       2   -0.9595

       3    1.17057

       4   -0.22695

 xmov  5    0.63451

       6   -0.80058

       7    0.81648

       8   -0.03961

       9    0.0

      10    0.0

      11    3.09234

 para  1   0.18        ; these values of the form parameters will dominate

       3   0.78242     ; the initial co-ordinate values         

       4   1.02153

       5   0.81744

       6   0.0

 

MOVEMENT

  tstepe 60 1.0           ; 60 steps in 1 s

  mov_abse 1 TPI          ; DOFnr 1 makes a full revolution

 

STORAGE

 fobx1     9       1  109  F=PL2 UY=m

 fobcurv2  9  10   1  110  F=CL1

 fobevolu  9  10   1  111  F=CL3            ; homogeneous coordinates

 fobdet            1  112  F=PL1 N=determ.

 fobs1     9  10   1  113  F=PL1 N=s1

 fobdir    9  10   1  114  F=PL1 B=TPI N=direct.

 fobrho    9  10   1  115  F=PL3 N=rho      ; homogeneous coordinates

 

 

OUTPUT

 PRINTBUF 76

 BEGINPIC 1                ;coupler curve, hodograph and evolute curve

  plotfob 110 0

  plotfob 110 hodR

  plotfob 111 0

  plotmech 1

  set TEXTX X [m]

  set TEXTY Y [m]

 ENDPIC

 

 BEGINPIC 2               ;x-component of coupler curve

  plotfob 109 0           

  set TEXTX crank angle [rad]

  set TEXTY displacement [m]

 ENDPIC

 

 BEGINPIC 3               ;first derivative of x-component (constant velocity)

  plotfob 109 1           

  set TEXTX crank angle [rad]

  set TEXTY 1st order [m/rad]

 ENDPIC

 

 BEGINPIC 4                ; various functions

  plotfob 112 0            ; determinant of DC matrix

  plotfob 113 0            ; s' (geometric velocity)

  plotfob 114 0            ; curve direction

  plotfob 115 0            ; curve radius

  set TEXTX crank angle [rad]

  set TEXTY various

  set FOLLOWUNIT 0 0       ;unit conversion off (no "leader" function for x- and y-axis)

 ENDPIC

 

SETTINGS

 animate step

 delay 0.02