Page 1 of 2

ERROR:: ElementMetric: Degenerate 3D element

Posted: 13 Feb 2012, 19:28
by Gabicerq
Hello

I am trying to model a drift of electrons in a gas chamber using StatElecSolve. The geometry is a box with a cilindrical hole. The top and bottom of the box have different voltages. I have a correct mesh, but the sif file have something wrong. The error is:

ERROR:: ElementMetric: Degenerate 3D element: 4650

ElementMetric: DetG:-0.124E-31 Coord: 0.164E-01-0.125E-01 0.102E-01


Could anybody please give me some guidance?!
Thanks so much for any advice.

Gabicerq

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 13 Feb 2012, 19:34
by mzenker
Hi,

could you post your sif file and mesh so that someone can have a look on it?

Matthias

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 13 Feb 2012, 23:08
by raback
Hi

Your mesh may be corrupt. Typically this could mean that some element has degenerate nodes (nodes at same location).

-Peter

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 13 Feb 2012, 23:46
by Gabicerq
Hi Matthias and Peter,

I'm working with gmsh. My .geo file is a bit long. If my mesh file is corrupt, how can i know the degenerated elements?

The files are attached.

Thanks for help!

Gabi

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 14 Feb 2012, 12:49
by mzenker
Hi,

don't ask me why, but processing your mesh with the autoclean option of elmergrid seems to solve the problem. At least your case runs for me, whereas I got a solver crash before.

HTH,

Matthias

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 14 Mar 2012, 19:51
by mzenker
Hi,

now I have the error message:

Code: Select all

ERROR:: ElementMetric: Degenerate 3D element: 378034
ElementMetric: DetG:-0.223E-33
ElementMetric: Dir: 1 Coord: 0.554E-01 0.119    -0.186E-04
ElementMetric: Dir: 2 Coord: 0.565E-01 0.120    -0.363E-04
ElementMetric: Dir: 3 Coord: 0.544E-01 0.120    -0.186E-04
I have checked the coordinates of the tetrahedron and they seem OK to me.
Questions:
1. What can I do to find out what is wrong here?
2. How can I avoid it?
3. How can I check the mesh before starting the solver?
4. If the solver processes all timesteps nevertheless, can I trust the results?

Answers & suggestions welcome!

Thank you,

Matthias

P.S.: I have been lucky: I have produced a slightly changed mesh (a little bit more coarse) AND processed it with ElmerGrid -autoclean on the command line. The problem seems to be gone (now I have convergence problems, but that is another story...). But for the mesh I had before, Elmergrid -autoclean did not help. So the problem having been solved by chance, the above questions remain...

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 21 Jun 2012, 16:48
by mzenker
Hi,

I reactivate this thread because I have the "Degenerate 3D Elements" error message again.
The questions in the last post remain, and some answers would still be appreciated.
Especially it would be useful to know if there are some tolerances or accuracy limits in Elmer which should not be violated in order to avoid this kind of error.

Thank you,

Matthias


Note: The solver went on with its calculation and eventually converged, but the result looks a bit strange. This answers question 4 above...

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 21 Jun 2012, 17:10
by raback
Hi Matthias

Do you have a small case on this.

Generally it would suggest that there is an element where two nodes are at the same coordinates, or too close to form any proper element. This could be a property of the initial mesh, or if there are deformations it could results later. I would think that it is not a problem of transferring the mesh, as it most of the time happens ok...

-Peter

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 21 Jun 2012, 18:51
by mzenker
Hi Peter,

my mesh file is ~5.5 MB, so too large to post it here. Attempts to make it smaller by changing the geometry make the error go away. I will make a new mesh for my initial geometry tomorrow. If the error persists and I still don't manage to reproduce it with a smaller mesh file, I might zip the big mesh file (result ~ 2 MB) and send it to you by e-mail.

Matthias

Re: ERROR:: ElementMetric: Degenerate 3D element

Posted: 22 Jun 2012, 10:47
by mzenker
Hi Peter,

I have redefined my mesh, and the problem went away. I have kept the old mesh for the records - do you want me to send it to you for debugging purposes?
The strange result I got when the solver converged in spite of the degenerate elements was most probably due to a erroneous hest source setting from my side, so not necessarily due to the degenerate elements.

Matthias