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 SMARTFIREPOINT CLASSPhysical coordinate point class in 3 space dimensions. This class is used to simplify numericalroutines and to tidy up storage in other objects. All <strong>of</strong> the mesh nodes (cell vertices) are allocatedas an array <strong>of</strong> pointers to points as follows:Point_Class ** point;point = new Point_Class* [TOTAL_NUMBER_OF_POINTS+1];for ( i=1; i set( 0.5, 1.3, 2.7 );// Getting the displacement vector between point 25 and point 26Vector_Class displace = (*point[26]) - (*point[25]);class Point_Class {public://==> Coordinate values for x, y and z.Float_Type x, y, z;// Methods//==> Point constructor creates a default co-ordinate at (0.0, 0.0, 0.0).Point_Class( Float_Type, Float_Type, Float_Type );//==> Show the coordinates <strong>of</strong> a point.void show( void );//==> Set the coordinates <strong>of</strong> a point.void set( Float_Type, Float_Type, Float_Type );//==> Overloaded operator for point assignment (copy).Point_Class& operator=( Point_Class );//==> Overloaded addition <strong>of</strong> points (adds co-ordinates).Point_Class operator+( Point_Class );Appendix 11.5 Page 145-7 7

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

Saved successfully!

Ooh no, something went wrong!