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.

APPENDIX 5 : DATA DICTIONARY FOR GEOMETRY CLASSES IN SMARTFIRE//==> Find if any <strong>of</strong> the cell faces meet a domain boundary and set internal propertiesaccordingly.void find_boundaries( void );//==> Calculate the position <strong>of</strong> the cell centroid. Result into mid.void calc_centre( void );//==> Calculate the outward cell -face normals. Results into normal array.void calc_normals( void );//==> Calculate the current cell volume (N.B. volume is a p roperty in the data array).void calc_volume( void );//==> Calculate all <strong>of</strong> the distances to the cell -faces. Results into dist_to_face array.void calc_dist_to_face( int );//==> Calculate the normal distances to the cell -faces. Results into norm_dist_to_face array.void calc_norm_dist_to_face( const );//==> Interpolates across a face for a particular variable and mode (E.g.interpolate(1,NEWEST,PRESSURE) would return the interpolated pressure across localcell-face 1 for the NEWEST PRESSURE property).Float_Type interpolate( int, Mode_Type, Var_Index_Type );//==> Interpolates the differentials for a variable.Vector_Class interpolate_diffs( int, Var_Index_Type );//==> Similar to interpolate except a simple 50 - 50 averaging scheme is used.Float_Type average( int, Mode_Type, Var_Index_Type );//==> Similar to interpolate_diffs except that a simple averaging scheme is used.Vector_Class average_diffs( int, Var_Index_Type );//==> Calculates the displacement vector for each face. Results into displacement array.void calc_disp_vectors( void );//==> Calculates the updated material property value for this cell. The result will be put into thecorrect slot in the data array.void update_property( Var_Index_Type, Update_Mode );//==> Return the maximum coordinate for this cell for a particular direction.Float_Type find_max_coord( int );//==> Return the minimum coordinate for this cell for a particular direction.Float_Type find_min_coord( int );Appendix 11.5 Page 145-14 14

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

Saved successfully!

Ooh no, something went wrong!