14.02.2013 Views

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix I / Utilities / General Utilities<br />

_ _<br />

Figure 22-1 shows the effect of this utility on word (X) that is initially zero,<br />

although any value could be used, invoked by,<br />

y : = UT_COMB<br />

( X , 4 , 3 , 11,<br />

LUNOUT , ISTOP )<br />

22.2-10<br />

Equation 22.2-56<br />

In this example (n := 4) bits are modified, starting with bit (j := 3) and the<br />

value 11 inserted. The remaining bits [0(1)2] and [7(1)31] are unchanged.<br />

The flag ISTOP is set after delivering a diagnostic message to the ASCII<br />

data file via channel LUNOUT when,<br />

( N < 1 ) ∨ ( J < 1 ) ∨ ( Z < 1 ) ∨ N > ( 31 − J + 1 )<br />

22.2.8 One Dimensional Linear Interpolation<br />

⇒<br />

ISTOP<br />

N<br />

( ) ∨ ( Z > 2 )<br />

: =<br />

1<br />

Equation 22.2-57<br />

TB_1 takes a set of (n) variably spaced {(X,Y)} co-ordinates with the<br />

independent variable (X) arranged in monotonically increasing order. Given<br />

the independent variable (XP) the function returns the dependent variable<br />

(YP) using linear interpolation, without extrapolation beyond the table<br />

boundary, as shown in Figure 22-2.<br />

( { X } , { Y } , N , X , LUNOUT , ISTOP )<br />

Yp : = TB_1<br />

P<br />

Yi<br />

Yp<br />

Yi-1<br />

X1<br />

Xi-1<br />

p<br />

Xp<br />

Figure 22-2 : One Dimensional Interpolation<br />

The following input data consistency check is applied.<br />

Xi<br />

[ X , X ] ⇒ : = 1<br />

XP 1 N<br />

∉ ISTOP<br />

Equation 22.2-58<br />

XN<br />

Equation 22.2-59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!