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

Controlling Mesh size in interDyMFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 24, 2013, 14:22
Default Controlling Mesh size in interDyMFoam
  #1
Member
 
Tayo
Join Date: Aug 2012
Location: FL
Posts: 94
Rep Power: 4
tayo is on a distinguished road
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;
}
tayo is offline   Reply With Quote

Old   January 24, 2013, 17:00
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   January 24, 2013, 19:08
Default
  #3
Member
 
Tayo
Join Date: Aug 2012
Location: FL
Posts: 94
Rep Power: 4
tayo is on a distinguished road
Thanks. I've been playing around with the numbers and I seem to get a good control of it now.
tayo is offline   Reply With Quote

Old   August 14, 2013, 09:40
Default
  #4
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 174
Rep Power: 7
linch is on a distinguished road
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:
Originally Posted by dynamicMeshDict
field alpha1; lowerRefineLevel 0.001; upperRefineLevel 2; maxRefinement 1;
and refinement level 3 at the interface simultaneously:
Quote:
Originally Posted by dynamicMeshDict
field alpha1; lowerRefineLevel 0.001; upperRefineLevel 0.999; maxRefinement 3;
2) What nBufferLayers exactly does? What does it mean:
Quote:
Originally Posted by dynamicMeshDict
// Have slower than 2:1 refinement
I tried out and changed it from 1 to 10, but nothing happened and no additional cells were refined.

Best regards,
Ilya

Last edited by linch; August 14, 2013 at 10:56.
linch is offline   Reply With Quote

Old   December 15, 2014, 03:24
Default
  #5
New Member
 
WeiYang
Join Date: Jan 2014
Location: China
Posts: 3
Rep Power: 3
yangzie2014 is on a distinguished road
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.
yangzie2014 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
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 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 12:55
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09


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