|
[Sponsors] |
March 16, 2014, 11:38 |
How to use mesh adaptation in OpenFOAM
|
#1 |
Senior Member
James
Join Date: May 2013
Posts: 116
Rep Power: 13 |
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... |
|
May 27, 2014, 07:30 |
|
#2 |
New Member
Join Date: Apr 2014
Posts: 9
Rep Power: 12 |
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 |
|
May 27, 2014, 07:41 |
|
#3 |
New Member
Join Date: Apr 2014
Posts: 9
Rep Power: 12 |
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! |
|
|
|
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 |