The program reads a table from file and rotates the point cluster an angle LUT or translates the point cluster the distance YH. NOTE BENE only one command of LUT or YH can be given in the input data file in the same run. If neither LUT and YH are defined in input data, program KPF_ROT will just orient INFIL according to YAXIS and ZAXIS, and write the result to UTFIL. No zero adjustments will be made. The calculation of the new point cluster is carried out in the following way:
Input data are written in free format:
| yes | => | Origin of a wheel profile will be located at the tread, 70[mm] laterally spaced from the inside of the wheel. Origin of the rail head will be located on top of rail GAUGE_TO_ORIGO [mm] laterally spaced from the gauge measuring point. |
| no | => | No zero adjustments will take place after translating or rotating the profile. |
| 1 | => | Read Y-axis is used as is. |
| -1 | => | Read Y-axis is used with reversed sign. |
| 2 | => | Read Z-axis is used as Y-axis. |
| -2 | => | Read Z-axis is used as Y-axis but with reversed sign. |
| 1 | => | Read Y-axis is used as Z-axis. |
| -1 | => | Read Y-axis is used as Z-axis but with reversed sign. |
| 2 | => | Read Z-axis is used as is. |
| -2 | => | Read Z-axis is used with reversed sign. |
Following example: Master.kpf_rotf can be used as a master file:
#
# Input data for program KPF_ROT
#
INFIL= $genkpf/../r_prof/uic60/uic60i00.rail # Reading rail profile
UTFIL= uic60i40.kpf_rotr
#
#INFIL= $genkpf/../w_prof/S1002/S1002.wheel # Reading wheel profile
#UTFIL= S1002.kpf_rotr
YAXIS = 1 # Use the first column on INFIL as Y-axis
#YAXIS =-1 # Use the first column on INFIL as Y-axis, but with reversed sign.
ZAXIS = 2 # Use the second column on INFIL as Z-axis
#ZAXIS =-2 # Use the second column on INFIL as Z-axis, but with reversed sign.
ADJUST_ZERO = yes # After rotation or translation adjust the origin
# of the profile.
GAUGE_TO_ORIGO= 32.5 # Define the distance between origin of the rail
# and the gauge measuring point.
##
##
## Define operation to be applied to the profile
## Nota Bene: only one of YH and LUT can be given.
## ----------------------------------------------
#YH =-10.0 # Translate the profile 10 mm toward smaller gauge.
#
LUT= .025 # Rotate the rail profile angle LUT.
# LUT is given in radians.