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

cellMDLimited vs. cellLimited

Register Blogs Community New Posts Updated Threads Search

Like Tree106Likes
  • 61 Post By cnsidero
  • 6 Post By akidess
  • 2 Post By makaveli_lcf
  • 20 Post By cnsidero
  • 5 Post By cnsidero
  • 1 Post By makaveli_lcf
  • 1 Post By makaveli_lcf
  • 10 Post By fumiya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2010, 08:34
Default cellMDLimited vs. cellLimited
  #1
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Hi all,
can someone explain briefly what is the difference between the cellLmited and the cellMDLimited options for the gradSchemes in OF?

Thank you in advance

V.
vkrastev is offline   Reply With Quote

Old   October 28, 2010, 10:47
Default
  #2
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Any replies?
vkrastev is offline   Reply With Quote

Old   October 29, 2010, 00:10
Default
  #3
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Here's a general explanation. Standard gradient limiting, i.e. cellLimited, clips each component of the gradient equally (remember it's a vector). cellMDLimited is a "M"ulti-"D"imensional limiter whereby the gradient is clipped in the direction normal the cell faces.

cellMDLimited should be less dissipative.

A little extra info ... there are two types of limiting: cell and face. Cell limiting determines the limited gradient along a line connecting adjacent cell centers. Face limiting determines the limited gradient on the face itself.

Cell limiting should be less dissipative.

Of course, reducing dissipation has the potential benefit of better accuracy but increases the risk of instability. The limited gradient schemes in OpenFOAM listed from least to most dissipation:

cellMDLimited
cellLimited
faceMDLimited
faceLimited

Disclaimer: My C++ interpretation skills can be suspect at times so if I've stated something incorrect, I welcome anyone else's comments.

If you wanna look yourself, the source code for the gradient schemes can be found in the following directory:

$WM_PROJECT_DIR/src/finiteVolume/finiteVolume/gradSchemes/
ziad, egp, lakeat and 58 others like this.

Last edited by cnsidero; October 29, 2010 at 08:39.
cnsidero is offline   Reply With Quote

Old   October 29, 2010, 04:00
Default
  #4
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Thank you for the explanation, this "summary" was exactly what I was looking for.

Regards

V.
vkrastev is offline   Reply With Quote

Old   November 3, 2010, 07:11
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Chris, I think your post has some really valuable information, so I took the liberty to put it onto the openfoam-extend wiki:
http://openfoamwiki.net/index.php/Op...guide/Limiters

- Anton
akidess is offline   Reply With Quote

Old   November 17, 2010, 07:02
Default
  #6
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 250
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Hi all!

I am a little bit confused about face/cellLimited syntax. Let say we have cellLimited scheme with leastSquare scheme:

gradSchemes
{
default cellLimited leastSquares 1.0;
}

What does exactly the number "1.0" mean here? Is it non-orthogonal correction limiting or is it some conformance parameter?

Thank you in advance and have a nice day!

Alexander
Tobi and lourencosm like this.
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   November 17, 2010, 09:37
Default
  #7
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by makaveli_lcf View Post
Hi all!

I am a little bit confused about face/cellLimited syntax. Let say we have cellLimited scheme with leastSquare scheme:

gradSchemes
{
default cellLimited leastSquares 1.0;
}

What does exactly the number "1.0" mean here? Is it non-orthogonal correction limiting or is it some conformance parameter?

Thank you in advance and have a nice day!

Alexander
The 1.0 is like a switch for the limiter, which can vary between 0 and 1. Setting it to 0 effectively turns off the limiter (i.e. no limiting), setting it to 1 is fully on and anything in between it's partially on. Setting it to 0 will give the best accuracy (because you're not limiting) and setting it to one will give the best stability.
cnsidero is offline   Reply With Quote

