[Gmsh] detect negative jacobians

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Mar 24 19:06:00 CET 2016


> On 24 Mar 2016, at 12:27, Bernd Hahnebach <gmsh at b75.ch> wrote:
> 
> Hi GMSH users and developers,
> 
> Is it possible to check a mesh in gmsh in the regard of negative jacobians? If yes, is it possible to show such elements in gmsh gui? 

Yes (see attached picture):

- Load your mesh
- Open Tools->Plugins->AnalyzeCurvedMesh
- Select "0" in the first option (to compute the Jacobian determinant J and plot min(J))

To accurately visualize the curved grid (and post-processing dataset):

- Select "Adapt visualization grid" in the view options ("General" tab)
- Increase the "High-order element subdvisions" in the mesh options ("Aspect" tab)

This can all be scripted of course.

The calculation method is described in the following paper:

Johnen, A., Remacle, J. F., & Geuzaine, C. (2013). Geometrical validity of curvilinear finite elements. Journal of Computational Physics, 233, 359-372. http://gmsh.info/doc/preprints/gmsh_curved_preprint.pdf

Christophe




> Attached a mesh wich has negative jacobians to test with.
> 
> mesh: Shape_mesh_negative_jacobian.unv.zip (remove .zip)
> http://forum.freecadweb.org/download/file.php?id=21583&sid=a7b68cea7fa02126487316248b875c2d
> 
> 
> What is the recommended way to avoid such negative jacobians? Attached the geometry of the mesh above.
> 
> geometry: Shape.brep
> http://forum.freecadweb.org/download/file.php?id=21588
> 
> 
> kind regards bernd
> 
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160324/253cb915/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Shape_mesh_negative_jacobian.png
Type: image/png
Size: 120050 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160324/253cb915/attachment-0001.png>


More information about the gmsh mailing list