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

How to use mesh adaptation in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2014, 11:38
Smile How to use mesh adaptation in OpenFOAM
  #1
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 13
Tensian is on a distinguished road
Hi everyone,

I am trying to learn something about mesh adaptation in OpenFOAM.

I read some works where itīs used, but not on the way I want.

I have stationary problem, so I donīt have to wonder about the variation of boundaries when I am running the code (like for example a free surface flow).

When I used FLUENT, I started the simulation and after some hundreds of iterations I used the adaptation tool. I define thresold for pressure or velocity, then pressed "Adap" buttom and...a new mesh was created, with higher density where gradients was going to be greater!

What I have to do for mimic this procedure in OpenFOAM? I read something about a dictionary called dynamicMeshDict, but I am not sure if I need something more or this is enough. I only want to run the code, and after for example 500 iterations stop it, adapt (increase mesh size for example twice), and then continue iterating until I found a mesh independence solution.

So my questions are:

1. What files do I need in order to adapt my mesh in this way? Have anybody an example of those files?

2. How can I link the adaptation technique with the code? Iam using simpleFoam and rhoSimpleFoam, so, when I create the (unknown for me now) suitable files, will the adaptation work automatically while the solver is running or I have to execute something more than the code? (for example stop simpleFoam run, write on terminal "dynamicMesh" or similar and then run simpleFoam again? Or is it done without user action?)

Any help will be really aprecciated. I am stuck in this issue...
Tensian is offline   Reply With Quote

Old   May 27, 2014, 07:30
Default
  #2
New Member
 
Join Date: Apr 2014
Posts: 9
Rep Power: 12
Josefina is on a distinguished road
Hi!

I started using this kind of tools this morning, so I am not an expert :$ but I think it could be helpful for you if you take a look at interDyMFoam tutorials or at the paper below that explains a little the code and how to create a new solver with a dynamic mesh.

http://www.tfd.chalmers.se/~hani/kur...tersReport.pdf

Josefina is offline   Reply With Quote

Old   May 27, 2014, 07:41
Default
  #3
New Member
 
Join Date: Apr 2014
Posts: 9
Rep Power: 12
Josefina is on a distinguished road
On the other hand, as far as your problem is a steady study, you can also try to use the utility refineMesh. The limit could be the fact that you have to know already the zone that you want to refine.

if you only use refineMesh all the domain will be refined. If you want to refine a zone, you can use a dictionary named topoSetDict that should be in the "system" directory of your case.

have a look to:

http://www.cfd-online.com/Forums/ope...efinement.html

good luck!
Josefina 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
[Commercial meshers] converting ICEM mesh to OpenFOAM bmikuz OpenFOAM Meshing & Mesh Conversion 9 May 10, 2016 17:47
[Salome] Mesh conversion Salome to OpenFOAM VMartinez OpenFOAM Meshing & Mesh Conversion 11 April 21, 2014 03:54
[Commercial meshers] mesh from ANSA to OpenFOAM bephi OpenFOAM Meshing & Mesh Conversion 18 April 8, 2013 08:14
[Commercial meshers] Exporting to OpenFOAM mesh with "inner" wall region raagh77 OpenFOAM Meshing & Mesh Conversion 0 April 24, 2012 07:23
Axisymmetric 2D mesh adaptation - ERROR Pepe CFX 3 May 30, 2011 09:28


All times are GMT -4. The time now is 19:15.