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

beginner in adaptive mesh refinement

Register Blogs Community New Posts Updated Threads Search

Like Tree15Likes
  • 2 Post By aki_yafuji
  • 7 Post By KrisT
  • 1 Post By aki_yafuji
  • 2 Post By idefix
  • 2 Post By potentialFoam
  • 1 Post By opencfd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2010, 11:57
Default beginner in adaptive mesh refinement
  #1
New Member
 
yafuji aki
Join Date: Jul 2010
Location: Japan
Posts: 14
Rep Power: 16
aki_yafuji is on a distinguished road
Hi to everyone!
I am Aki, a beginner in OpenFOAM.

I am intrested in adaptive mesh refinement and I managed to find
"dynamicMeshDict" dictionary, but I am not sure how it works...
Would you tell me a condition of the refinement? The mesh is refined
automatically when the velocity (or the Courant number) exceeds a given value?

And, I am not sure coefficients in the dictionary...

constant/dynamicMeshDict
--------------------------------------
dynamicFvMesh dynamicRefineFvMesh;

dynamicRefineFvMeshCoeffs
{
refineInterval 1;
field alpha1;
lowerRefineLevel 0.001;
upperRefineLevel 0.999;
unrefineLevel 10;
nBufferLayers 1;
maxRefinement 2;
maxCells 200000;
correctFluxes
(
(
phi
U
)
);
dumpLevel true;
}
--------------------------------------

I have performed some tutorials, so I guess "maxRefinement" means the max
refinement number. But I cound only understand it. I can not understand
what "refineInterval" and "maxCells" mean. And what are "lowerRefineLevel"
and "upperRefineLevel"...?
I would be grateful if you could provide me the meanings of them.

Thanks in advance!

Aki
amuzeshi and li siye like this.
aki_yafuji is offline   Reply With Quote

Old   July 9, 2010, 05:47
Default
  #2
Member
 
Join Date: May 2009
Posts: 32
Rep Power: 17
KrisT is on a distinguished road
As far as I understand:

refineInterval - specifies how often (every n:th timestep) the grid should be refined.

maxCells - limits the number of cells, should never be greater than the given number, an approximate number.

lowerRefineLevel - grid gets refined if "alpha1" is lower than this value.

upperRefineLevel - grid gets refined if "alpha1" is bigger than this value.
KrisT is offline   Reply With Quote

Old   July 9, 2010, 14:39
Default
  #3
New Member
 
yafuji aki
Join Date: Jul 2010
Location: Japan
Posts: 14
Rep Power: 16
aki_yafuji is on a distinguished road
Dear KrisT

Thank you very much for your help!
I have performed some tutorials by changing them.
May I ask one more question???
What is "correctFluxes" ? These values are corrected each time step?

Aki
amuzeshi likes this.
aki_yafuji is offline   Reply With Quote

Old   July 9, 2010, 15:20
Default
  #4
Member
 
Join Date: May 2009
Posts: 32
Rep Power: 17
KrisT is on a distinguished road
Quote:
Originally Posted by aki_yafuji View Post
Dear KrisT

Thank you very much for your help!
I have performed some tutorials by changing them.
May I ask one more question???
What is "correctFluxes" ? These values are corrected each time step?

Aki
Not sure about this one. Something about fluxes to correct when refining (phi), and variable they can be ineterpolated from (U).
KrisT is offline   Reply With Quote

Old   March 27, 2012, 08:06
Default
  #5
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 15
idefix is on a distinguished road
Hello,

I looked into the code and find following:
nBufferLayer: Number of layers between different refinement levels
I understand it in that way: nBufferLayer 1 means:
a cell, which was refined once, can only be a neighbour of a cell which is not refined or refined twice. But this cell canīt be a neighbour of a cell which is refined three times.

In a tutorial I found the definitoin for maxRefinement:
maxRefinement means the number of refinements that are allowed for one cell.

But does everybody know what "unrefineLevel" mean?

Thanks a lot
bharat_aero and amuzeshi like this.

Last edited by idefix; April 3, 2012 at 03:39.
idefix is offline   Reply With Quote

Old   May 23, 2012, 12:17
Default
  #6
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 15
idefix is on a distinguished road
has nobody an idea what it could mean?

I would be really happy to get some help
idefix is offline   Reply With Quote

Old   February 29, 2016, 03:59
Default Vortex Refinement
  #7
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
Dear Foamers,

I have another question concerning the settings in the dynamicMeshDict-file. I would like to refine a tip vortex dynamically, so with the pimpleDyMFoam-solver.

As entry 'field' in dynamicMeshDict I would like to use something like Lambda2.
How can I tell the solver to calc this field?
potentialFoam is offline   Reply With Quote

Old   August 1, 2016, 10:08
Default
  #8
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
Finally, I programmed a new solver based on pimpleDyMFoam. There, I calculated the nedded scalar field (like Lambda2). In constant/dynamicMeshDict I specify the variables that prescribe the refinement and so it works
afrotimy and li siye like this.
potentialFoam is offline   Reply With Quote

Old   August 28, 2016, 23:20
Default
  #9
Member
 
Francis
Join Date: Jan 2014
Location: Toronto
Posts: 50
Rep Power: 12
afrotimy is on a distinguished road
Quote:
Originally Posted by potentialFoam View Post
Finally, I programmed a new solver based on pimpleDyMFoam. There, I calculated the nedded scalar field (like Lambda2). In constant/dynamicMeshDict I specify the variables that prescribe the refinement and so it works
Hi Peter,

Is this new solver working with dynamicRefineFvMesh in 2D ?
afrotimy is offline   Reply With Quote

Old   August 29, 2016, 04:03
Default
  #10
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
Hi Francis,

what do you mean with 'dynamicRefineFvMesh'? I didn't try but I think it should work in 2D - why not?

Regards,
Peter
potentialFoam is offline   Reply With Quote

Old   August 29, 2016, 07:54
Default
  #11
Member
 
OpenCFD
Join Date: Mar 2009
Posts: 68
Rep Power: 19
opencfd is on a distinguished road
The dynamic refinement is cutting cells 2x2x2 - in all directions, so you would create mesh cells in directions you are not solving for. Which would be not such a problem, but you are creating also non-orthogonality and you will have parasitic fluxes in the direction you are not solving for and your solution is loosing precision at least.
amolrajan likes this.
opencfd is offline   Reply With Quote

Old   August 29, 2016, 07:57
Default
  #12
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
Thanks! That's correct. So it works, but not in the desired way.
potentialFoam is offline   Reply With Quote

Old   July 15, 2019, 07:27
Default
  #13
Senior Member
 
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10
kk415 is on a distinguished road
Hi Everyone,


Isn't there any way to control the division of cells in 2D ? or Isn't there any way to make the division orthogonal always ?
kk415 is offline   Reply With Quote

Old   May 7, 2020, 04:49
Default
  #14
Member
 
Join Date: Mar 2015
Posts: 36
Rep Power: 11
K.C. is on a distinguished road
Does it mean, that the actual implementation of dynamicMeshRefinement can only deal with hexahedra cells?
That would mean it is useless if I have tetrahedras in my mesh?
K.C. 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
Gambit problems Althea FLUENT 22 January 4, 2017 04:19
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
[mesh manipulation] local mesh refinement at channel geometries Kr_kim OpenFOAM Meshing & Mesh Conversion 6 February 9, 2010 15:25
basic of mesh refinement arya CFX 4 June 19, 2007 13:21


All times are GMT -4. The time now is 02:45.