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

[Salome] Salome body fitting for OpenFOAM case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2014, 23:30
Default Salome body fitting for OpenFOAM case
  #1
Member
 
Matt
Join Date: Oct 2012
Posts: 39
Rep Power: 14
fatirishman53 is on a distinguished road
I am replicating a backward step model from a technical paper and would appreciate some help with Salome and OpenFOAM processes.

I have the backward step modeled up as three STEP files: the inlet section, the initial section after the step, and a buffer section.

The only way I could seem to create a uniform grid was by using the "Body Fitting" mesh in Salome. Granted, I could easily do this with a blockMeshDict, but I'm trying to incorporate Salome for more complicated meshes, for use in a classroom setting.

The problem with "body fitting" is that I cannot do "Create Group from Geometry" using groups created from the "Geometry" module. For some reason, it creates the groups, but they are empty and have a warning symbol on them. Unfortunately, this is the only way I know how to set up the Salome mesh for use with OpenFOAM's "ideasUnvToFoam".

I tried doing "Create Boundary Elements", then creating a group using a filter for "Lying on Geometry". However, instead of getting a 2D mesh on the independent face used for the filter, it includes all 3D elements touching that face. Since the mesh is not discretized in the direction normal to the face, I essentially get a result that includes all of the original elements.

I would appreciate any help. Thanks in advance.
fatirishman53 is offline   Reply With Quote

Old   October 1, 2014, 05:53
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,
there are two threads at salome forum
http://www.salome-platform.org/forum...3165#686106236
http://www.salome-platform.org/forum...6311#767196430
you are not limited to use OpenFOAM's "ideasUnvToFoam"
elvis is offline   Reply With Quote

Old   October 5, 2014, 13:26
Default
  #3
Member
 
Matt
Join Date: Oct 2012
Posts: 39
Rep Power: 14
fatirishman53 is on a distinguished road
Quote:
Originally Posted by elvis View Post
Hi,
there are two threads at salome forum
http://www.salome-platform.org/forum...3165#686106236
http://www.salome-platform.org/forum...6311#767196430
you are not limited to use OpenFOAM's "ideasUnvToFoam"
Thank you very much! I'll try these out!
fatirishman53 is offline   Reply With Quote

Old   October 5, 2014, 13:59
Default
  #4
Member
 
Matt
Join Date: Oct 2012
Posts: 39
Rep Power: 14
fatirishman53 is on a distinguished road
Quote:
Originally Posted by elvis View Post
Hi,
there are two threads at salome forum
http://www.salome-platform.org/forum...3165#686106236
http://www.salome-platform.org/forum...6311#767196430
you are not limited to use OpenFOAM's "ideasUnvToFoam"
Please correct me if I'm wrong, but after going through the study dumps and the script code, it looks like Nicholas's script requires the boundary meshes to be already in groups. This is where my whole problem lies. With the "body fitting" mesh, using pre-defined face groups to "Create Group from Geometry" does not work. Any other method I have tried results in groups of complete 3D elements, rather than cell faces lying on the pre-defined boundary faces.

Then again, I could be interpreting the process incorrectly
fatirishman53 is offline   Reply With Quote

Old   April 17, 2015, 08:35
Default
  #5
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 19
chriss85 will become famous soon enough
Were you able to solve this problem? I'm seeing the same issue.
chriss85 is offline   Reply With Quote

Old   March 17, 2016, 11:58
Default
  #6
Member
 
Sami
Join Date: Nov 2012
Location: Cap Town, South Africa
Posts: 87
Rep Power: 14
Mehrez is on a distinguished road
Hi,

Did you solve this problem ?
Thank you,
Mhrz
Mehrez is offline   Reply With Quote

Old   March 23, 2016, 13:31
Default
  #7
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
Hi,
Salome is great, but if you're looking for something that is free, simple to use and quick, that also handles complex geometry easily, I might suggest you have a look at the SketchUp Meshkit extension.

I developed this extension and have used it to set up some very geometrically complex industrial OpenFOAM calculations over the past year. I know that others are using this in a classroom setting, as well.

Extension Page: http://extensions.sketchup.com/en/co...y-tetgen-tools
Video Tutorial: https://youtu.be/On3tg4kCchw

Anyway, I hope this helps!

Kind regards,
Peter
opedrofunk is offline   Reply With Quote

Old   March 23, 2016, 14:40
Default
  #8
Member
 
Sami
Join Date: Nov 2012
Location: Cap Town, South Africa
Posts: 87
Rep Power: 14
Mehrez is on a distinguished road
Hi,
Thank you for your answer.
I see that the SketchUp Meshkit extension creates finite element mesh. Can this mesh be used to perform simulations using OpenFOAM (FVM) ?
Thank you.

Mhrz

Quote:
Originally Posted by opedrofunk View Post
Hi,
Salome is great, but if you're looking for something that is free, simple to use and quick, that also handles complex geometry easily, I might suggest you have a look at the SketchUp Meshkit extension.

I developed this extension and have used it to set up some very geometrically complex industrial OpenFOAM calculations over the past year. I know that others are using this in a classroom setting, as well.

Extension Page: http://extensions.sketchup.com/en/co...y-tetgen-tools
Video Tutorial: https://youtu.be/On3tg4kCchw

Anyway, I hope this helps!

Kind regards,
Peter
Mehrez is offline   Reply With Quote

Old   March 23, 2016, 15:09
Default
  #9
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
Hi Mehrez,
Yes, absolutely!

I do 90% of my simulation work with OpenFOAM using SketchUp Meshkit to set them up. Meshkit basically provides a really easy way to use SketchUp (free) to draw/import/modify 3D geometry, set up boundary conditions, mesh refinement, patch names, etc... and export to the native meshing format of number of different free, opensource and commercial meshers. Right now you can use Gmsh (my personal preference since you can easily create boundary layers, generate hex meshes, etc.), TetGen, Netgen, and FRGEN3D native formats.

All of these meshers can be used with OpenFOAM (or any finite volume code)! In fact, OpenFOAM comes standard with utilities to import meshes from these generators (gmshToFoam, tetgenToFoam, etc...).

Anyway, I made this tool to support the kind of simulations I do (large scale engineering simulations (500M+ cells) with complex geometries and limited setup time).

I hope it will be useful to others too!

Kind regards,
Peter
opedrofunk is offline   Reply With Quote

Old   April 10, 2024, 15:51
Default Solved
  #10
New Member
 
Sami Safarini
Join Date: Sep 2021
Posts: 11
Rep Power: 5
samisafarini is on a distinguished road
I was able to solve the issue by first using Modification > Create boundary elements . Followed by Mesh>Create groups from geometry.
samisafarini 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
[Need some advise] Am I doing right?? Simulating a rotational mixer setasena STAR-CCM+ 4 March 10, 2013 11:32
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24
Standart test case for blunt body Munikrishna Main CFD Forum 0 August 17, 2005 10:24
c1 body test case Eric Lenormand Main CFD Forum 0 March 2, 2000 07:54
Ahmed bluff body test case Richard Howard Main CFD Forum 0 February 22, 2000 10:26


All times are GMT -4. The time now is 06:41.