20.07.2015 Views

PhD Thesis - staffweb - University of Greenwich

PhD Thesis - staffweb - University of Greenwich

PhD Thesis - staffweb - University of Greenwich

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>PhD</strong> <strong>Thesis</strong> by John Ewer.<strong>of</strong> looping because <strong>of</strong> the new operators and functions provided for vector algebra. Thesefunctions include dot- and cross- product utilities.Original code for cell centre position calculationDO I = 1, NOCELLDO J = 1, 3CENTRE(I, J) = 0.0ENDDODO J = 1, 3DO K = 1, NPTCTY( CELTYP(I) )CENTRE(I, J) = CENTRE(I, J) + XYZCRD( CELPTS(I, K), J )ENDDOCENTRE(I, J) = CENTRE(I, J) / REAL( NPTCTY( CELTYP(I) ) )ENDDOENDDONew C++ code using a vector class methodsfor ( i=1; i

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

Saved successfully!

Ooh no, something went wrong!