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 SMARTFIREFACE CLASSFaces are objects in their own right. E.g. a single brick cell has 6 faces whereas two adjoiningbrick cells have only 11 individual faces because the common face exists only once in a separateglobal face array. This global face array is defined as an array <strong>of</strong> pointers to faces.Face_Class ** face;face = new Face_Class* [TOTAL_NUMBER_OF_FACES+1];for ( i=1; i calc_centre();// Accessing some face data (Not used in current version <strong>of</strong> the code)face[30]->access(WALL_SHEAR_STRESS) = 0.3;class Face_Class {private://==> The size <strong>of</strong> storage used (only used for debug mode bounds checking).int array_size;//==> The data array slots for storage <strong>of</strong> face properties.Float_Type * data;public://==> The number <strong>of</strong> points around a face.int num_<strong>of</strong>_pts;//==> The patch number associated with a face (or 0 if this face is internal).Int_Type patch_num;//==> The boundary cell indicator (0 if internal or non -zero is the cell number).Int_Type bd_cell;//==> Array <strong>of</strong> indices <strong>of</strong> face vertex points in a walk around the face.Int_Type * pt_num;Appendix 11.5 Page 145-9 9

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

Saved successfully!

Ooh no, something went wrong!