I think i found a bug in using Elmergrid for creating a 2D sqaure with a square Hole in the middle.
I use elmergrid as in
C:\Elmer6.2\tests\Mytest\GridTest>elmergrid 1 2 Hole_2d.grd
Code: Select all
Starting program Elmergrid
Elmergrid reading in-line arguments
Output will be saved to file Hole_2d.
Elmergrid loading data:
-----------------------
Loading the geometry from file 'Hole_2d.grd'.
Loading ElmerGrid file version: 210903
Defining the coordinate system (2-DIM).
Loading 4 subcell limits in X-direction
Loading 4 subcell limits in Y-direction
Loading material structure
End of field
Loading boundary conditions
Found 6 boundaries
Reached the end of command file
Found 1 divisions for grid
Loading ElmerGrid commands from file 'Hole_2d.grd'.
Reached the end of command file
Read commands from a file
Elmergrid creating and manipulating meshes:
-------------------------------------------
8 cells were created.
Numbered 1736 knots in 1612 4-node elements.
Numbering order was <x><y> and max levelwidth 47.
72 element sides between materials 2 and 1 were located to type 1.
62 element sides between materials -1 and 1 were located to type 2.
62 element sides between materials -2 and 1 were located to type 3.
62 element sides between materials -3 and 1 were located to type 4.
62 element sides between materials -4 and 1 were located to type 5.
No boundary between materials 0 and 0 exists.
Elmergrid saving data:
----------------------
Saving mesh in ElmerSolver format to directory Hole_2d.
Saving 1736 coordinates to mesh.nodes.
Saving 1612 element topologies to mesh.elements.
Saving boundary elements to mesh.boundary.
Saving header info to mesh.header.
Thank you for using Elmergrid!
Send bug reports and feature wishes to peter.raback@csc.fi
when i load this mesh into ElmerGUI everything looks perfect.
But i had some trouble wit this mesh so i cheked the mesh.boundary file.
There the BoundaryElements of the inner square(Hole) in the left lower corner should be connecting the nodes 599,600,644
The problem is that the nodes show up for more boundary elements in other boundaries. I just searched for the "whole word" 599 in the mesh.boundary file. And thats why in the solver there are some miscalculations for the boundaries. The funny thing is that ElmerGUI shows everytghing perfectly fine (which i don't really get).
The next funny thing is. When i save the mesh file now from elmerGUI (by saving the project) the problem is solved, and the Node 599 only shows up for the 2 boundary elements in the corner with boundary index 1.
That puzzled me quite some time.
I hope i made the problem clear if not do not hesitate to ask me for an second explanation.
Maybe i also just misused something.
Than i send my apologize in advance.
Best Regards
Franz