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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX 5 : DATA DICTIONARY FOR GEOMETRY CLASSES IN SMARTFIRECELL CLASSCell objects are face bounded control volumes with their own collection <strong>of</strong> internal properties.Many <strong>of</strong> the properties used in the computation are cell centred however a few exist as cell -faceproperties where there will be a value (or item) for each <strong>of</strong> the faces in a cell. When using cellclass access functions the local face indices are used rather than the global face numberingscheme. This means that internally the cell knows about faces 1 to n (where n is the maximumnumber <strong>of</strong> faces bounding this cell). The actual global indexed face numbers bounding this cellcould be literally anything. The interrogation functions hide the index re -mapping to simplifyaccess from the cell to the bounding faces. All <strong>of</strong> the separate cell -face arrays have the sameindexing so that using cell -face index #1 inside a cell will refer to all <strong>of</strong> the cell -face properties <strong>of</strong>only one <strong>of</strong> the bounding faces. The cells are stored in an array <strong>of</strong> pointers to cells.Cell_Class ** cell;cell = new Cell_Class* [TOTAL_NUMBER_OF_CELLS+1];for ( i=1; i access(NEWEST,PRESSURE) = 2.5e-5;// Getting the 2 nd internal face area <strong>of</strong> cell number 15float area = cell[15]->face_area( 2 );// Finding the maximum Y coordinate <strong>of</strong> cell 53float y_max = cell[53]->find_max_coord(Y);class Cell_Class {//==> The following private data members cannot be accessed directly. You must use the dataaccess functions provided later. Some <strong>of</strong> these data access functions are declared asreturning a reference type (&) in which case they can be used on either side <strong>of</strong> anassignment satement. See the above examples for details <strong>of</strong> using the data access function.This is necessary to hide the complexities <strong>of</strong> least memory array storage.private://==> Array <strong>of</strong> data values for storing cell properties.Float_Type * data;Appendix 11.5 Page 145-11 11

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

Saved successfully!

Ooh no, something went wrong!