dynamic triangulation of a mesh possible?

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

dynamic triangulation of a mesh possible?

Post by herbk »

Hi,
sveral times i want to show the airflow around airfoil it's above the stall angle. To have e nice view i create a big box where the airfoil is placed inside. If i create the mesh, i can set the max triangle size. If a use a big value the calkulation is quick, but at paraview the airfoil looks not realy likea airfoil. If use a smaler value it looks better at paraview, but still not realy good at a max size of 5mm, but the time to calculate the mesh is going up, - off course.

Is there somwhere a setting to create a mesh which has little triangles around the object's contours, but getting bigger with the distance to it?

Here a screenshot of a airfoil created with 5mm max teiangle size at Paraview
profile_zoom.jpg
profile_zoom.jpg (21.29 KiB) Viewed 856 times
Especially at the LE, the most important part of an airfoil, the triangulation is very pronounced und im worry that it falsifies the shown airflow to.


OS: openSUSE Leap 15.1 (KDE//usr/share/xsessions/plasma5)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18811 (Git) AppImage
Build type: Release
Branch: master
Hash: b809867021deb37be1039dab37b9fe1cafab254e
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

BTW: Is there somwhere a manual which parameters are changing what? Since the new UI there are a lot of changable values at the Data box, but not much at the UI Popups...
Attachments
DU_06_W_200_Stroemung.fcstd
(89.64 KiB) Downloaded 50 times
Gruß Herbert
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: dynamic triangulation of a mesh possible?

Post by thschrader »

Hi Herbert,
you can use the mesh-refinement options for mesh-design.
In this case:cfmesh. Works with gmsh/snappyhexmesh too (but without boundary-layers...)
example cfmesh:
naca2412.FCStd
(171.78 KiB) Downloaded 63 times
done with:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)
mesh_refinement.JPG
mesh_refinement.JPG (118.17 KiB) Viewed 792 times
cfmesh_with_boundary_layers.JPG
cfmesh_with_boundary_layers.JPG (142.79 KiB) Viewed 792 times
Post Reply