CALCS PROC009
COORDS TRANSFORMATION

NOTATION

Xr1 Yr1coord, reference node, initial
Xr2 Yr2coord, reference node, final
A12angular displacement of body, final relative to initial
Xi1 Yi1coord, node i, initial
Rlength, displacement of reference node
Air2angle, inclination of thru final ref & nodes i
Xi2 Yi2coords, nodes i, final

APPLICATION

Determination of planar transformed nodal coordinates when reference node is displaced and body rotated. Found in mechanism analysis.

OUTPUT

utility for loading state in transformed system

SEE ALSO

other porcs & progs

THEORY

basic trigonometry

GUIDANCE

guidance notes

INPUT FORMAT

LET Xr1=:Yr1=:Xr2=:Yr2=:A12=:X1=:Y1=:PROC009

EXAMPLE

Call Statement

LET Xr1=11:Yr1=5:Xr2=33:Yr2=9:A12=35:X1=21:Y1=12:PROC009

Output

PROC009 COORDINATES TRANSFORMATION, Rev 190995
R= SQR((Y1-Yr1)^2+(X1-Xr1)^2)= 12.21
Ar1= ATN((Y1-Yr1)/(X1-Xr1))= 0.6107
Ar2= Ar1+A12= 35.61
X2= Xr2+R*COS(Ar2)= 26.96
Y2= Yr2+R*SIN(Ar2)= -1.608
END009