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 />

22.2.5 Time and Date Stamp<br />

TIME_DATE extracts the time and date from the host operating system<br />

using the DEC SYSDATE and SYSTIME functions.<br />

y : = TIME_DATE<br />

TIMDAT is a 20 character string comprising:<br />

• Date characters [1(1)9]<br />

• Space character [10]<br />

• Time characters [11(1)18]<br />

22.2-8<br />

( TIMDAT )<br />

Equation 22.2-47<br />

A flag indicating that this function has been correctly executed is returned in<br />

the function name, in which case (y := 1).<br />

22.2.6 Recursive Statistical Analyser<br />

VAR_STATS samples the GCB real variable whose vector location is<br />

identified by VAR_STAT. It returns the number of samples used in the<br />

statistical analysis (VAR_N), the sample mean (VAR_AVG), standard<br />

deviation (VAR_SD), and rms value (VAR_RMS). The interface between<br />

VAR_STATS and the simulation is the GCB. The recursive values of the<br />

statistical outputs are derived using,<br />

⎧<br />

N<br />

N<br />

⎪ 1<br />

1<br />

2 ⎪<br />

{ X N , Y } : = ⎨ ⋅ ∑ ( Xk<br />

⋅ S ) , ⋅ ∑ ( Xk<br />

⋅ S ) ⎬<br />

N<br />

N<br />

⎪⎭<br />

Y − X<br />

2<br />

N<br />

><br />

Y − X<br />

2<br />

N<br />

10<br />

≤<br />

⎪⎩<br />

−15<br />

10<br />

−15<br />

⇒<br />

k:<br />

= 1<br />

⎧<br />

⎪<br />

⎨<br />

⎪<br />

⎩<br />

⇒<br />

( σ )<br />

X<br />

N<br />

: =<br />

k ; = 1<br />

Y − X<br />

( ) ⎪ rms : = Y<br />

⎧<br />

⎪<br />

⎨<br />

⎪<br />

⎩<br />

X<br />

N<br />

( σ )<br />

X<br />

N<br />

: =<br />

0<br />

⎫<br />

Equation 22.2-48<br />

2<br />

N<br />

( rms ) : = 0 ⎪<br />

X N ⎭<br />

⎫<br />

⎪<br />

⎬<br />

⎭<br />

Equation 22.2-49<br />

⎫<br />

⎪<br />

⎬<br />

Equation 22.2-50<br />

(S) is a scaling factor applied by PRIPLO when converting simulation<br />

parameters from SI into engineering units. Recursive analysis is controlled<br />

by ST_FLAG. When set to 1 the variable is sampled and statistical analysis

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

Saved successfully!

Ooh no, something went wrong!