From f4736e0dd51cc42a7ea40c514aa6f5e0c25369e2 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Wed, 27 May 2020 17:55:54 +0200 Subject: [PATCH] FEM gmsh mesh, set SecondOrderLinear standard to False --- src/Mod/Fem/femobjects/mesh_gmsh.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/femobjects/mesh_gmsh.py b/src/Mod/Fem/femobjects/mesh_gmsh.py index 2cbb5d71c6..4b7778ba93 100644 --- a/src/Mod/Fem/femobjects/mesh_gmsh.py +++ b/src/Mod/Fem/femobjects/mesh_gmsh.py @@ -204,7 +204,13 @@ class MeshGmsh(base_fempythonobject.BaseFemPythonObject): "FEM Gmsh Mesh Params", "Second order nodes are created by linear interpolation" ) - obj.SecondOrderLinear = True + obj.SecondOrderLinear = False + # gives much better meshes in the regard of nonpositive jacobians + # but + # on curved faces the constraint nodes will no longer found + # thus standard will be False + # https://forum.freecadweb.org/viewtopic.php?t=41738 + # https://forum.freecadweb.org/viewtopic.php?f=18&t=45260&start=20#p389494 if not hasattr(obj, "Algorithm2D"): obj.addProperty(