Modifying 2-D mesh in Gmsh
******************* 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. ******************* Dear All When I import a 3-D mesh in Gmsh, it can recognise 2-D surfaces and I label them as physical groups for Nektar to be used as boundary conditions. However, in case of a 2-D mesh, Gmsh cannot recognise 1-D line elements so I cannot label them to use as boundary conditions in Nektar. How can I get these 1-D elements recognised in Gmsh? Kind regards syavash
Hi Syavash, Gmsh do recognise 1D entities, i.e. lines and curves. You just need to select curve in physical group and select the domain boundaries (lines or curves) and assign name to them. The fluid domain then becomes a surface and after dealing with the boundaries you need also to assign a pyhiscal group to the surface(s). Cheers, Mohsen From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of Ehsan Asgari <eh.asgari@gmail.com> Date: Tuesday, 9 May 2023 at 10:23 To: nektar-users <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Modifying 2-D mesh in Gmsh ⚠ External sender. Take care when opening links or attachments. Do not provide your login details. This email from eh.asgari@gmail.com 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. Dear All When I import a 3-D mesh in Gmsh, it can recognise 2-D surfaces and I label them as physical groups for Nektar to be used as boundary conditions. However, in case of a 2-D mesh, Gmsh cannot recognise 1-D line elements so I cannot label them to use as boundary conditions in Nektar. How can I get these 1-D elements recognised in Gmsh? Kind regards syavash
Thanks Mohsen So the problem should be in the third-party mesh generator that I use. I export the mesh into Nastran format and then I load it into Gmsh. But only the 2-D elements are recognised! I was wondering if there is an alternative format for exporting a 2-D mesh to Gmsh, so 1-D line elements can also be identified. syavash On Tue, May 9, 2023 at 2:40 AM Mohsen Lahooti < Mohsen.Lahooti@newcastle.ac.uk> wrote:
Hi Syavash,
Gmsh do recognise 1D entities, i.e. lines and curves. You just need to select curve in physical group and select the domain boundaries (lines or curves) and assign name to them. The fluid domain then becomes a surface and after dealing with the boundaries you need also to assign a pyhiscal group to the surface(s).
Cheers,
Mohsen
*From: *nektar-users-bounces@imperial.ac.uk < nektar-users-bounces@imperial.ac.uk> on behalf of Ehsan Asgari < eh.asgari@gmail.com> *Date: *Tuesday, 9 May 2023 at 10:23 *To: *nektar-users <nektar-users@imperial.ac.uk> *Subject: *[Nektar-users] Modifying 2-D mesh in Gmsh
⚠ External sender. Take care when opening links or attachments. Do not provide your login details.
This email from eh.asgari@gmail.com 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.
Dear All
When I import a 3-D mesh in Gmsh, it can recognise 2-D surfaces and I label them as physical groups for Nektar to be used as boundary conditions. However, in case of a 2-D mesh, Gmsh cannot recognise 1-D line elements so I cannot label them to use as boundary conditions in Nektar.
How can I get these 1-D elements recognised in Gmsh?
Kind regards
syavash
As I explained in my previous email, Gmsh cannot recognize an imported 2-D mesh (Nastran format) boundaries, so I am not able to specify the physical group. I played around with several options in Gmsh to circumvent the problem but to no avail. My question is how to properly convert a 2-D mesh to Nektar++ format when using a third-party meshing package (ICEM, GridPro, etc) ? What is your experience with this issue? Kind regards syavash On Tue, May 9, 2023, 23:47 Ehsan Asgari <eh.asgari@gmail.com> wrote:
Thanks Mohsen
So the problem should be in the third-party mesh generator that I use. I export the mesh into Nastran format and then I load it into Gmsh. But only the 2-D elements are recognised! I was wondering if there is an alternative format for exporting a 2-D mesh to Gmsh, so 1-D line elements can also be identified.
syavash
On Tue, May 9, 2023 at 2:40 AM Mohsen Lahooti < Mohsen.Lahooti@newcastle.ac.uk> wrote:
Hi Syavash,
Gmsh do recognise 1D entities, i.e. lines and curves. You just need to select curve in physical group and select the domain boundaries (lines or curves) and assign name to them. The fluid domain then becomes a surface and after dealing with the boundaries you need also to assign a pyhiscal group to the surface(s).
Cheers,
Mohsen
*From: *nektar-users-bounces@imperial.ac.uk < nektar-users-bounces@imperial.ac.uk> on behalf of Ehsan Asgari < eh.asgari@gmail.com> *Date: *Tuesday, 9 May 2023 at 10:23 *To: *nektar-users <nektar-users@imperial.ac.uk> *Subject: *[Nektar-users] Modifying 2-D mesh in Gmsh
⚠ External sender. Take care when opening links or attachments. Do not provide your login details.
This email from eh.asgari@gmail.com 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.
Dear All
When I import a 3-D mesh in Gmsh, it can recognise 2-D surfaces and I label them as physical groups for Nektar to be used as boundary conditions. However, in case of a 2-D mesh, Gmsh cannot recognise 1-D line elements so I cannot label them to use as boundary conditions in Nektar.
How can I get these 1-D elements recognised in Gmsh?
Kind regards
syavash
participants (2)
-
Ehsan Asgari
-
Mohsen Lahooti