|
[Sponsors] |
January 24, 2013, 13:22 |
Controlling Mesh size in interDyMFoam
|
#1 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 13 |
Hello Foamers,
Just a quick one here. I need to know how to control the mesh size of the dynamic refinement. I have a coarse mesh for the domain. 1) How do I manipulate the numbers in the dynamicMeshDict file to have the desired refined mesh size? i.e. How do my get the refine mesh size relative to the coarse mesh size in the domain. 2) What does it have to do with cAlpha? I'm using the default setting of cAlpha = 1. 3) Can I have the LowerRefineLevel = 0.0 instead of the default 0.001 since gas phase is at alpha1 = 0.0? Thank you. Here is the default dynamicMeshDict that I'm using: dynamicFvMesh dynamicRefineFvMesh; dynamicRefineFvMeshCoeffs { // How often to refine refineInterval 1; // Field to be refinement on field alpha1; // Refine field inbetween lower..upper lowerRefineLevel 0.001; upperRefineLevel 0.999; // If value < unrefineLevel unrefine unrefineLevel 10; // Have slower than 2:1 refinement nBufferLayers 1; // Refine cells only up to maxRefinement levels maxRefinement 2; // Stop refinement if maxCells reached maxCells 200000; // Flux field and corresponding velocity field. Fluxes on changed // faces get recalculated by interpolating the velocity. Use 'none' // on surfaceScalarFields that do not need to be reinterpolated. correctFluxes ( (phi Urel) (phiAbs U) (phiAbs_0 U_0) (nHatf none) (rho*phi none) (ghf none) ); // Write the refinement level as a volScalarField dumpLevel true; } |
|
January 24, 2013, 16:00 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
several unrelated issue
1- by maxCels, maxRefinement and nBufferLayers; 2-increasing of cAlpha1 makes interface much more compress and it is not related to interface 3- nope, because then it would refine almost all gas side
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
January 24, 2013, 18:08 |
|
#3 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 13 |
Thanks. I've been playing around with the numbers and I seem to get a good control of it now.
|
|
August 14, 2013, 09:40 |
|
#4 | |||
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 16 |
Hi guys,
two questions: 1) how several coexisting refinement zones with different refinement levels can be defined? I would like to have refinement level 1 i the whole disperse phase Quote:
Quote:
Quote:
Best regards, Ilya Last edited by linch; August 14, 2013 at 10:56. |
||||
December 15, 2014, 02:24 |
|
#5 |
New Member
WeiYang
Join Date: Jan 2014
Location: China
Posts: 3
Rep Power: 12 |
hello, i can reply your second question. the "nBufferLayers" is the number of the transition layer between the refine and coarse mesh. in most of cases, we chose 1 for the number.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation | tommymoose | ANSYS Meshing & Geometry | 48 | April 15, 2013 04:24 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 21:11 |
unstructure mesh size control near to wall using gambit | lalit kumar | FLUENT | 4 | July 6, 2010 15:13 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 14:09 |