Hi Zhikang,

you can create your mesh using gmsh and convert it to the appropriate format for nektar using NekMesh. 

I think for a simple case of cylinder, you also can set up the geometry using geo file format of gmsh and generate the mesh directly using Nekmesh

If you have installed Nektar++, please visit nektar++/utilities/NekMesh/Tests
In the Test folder, you can find several examples of generating meshes that could help you

Cheers,
Mohsen

From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of 董智康 <darrendongzhikang@gmail.com>
Sent: Tuesday, July 5, 2022 10:10 PM
To: nektar-users <nektar-users@imperial.ac.uk>
Subject: [Nektar-users] 2D Navier Stokes mesh generation
 

*******************
This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender.
If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address.
*******************
Hi all,

I am learning 2D Navier Stokes equations by using Nektar++, it is a really nice tool! However, I met a problem. I’m not sure how to customize my own 2D mesh, say change the flow domain, radius and position of cylinder. I have read though your tutorials. It seems like I need a CAD .step file to achieve my goal. But I also noticed that Nektar++ can generate meshes of NACA wings. So I’m wondering if I can do the similar things to generate meshes of a cylinder.

Best,
Zhikang

_______________________________________________
Nektar-users mailing list
Nektar-users@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/nektar-users