Home    Search    Reference Manuals    Return   

Users Manual for Program KPF_ROT

Program KPF_ROT reads data from INFIL and rotates the profile an angle LUT or translates the profile the distance YH. N.B. only one command of LUT or YH can be given in input data. 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.


The calculation of the new profile is carried out in the following way:


INPUT DATA

Input data are written in free format:

ADJUST_ZERO
Adjustment of origin after rotating or translating the profile. ADJUST_ZERO may have the following values:
yes = The output profile will be zero-adjusted
no = No zero adjustments will take place
Declared= Character*4    Default= 'yes'

INFIL
Input data file.
Declared= Character*132    Default= Blank

UTFIL
Output data file.
Declared= Character*132    Default= Blank

LUT
Rotational angle, positive value gives a right handed rotation.
Declared= Real*4    Default= 0.[rad]

YH
Lateral translation of the profile, positive value gives larger gauge.
Declared= Real*4    Default= 0.[mm]

GAUGE_MEAS_INTERVAL
Vertical interval relative to Top of Rail when finding the Gauge Measuring Point. This point is a point on the rail that is closest to the track center line, and is located on the surface of the rail between Top of Rail and GAUGE_MEAS_INTERVAL beneath.
Declared= Real*4    Default= 14. [mm]

GAUGE_TO_ORIGO
Defines the lateral distance from Gauge Measuring Point to Origin rail (the location of the nominal running circle)
Declared= Real*4    Default= 32.5[mm]

YAXIS
Orientation of the Y-axis. YAXIS may be given the following values:
1 => Read Y-axis is used as Y-axis.
-1 => Read Y-axis is used as Y-axis, but 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.
Declared= Real*4    Default= 1

ZAXIS
Orientation of the Z-axis. ZAXIS may be given the following values:
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 Z-axis.
-2 => Read Z-axis is used as Z-axis, but with reversed sign.
Declared= Real*4    Default= 1



Example of an input data file

Following example: Master.kpf_rotf can be used as a master file:

##
##      Input data for program "kpf_rot"
##

# INFIL= $genkpf/../w_prof/S1002/S1002.wheel   # Reading wheel profile
# UTFIL= S1002.kpf_rotr

  INFIL= $genkpf/../r_prof/uic60/uic60i00.rail # Reading rail profile
  UTFIL= uic60i40.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.
   
##
##      Define operation to be applied to the profile
##      N.B.: only one of YH and LUT can be given.
##      YH  refers to a lateral shift of the wheel profile
##      LUT rotates the rail profile and zero sets the origin of the rail profile

##
##      Input data regarding wheel profiles
##      -----------------------------------------------------------
# YH  =  1.0     # Translate the profile +1 mm to simulate a thinner flange

##
##      Input data regarding rail profiles
##      -----------------------------------------------------------
# LUT= 0.                  # No rotation
  LUT= 0.025               # Rotation 1/40
# LUT= 0.033333333         # Rotation 1/30
# LUT= 0.050               # Rotation 1/20


  ADJUST_ZERO = yes        # After rotation zero set the origin of the profile
  GAUGE_TO_ORIGO= 32.5     # Distance between origin of the rail
                           # and the Gauge Measuring Point.
  GAUGE_MEAS_INTERVAL= 14  # Vertical interval from Top-of-Rail when
                           # finding the Gauge Measuring Point.

Home    Search    Reference Manuals    Return