Assume that my_uggrid is an unstructured grid. This means that my_uggrid is an object of class Unstructured_grid. A discretization grid on this grid is called a blockgrid. A block grid with (n+1) grid points in each direction can be constructed in the following way:
Cylinder my_uggrid(2.0,1.0,4.0); Blockgrid my_grid(n,&my_uggrid);
To construct a blockgrid with different meshsizes in different directions, one has to apply the constructor
Blockgrid::Blockgrid(Unstructured_grid ug, int* pN); mach ich bald
where int* pN is a pointer to an array of a length which is the degree of freedom of the unstructured grid. The degree of freedom of an unstructured grid can be obtained by the member function
Unstructured_grid::degree_of_freedom();
For example the degree of freedom of a hexahedron is 3 and the degree of freedom of a cylinder subdivided by 5 hexahedra is 4.
Instead of the constructor Blockgrid::Blockgrid(Unstructured_grid ug, int* pN); one can apply one of the constructors
Blockgrid::Blockgrid(Unstructured_grid ug, int Nx, int Ny, int Nz); Blockgrid::Blockgrid(Unstructured_grid ug, int Nx, int Ny, int Nz, int Nl); mach ich bald
Last modified: Tue May 15 15:44:28 PDT 2001