Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gmsh
gmsh
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 106
    • Issues 106
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gmsh
  • gmshgmsh
  • Issues
  • #943

Closed
Open
Opened Jul 19, 2020 by orxan shibliyev@orxshi

Have mesh size independent of number of points

I import brep file from FreeCAD to gmsh. In FreeCAD, for visualization, I increase number of points on airfoil. I don't want the final mesh to be dependent on the number of points on airfoil. In the geo file I have background mesh and also three statements to let only the background mesh to decide mesh element size:

lc = 100;
Field[1] = Attractor;
Field[1].FacesList = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 4, 5, 6, 7, 8, 9};
Field[1].NNodesByEdge = {100};
Field[2] = MathEval;
Field[2].F = Sprintf("F1/4 + %g", lc / 1000);
Background Field = 2;

Mesh.CharacteristicLengthExtendFromBoundary = 0;
Mesh.CharacteristicLengthFromPoints = 0;
Mesh.CharacteristicLengthFromCurvature = 0;

I tried two different brep files with different number of points on airfoil and expected the number of triangles to be the same after 2D meshing. However, they were not.

wingtemp.brep (coarse) wingtemp.brep (fine) wingtemp.geo

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gmsh/gmsh#943