Adams Car Package > Adams Car > Appendix > Special Requests > Normalized Distance Between MARKERS

Normalized Distance Between MARKERS

Computes the distance between two MARKERs in a pair, for up to six pairs. If less than six pairs of MARKERs are given, this routine simply returns zero for the MARKER pair value that is not given. The answers returned in this routine are normalized to be zero at TIME=0.
Input:
REQ/id, FUNCTION = USER (1124,imkr1,jmkr1,imkr2,jmkr2,...,imkr6,jmkr6,scale,rnum )
where:
 
 
Description
imkr1
=
i MARKER of MARKER pair 1
jmkr1
=
j MARKER of MARKER pair 1
imkr2
=
i MARKER of MARKER pair 2 (optional)
jmkr2
=
j MARKER of MARKER pair 2 (optional)
imkr6
=
i MARKER of MARKER pair 6 (optional)
jmkr6
=
j MARKER of MARKER pair 6 (optional)
scale
=
scale factor to be multiplied to the answers (e.g. scale = 1.0 for millimeters and for inches scale = 0.03937)
rnum
=
numbering parameter for the REQUEST. Each time this USER REQUEST is used in the data set, it must be numbered.
Request File Output
Column Number Output:
1. Scaled and normalized distance between imkr1 and jmkr1
2. Scaled and normalized distance between imkr2 and jmkr2
3. Scaled and normalized distance between imkr3 and jmkr3
4. Scaled and normalized distance between imkr4 and jmkr4
5. Scaled and normalized distance between imkr5 and jmkr5
6. Scaled and normalized distance between imkr6 and jmkr6
Notes on Input and Output
The i MARKER and j MARKER of the pair should not be on the same part to get non-zero answers.
The sign convention:
Positive distance = MARKERs moving away from one another
Negative distance = MARKERs moving toward one another
An important point of this USER REQUEST is the "rnum" parameter. The REQUEST stores the distance between each MARKER pair at TIME=0 in an array. If two of these REQUESTS are required in a dataset, then the routine has to know where to store the initial offsets for the different REQUESTS. This is handled using a two-dimensional array and the "rnum" parameter. Each separate call of this routine in the dataset must be ordered sequentially starting at 1. Failure to do this will corrupt the output of the routine.