Old   November 17, 2010, 10:04
Default
  #8
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 250
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Thank you Chris for clarifying my doubts! I also found it from my previous request))) Sorry for double-posting! But now I am sure about this point.
Do you have some experience if *MD* limiting really changes the convergence behavior or improves calculation performance?
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   November 17, 2010, 10:35
Default
  #9
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by makaveli_lcf View Post
Thank you Chris for clarifying my doubts! I also found it from my previous request))) Sorry for double-posting! But now I am sure about this point.
No problem.

Quote:
Originally Posted by makaveli_lcf View Post
Do you have some experience if *MD* limiting really changes the convergence behavior or improves calculation performance?
I have not performed a careful study investigating the differences between the regular limited and MD limited schemes. Although, now that you mention it, I think it would be a valuable exercise.

My initial feeling would be that it might be tough to find an appropriate test case(s) to look at the differences. For simple problems (i.e. simple, nice meshes), I suspect there differences will be negligible. And more complex problems introduce other uncertainties (turbulence model, etc).

The effect of a limiter shows up most when there are high gradients (e.g. shocks) so a problem involving high gradients would be the best. Perhaps a free surface problem (VOF)?
cnsidero is offline   Reply With Quote

Old   November 17, 2010, 11:09
Default
  #10
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 250
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
My current problem (solidification modelling) also includes high gradients, so I'll try to get some information comparing 2 calculations with MD or without and report here...
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   November 25, 2010, 05:58
Default
  #11
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 250
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
hmmm... first investigations are confusing... Just now I got the 1st order solution to be more or less converged to semi-steady state, thus switching to the 2nd order. linearUpwind and Gamma schemes for the convection term in momentum equation lead to the divergence of the solution (simulation crash). Tried to change from cellLimited to the faceLimited (more diffusive???) for the gradients: even with the 1st order solution diverges...

Continuing my tries... Will report later on.
lourencosm likes this.
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   November 25, 2010, 06:04
Default
  #12
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 250
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Additional question: I didn't saw any other schemes apart from CD for the diffusive term in the momentum equation:

Code:
div((nuEff*dev(grad(U).T())))     Gauss linear;
... and laplacian schemes...

Are there any special reasons for that?

Thank you!
immortality likes this.
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   February 27, 2013, 12:06
Default
  #13
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hello Dr.Alexander
how's the results of your investigations?
I like to know for selecting a good scheme for my high gradients shock problem.
immortality is offline   Reply With Quote

Old   June 17, 2014, 10:03
Default
  #14
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
Hi,

I'm summarizing the limited version of gradient schemes, e.g. cell(MD)Limited and face(MD)Limited schemes.
As of now, only cellLimited scheme is covered in this slide but I will update it as soon as possible.

http://www.slideshare.net/fumiyanoza...es-in-openfoam

Hope this helps,
Fumiya
__________________
[Personal]
fumiya is offline   Reply With Quote

Old   July 24, 2014, 12:29
Default
  #15
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Thanks for sharing this Fumiya. Your English is pretty good actually...

Quote:
Originally Posted by fumiya View Post
Hi,

I'm summarizing the limited version of gradient schemes, e.g. cell(MD)Limited and face(MD)Limited schemes.
As of now, only cellLimited scheme is covered in this slide but I will update it as soon as possible.

http://www.slideshare.net/fumiyanoza...es-in-openfoam

Hope this helps,
Fumiya
ziad 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
Explanation bounding k and bounding epsilon idrama OpenFOAM 42 July 13, 2017 04:05
faceLimited vs. cellLimited ?? basneb OpenFOAM 6 August 12, 2013 05:21
strange behaviour of rhoPisoFoam, circular cylinder ivan_cozza OpenFOAM Running, Solving & CFD 7 December 19, 2010 07:20
Compressible epsilon blows up swahono OpenFOAM 10 November 26, 2010 05:38
pisoFoam floating point error - GAMG sErik OpenFOAM Running, Solving & CFD 8 January 14, 2010 10:43


All times are GMT -4. The time now is 11:52.