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

Unstructured Grid using InterFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 3, 2011, 07:18
Default Unstructured Grid using InterFoam
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 275
Rep Power: 7
Andrea_85 is on a distinguished road
Hello everyone,
I'm trying to simulate a flow around a disk using a fully unstructured grid (all prisms) using interFoam. The mesh is generated with gmsh.
I have several problems on the quality of the solution, concerning the contact angle on the surface of the disc (does not seem to remain constant, probably due to the fact that a lot of cells has only one line, 2D case, on the disc) and also get a very irregular front.
So the question is:
would be better to change the mesh? (even if I do not know how to build a well structured grid around a circle)
Should i change the schemes using by interFoam to get more accurate solution? (now i'm using the default schemes, the same schemes that are in the dambreak tutorial case).

Attached a .jpg of the mesh.

Thanks for any help

andrea
Attached Images
File Type: jpg mesh.jpg (97.5 KB, 47 views)
Andrea_85 is offline   Reply With Quote

Old   February 3, 2011, 14:40
Default
  #2
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 7
flowris is on a distinguished road
It is not very difficult to construct a structured mesh around a disk using blockMesh.
- Take four points on your cylinder, namely at 45, 135, 225 and 315.
- I suppose you work in a rectangular domain, so you also have four corner points on the outer boundaries.
- Now make 4 blocks, each time using two adjacent points on the disk and two corner points.

If you add grading in the right direction, you will have high resolution on the disk boundary.
flowris is offline   Reply With Quote

Old   February 4, 2011, 04:23
Default
  #3
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 275
Rep Power: 7
Andrea_85 is on a distinguished road
Hi,
thanks for the answer flowris. Surely if I had to simulate the flow around a single disk would be easy with a structured grid (as in the tutorial), unfortunately I have to simulate the flow around 100-200 discs placed randomly and I do not think it is feasible that kind of geometry.

Any suggestions?

andrea
Andrea_85 is offline   Reply With Quote

Old   February 4, 2011, 05:38
Default
  #4
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 7
flowris is on a distinguished road
In that case, I suggest you build an unstructured mesh (triagonals) and add boundary layers (rectangles) around the disks. Maybe you can use snappyHexMesh. I haven't done this myself, though.
flowris is offline   Reply With Quote

Old   February 4, 2011, 06:01
Default
  #5
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 275
Rep Power: 7
Andrea_85 is on a distinguished road
So to use a structured grid only around the disc and use an unstructured grid for the rest. might be a good idea!
I want to try


Thanks

andrea
Andrea_85 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2D unstructured Grid prapanj Main CFD Forum 4 March 15, 2008 18:01
unstructured mesh grid independence for Fluent Shane Schouten FLUENT 0 October 11, 2006 16:50
to Identify unstructured grid and structrued grid harry Main CFD Forum 4 February 17, 2006 03:10
Unstructured grid approach Li Yang Main CFD Forum 8 June 11, 2003 10:48
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 05:59


All times are GMT -4. The time now is 16:01.