Introducing surface and volume grids
Object: Grid
Grid
object mainly consists of two arrays ofshared_ptrs
. One is forVertex
for position vectors and the other forCell
for connectivity information. Grid does not impose a particular cell structure; it can consist of different cells.
Constructor
-
grid()
: forms blank grid. It can be used for variable decleration. The constructor however sets default minimum and maximum levels for h-refinement; and cfl number. -
grid( { coord } )
: ( coord -> x, y, z ) forms a grid with a single vertex. -
grid( { {coord0}, {coord1}, ...} )
: forms a grid with many vertices. Connectivity information is not yet defined. -
grid( { {coord0}, {coord1}, ...}, { {cell0}, {cell2}, ... } } )
: forms a grid with many vertices and cells. cell0, cell1 are integers pointing out the order of vertex in the first list, starting from 0.