Internal error (tri_mesh_I.h:90)

Submitted by ZYan on Thu, 10/30/2014 - 09:46

Hi guys,
What happened wrong when there is a erro message like Internal error (tri_mesh_I.h:90)? Thank you in advance for your answers
Cheers,
Zyan

ckloss's picture

ckloss | Thu, 10/30/2014 - 14:41

Hi Zyan,

seems the algorithm for calculating sphere-triangle distance ran into a problem that should not exist
Can you back-track/isolate this to a simple case (e.g. single time-step / triangle) that causes the problem?
If yes, I'll have a look for the next release

best wishes
Christoph

Marckmann | Fri, 11/28/2014 - 16:42

Hi,

I have encountered a similiar problem: Internal error (tri_mesh_I.h:90) for some regions created by "plane". The error occurs only with some (and not all) normal vectors. So I've checked the tri_mesh_I.h and after that calcBaryTriCoords in math_extra_liggghts.h.
I think there is a sign error for bary[2]. It has to be (b - a*c) instead of (a*c - b). You can see it quite clear with a small example:

Use a triangle with (1 0 0) and (0 1 0) for edgeVec[0] and edgeVec[2]. The point you want to test is (0.5 0.5 0) in cartesian. The result for bary should be (0.5 0.5). For bary[1] you get 0.5 but for bary[2] it is -0.5 (c being 0).

I hope I haven't overlooked anything.

If you need a simple test case I can provide one (at least for the problems I am having). I haven't checked so far if this solves my problem.

Best wishes

Hannes

ckloss's picture

ckloss | Thu, 12/11/2014 - 15:51

Hi Hannes,

can you post a simple testcase so I can reporduce the issue?

Thanks!
Christoph

ckloss's picture

ckloss | Sat, 01/10/2015 - 13:22

Hi Hannes,

can you post a simple testcase so I can reporduce the issue?

Thanks!
Christoph

kunzhang's picture

kunzhang | Fri, 07/17/2015 - 01:30

Hi All,

Have some one fixed this internal error problems? I have the same problem as running 3-D simulation. I imported the mesh file generated by solidworks. Sometimes, the mesh file works well, while some mesh file run into this problem after several timesteps. Could anyone please let me know if this problem is due to the mesh files, or how shall I generate appropriate mesh from solidworks?

Thanks,

Kun

kunzhang