AUTOMATIC MESH GENERATION (2-D)
COURSE PROJECT
The code is split in two files . These are present in each of the following areas:
/g21/kjha/451/proj/*
/g21/sagra/current/451/project/*
The areas are world readable and have relevant permissons.
The file mesh.h contains the preprocessor and generates the points for the mesh. This is the major part of the programming in this project.
Next file is gui.cpp and contains the X-window graphic routines for giving a visual output of the mesh.
Another file that needs to be present in the area during execution of the program is the data file called data.
Compiling of the code is made convenient by the use of a Makefile.
The command to be given at the promt is <make>. This compiles and links the header files and makes the output file draw.
To run the program user has to give the command <draw> at the prompt.
The input to the program is given through a data file called 'data' which contains a list of floats representing the coordinates of the boundary points (x1 y1 x2 y2 x3 y3 ... ). The points on the boundary should be chosen in such a way that the regions of criticality have stronger representation through a greater density of points there. Also it is important to enter the boundary points in a sequential order as the program uses this order to determine the interior and the exterior of the region.
Another input is required to be given at the time of execution of the program. This a float and determines the degree of refinement of the final mesh. For example if the refinement parameter is given as 2 then the all the elements will have an aspect ratio between 0.5 to 2 times that of an euqilateral triangle.