gmsh fails on AirplaneDesign aerofoil shapes

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
alpatters
Posts: 5
Joined: Mon May 02, 2022 10:10 am

gmsh fails on AirplaneDesign aerofoil shapes

Post by alpatters »

Hey,

I'm trying to get a 3D mesh working of an aerofoil. Gmsh, CfdOF, AirPlaneDesign.

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * Plot 2022.4.17
  * AirPlaneDesign 0.4.0
  * CurvedShapes 1.0.4
  * CfdOF 1.18.0

My (failing) procedure:

1) Using AirPlaneDesign create a NACA aerofoil extruded to 3D.
1a) Checked that it is a "Solid". Geomtery check gives 0 failures or issues.

2) Create a cube surrounding the aerofoil.
3) Cut the aerofoil into the 3D cube. The cut is the surrounding cube that I want to mesh. The aerofoil is a surface, its internal space wont be meshed.

4) Use gmsh to mesh the Cut (the cube with the aerofoil cut out.

5) Open the resulting mesh in Paraview.

At this point Paraview shows that the internal cut of the aerofoil is not an aerofoil but a cube or bounding box of the aerofoil's shape.
So My mesh is the cube with an inner bounding box cut out.

Any help or pointers to get the aerofoil meshed properly for CfdOf ?
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: gmsh fails on AirplaneDesign aerofoil shapes

Post by oliveroxtoby »

alpatters wrote: Thu Nov 03, 2022 12:25 pm Any help or pointers to get the aerofoil meshed properly for CfdOf ?
Please could you upload a FreeCAD file to test with, otherwise it's really guesswork.
alpatters
Posts: 5
Joined: Mon May 02, 2022 10:10 am

Re: gmsh fails on AirplaneDesign aerofoil shapes

Post by alpatters »

Here is the FC file with the objects and my mesh. If you open the mesh in Paraview and slice through it will reveal that the cut is a rectangular shape and not of the aerofoil.
Attachments
test_aerofoil.FCStd
(628.14 KiB) Downloaded 43 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: gmsh fails on AirplaneDesign aerofoil shapes

Post by oliveroxtoby »

alpatters wrote: Thu Nov 03, 2022 5:05 pm Here is the FC file with the objects and my mesh. If you open the mesh in Paraview and slice through it will reveal that the cut is a rectangular shape and not of the aerofoil.
Is this the correct file? When I open it I see a sphere rather than an airfoil.
alpatters
Posts: 5
Joined: Mon May 02, 2022 10:10 am

Re: gmsh fails on AirplaneDesign aerofoil shapes

Post by alpatters »

Ah sorry. I've been away for a bit. Looks like that was the wrong file.
I'll upload the correct one
alpatters
Posts: 5
Joined: Mon May 02, 2022 10:10 am

Re: gmsh fails on AirplaneDesign aerofoil shapes

Post by alpatters »

Ok maybe some time away works. I got this to work now. Thanks for your help.
Post Reply