added formula for gmsh