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

foamMeshToFluent : Error for 2D-axi simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2011, 13:17
Default foamMeshToFluent : Error for 2D-axi simulation
  #1
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
Hi Forum!

I'm trying to have a benchmark between OpenFOAM and FLUENT with a very simple burner. It is basically constituted by a circular gas inlet and an annular air inlet which end up in a cylindrical combustion chamber.
So my problem is essentially 2D axisymmetric.

In order to have the same mesh for OF and FLUENT runs I created the (3D) grid using blockMesh and wedge shaped blocks.

First I simulate my burner using reactingFoam and then I exported my 3D grid in .msh format and verified it in FLUENT.

Reading this thread I found out that I could obtain a 2D-axisymmetric mesh from my 3D one simply importing it into GAMBIT, deleting the volume and all unnecessary surfaces and then re-exporting it in .msh format... but it doesn't work!

FLUENT can read the file, but GAMBIT doesn't.

That seems quite strange...
Do anyone know how to manage this?
Here's my .msh file.



.Alex.


[P.S.: it would be nice if fluentMeshToFoam could handle axisymmetric meshes from 2D grids..!]
AleDR is offline   Reply With Quote

Old   January 14, 2011, 05:27
Default
  #2
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
try this one:
-make 2.5D Case by extruding in the z-dir.
-make sure the "symm"-faces are in x-y-plane
-make sure every possible node has got a pos. location in x and y
-group the front and back face e.g. "FLUID"
-name the axis faces e.g. "AXIS"

fluent3DMeshToFOAM -*.msh
makeAxialMesh -axis AXIS -wedge FLUID
collapseEdge 1e-6 180

extract the boundary.gz in ~/2/polyMesh
copy everything from 2/polyMesh to constant/polyMesh
delete 1/ and 2/

TATA!!



P.S.: i wrote myself a small script for handling all of this stuff for a multiregioncase... if somebody needs it drop a mail
mvoss is offline   Reply With Quote

Old   January 17, 2011, 04:29
Default
  #3
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
Thank you, neewbie!

This is how I can manage to export my high-quality 2D axisymmetric mesh constructed in GAMBIT in OpenFOAM! Very useful script, I'll drop you a email right now!!!


Anyway just for this case my problem is the exact opposite: I have a mesh made up using blockMesh (so it is essentially 3D... or 2.5D as you say!) and now I'd like to transform it in a 2D mesh for FLUENT! Si ti possible??

...Anyway I have to say yours is the best option for mantaining the same node position (mesh invariance) to simulate the same case in FLUENT and OF!!
AleDR is offline   Reply With Quote

Old   January 17, 2011, 04:43
Default
  #4
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
Quote:
Originally Posted by AleDR View Post
I have a mesh made up using blockMesh (so it is essentially 3D... or 2.5D as you say!) and now I'd like to transform it in a 2D mesh for FLUENT!
not quiet but shure did you tried foamMeshToFluent? and i think oyu can cut of the z-Dir. with flattenMesh. never did this.
mvoss is offline   Reply With Quote

Old   January 17, 2011, 04:57
Default
  #5
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
Yes, I tried foamMeshToFluent and now I have a .msh file which I can read and visualize in FLUENT but I can't import in GAMBIT for modifying it as a 2D..!

Mmmh, no, I didn't try flattenMesh... but as far as I know it is useful for flattening the front and back boundaries of a 2D mesh, is it??
AleDR is offline   Reply With Quote

Old   January 17, 2011, 05:02
Default
  #6
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
sorry,... no idea about gambit. Can´t you go for symmetry in FLUENT, .... i know this isn't solving the problem.
mvoss is offline   Reply With Quote

Old   January 17, 2011, 06:42
Default
  #7
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
...Mmmh, no, there are not such mesh manipulation features in FLUENT...
Ok, last scenario: I'll create a quasi-similar mesh in 2D using GAMBIT!

But for other cases I will use your suggestions and script:
- make the mesh in GAMBIT as 2D;
- export it in OpenFOAM making it 2.5-D;
- modifying for 2D-axysimmetric simulation.

Thank you!!!
AleDR is offline   Reply With Quote

Reply

Tags
axisymmetric, foammeshtofluent, reactingfoam


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
Solar Radiation in OpenFOAM plainstyle OpenFOAM Running, Solving & CFD 15 July 8, 2014 05:43
Continuous vs interrupted simulation sega OpenFOAM Running, Solving & CFD 4 November 3, 2008 15:29
FoamMeshToFluent 2D axi frackowi OpenFOAM Post-Processing 1 February 12, 2008 21:45
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 14:02
3-D Contaminant Dispersal Simulation Apple L S Chan Main CFD Forum 1 December 23, 1998 11:06


All times are GMT -4. The time now is 21:33.