CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Salome] Error for Quad-Dominant Mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Alczem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2023, 00:19
Default Error for Quad-Dominant Mesh
  #1
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 108
Rep Power: 5
dasith0001 is on a distinguished road
Hi,

I am meshing in a 3D mesh domain in SALOME. When ever I use a Quad-Dominant mesh and try to export to OpenFOAM as a .UNV file, it gives an error saying '' I will lose some cells'' upon the export.

Q1. How can I use Quad cells in my mesh to be imported to OpenFOAM
Q2. Other than tet-mesh, can I use anything else to be use in OpenFOAM

currently I am using NETGEN-1D-2D-3D hypothesis.

Thank you.
Dasith
dasith0001 is offline   Reply With Quote

Old   December 7, 2023, 03:54
Default
  #2
Senior Member
 
Join Date: Dec 2021
Posts: 209
Rep Power: 5
Alczem is on a distinguished road
Hey!


I suppose you get a message about pyramid cells not being exported when you use the UNV format? As far as I know, Salome can't manage pyramids when exporting the mesh as a UNV. You can use a script to export your mesh directly from Salome to your OpenFOAM case (meaning it will write the polyMesh folder). Check out this link:


https://github.com/EastEriq/salomeTo...penFOAM_GUI.py


Be warned, this might take a long time so be patient, and do some tests with a lightweight mesh this should be able to export meshes with pyramids.


Other than that, you can also avoid creating pyramids altogether. Just disable the Quad dominant option in NetGen, and it should create only tetrahedral cells. As an alternative you can also try to create a structured mesh if your geometry allows it. And finally, you can look into snappyHexMesh and cfMesh to generate OpenFOAM meshes.
Alczem is offline   Reply With Quote

Old   December 7, 2023, 17:19
Default
  #3
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 108
Rep Power: 5
dasith0001 is on a distinguished road
Quote:
Originally Posted by Alczem View Post
Hey!


I suppose you get a message about pyramid cells not being exported when you use the UNV format? As far as I know, Salome can't manage pyramids when exporting the mesh as a UNV. You can use a script to export your mesh directly from Salome to your OpenFOAM case (meaning it will write the polyMesh folder). Check out this link:


https://github.com/EastEriq/salomeTo...penFOAM_GUI.py


Be warned, this might take a long time so be patient, and do some tests with a lightweight mesh this should be able to export meshes with pyramids.


Other than that, you can also avoid creating pyramids altogether. Just disable the Quad dominant option in NetGen, and it should create only tetrahedral cells. As an alternative you can also try to create a structured mesh if your geometry allows it. And finally, you can look into snappyHexMesh and cfMesh to generate OpenFOAM meshes.
Hi!

Thank you very much for the info, that was really helpful.
I did not know there is a way to write the SALOME mesh directly to polyMesh, I will certainly give it a go.

I've been using snappy and I am just starting to try SALOME. just wondering, how can I create or force it to create structured mesh ? what options do I have for that in SALOME ?

Thank you
Dasith
dasith0001 is offline   Reply With Quote

Old   December 8, 2023, 04:30
Default
  #4
Senior Member
 
Join Date: Dec 2021
Posts: 209
Rep Power: 5
Alczem is on a distinguished road
Structured mesh in Salome is in my opinion a bit tedious when you have a complex geometry, but I am not the most experienced user basically, try to decompose the geometry in blocks that are extrudable. You can then mesh a starting face and an end face with 2D elements, and extrude these elements from the starting face to the end face. You can find several tutorials online.
dasith0001 likes this.
Alczem is offline   Reply With Quote

Old   December 10, 2023, 18:29
Default
  #5
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 108
Rep Power: 5
dasith0001 is on a distinguished road
Awesome, thank you very much
dasith0001 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to perform larger deformations while mantaining good mesh with adjoint solver FormulaStudentFEB STAR-CCM+ 0 October 13, 2023 11:27
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[ICEM] Hexa dominant meshing Pat84 ANSYS Meshing & Geometry 19 December 2, 2015 17:20


All times are GMT -4. The time now is 14:35.