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

meshing axisymmetric problems with irregular boundaries

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By phsieh2005

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2010, 15:12
Default meshing axisymmetric problems with irregular boundaries
  #1
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Hello,

I have an axisymmetric problem wit internal flow and with an irregular outer boundary. Thus the problem is not easily handled with the blockMesh utility. Thus, I think I need to use the snappyHexMesh utility.

As I understand it, the snappyHexMesh requires an STL file. I think I can generate the STL by manually (the ascii format is described here)

Since the problem is internal, I will try to create a wedge-type background mesh, and assign wedge patches to the azimuthal faces.

Is that the right way to go about this problem?

Thank you,

Mirko
mirko is offline   Reply With Quote

Old   July 15, 2010, 03:13
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 many ways to generate an Stereolithography (STL)-Files. Most Cad Programs for example Salome http://www.salome-platform.org/ or freecad http://free-cad.sourceforge.net/ or Blender http://www.blender.org/ to name a few opensource programs can export to STL.

an other way is discribed here (blender->calculix->openfoam)
http://www.openfoamworkshop.org/08/p...FOAMCharts.pdf

search this forum for internal flow and snappyhexmesh (SHM) http://www.cfd-online.com/Forums/ope...rnal-flow.html

and you will find an answer how to use SHM for internal flows.
=> I believe it was s.th like you must provide s.th like "location in mesh" and this "point" has really to be inside the STL for internal flow. otherwise you would mesh outside like in a windtunnel.

before you work with "blockmesh" which should only used for simple examples try discretizer http://www.discretizer.org/ or engrid http://engits.eu/cms/index.php?id=4

Last edited by elvis; July 15, 2010 at 03:39.
elvis is offline   Reply With Quote

Old   July 15, 2010, 10:35
Default
  #3
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by elvis View Post
Hi,

there are many ways to generate an Stereolithography (STL)-Files. Most Cad Programs for example Salome http://www.salome-platform.org/ or freecad http://free-cad.sourceforge.net/ or Blender http://www.blender.org/ to name a few opensource programs can export to STL.

an other way is discribed here (blender->calculix->openfoam)
http://www.openfoamworkshop.org/08/p...FOAMCharts.pdf

search this forum for internal flow and snappyhexmesh (SHM) http://www.cfd-online.com/Forums/ope...rnal-flow.html

and you will find an answer how to use SHM for internal flows.
=> I believe it was s.th like you must provide s.th like "location in mesh" and this "point" has really to be inside the STL for internal flow. otherwise you would mesh outside like in a windtunnel.

before you work with "blockmesh" which should only used for simple examples try discretizer http://www.discretizer.org/ or engrid http://engits.eu/cms/index.php?id=4
Thanks Elvis
mirko is offline   Reply With Quote

Old   July 17, 2010, 13:41
Default
  #4
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
Hi,

Beware, snappyHexMesh will create a 3D mesh... It sounds as if you want an axisymmetric 2D mesh.

/Ola
olwi is offline   Reply With Quote

Old   July 19, 2010, 09:21
Default
  #5
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
As I still have access to a Fluent/Gambit license (it will expire eventually), I ended up creating the wedge geometry with a hex mesh in Gambit.

I exported the mesh as a fluent file, labeling the wedge faces as symmetry.

Then I used the fluent3DtoFoam utility.

Finally, I corrected the wedge faces in the dictionaries from symmetry to wedge.

Quote:
Originally Posted by olwi View Post
Hi,

Beware, snappyHexMesh will create a 3D mesh... It sounds as if you want an axisymmetric 2D mesh.

/Ola
Regarding a snappyHexMesh into 2D mesh, I was told during a training course that one can
- set-up a wedge geometry,
- mesh it using snappyHexMesh,
- remove the 3D mesh
- extract the 2D mesh of the wedge face into the 3D domain

But I do not know the commands to accomplish that.
mirko is offline   Reply With Quote

Old   July 19, 2010, 09:55
Default
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi,

This procedure is a little bit tedious, but, will get the job done:

run snappyHexMesh - make sure that you have the face as boundary patch that you want to extrude as 2D.

run extrudeMesh. Search for a file called extrudeProperties. This will give the name of the patch that you want to extrude. You will then have a 2D mesh with 1 cell thick.

rum makeAxialMesh to convert the 2D mesh into wedge.

If you already have the fluent/gamit mesh, then, you should be able to use the extrudeMesh and makeAxialMesh utilities.

Pei
sourav90 likes this.
phsieh2005 is offline   Reply With Quote

Old   July 20, 2010, 10:17
Default
  #7
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by phsieh2005 View Post
Hi,

This procedure is a little bit tedious, but, will get the job done:

run snappyHexMesh - make sure that you have the face as boundary patch that you want to extrude as 2D.

run extrudeMesh. Search for a file called extrudeProperties. This will give the name of the patch that you want to extrude. You will then have a 2D mesh with 1 cell thick.

rum makeAxialMesh to convert the 2D mesh into wedge.

If you already have the fluent/gamit mesh, then, you should be able to use the extrudeMesh and makeAxialMesh utilities.

Pei
Thank you. I will take a look at extrudeMesh & makeAxialMesh

Mirko
mirko 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
[mesh manipulation] Problems with periodic/cyclic boundaries sebastian OpenFOAM Meshing & Mesh Conversion 7 March 16, 2012 05:56
Benchmark problems for axisymmetric cases in 2D Malarvizhi Main CFD Forum 4 February 10, 2006 01:20
ghost cells in axisymmetric problems ma Main CFD Forum 2 May 17, 2004 14:52
Problems with internal angles when meshing Ivan CFX 2 August 30, 2002 07:54
Meshing problems??? Nish CFX 3 August 22, 2000 03:57


All times are GMT -4. The time now is 23:37.