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

Non-orthogonal correction in SimpleFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree25Likes
  • 9 Post By CedricVH
  • 13 Post By CedricVH
  • 1 Post By nanavati
  • 2 Post By Krapf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2010, 03:10
Default Non-orthogonal correction in SimpleFOAM
  #1
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 17
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
I am using a non-orthogonal mesh in the calculation. I tried to put the nonorthogonal as 1 to add some correction. But when I read the code of simpleFoam. I can not understand what difference it can make. It seems the correction just solve the matrix one more time, with little change in the matrix. The change of the matrix is only from

pEqn.setReference(pRefCell, pRefValue)

So I cannot understand what is going on with the non-orthogonal correction. Can any one explain it? Thanks a lot.

Best,
__________________
Jinbiao
JinBiao is offline   Reply With Quote

Old   May 28, 2010, 09:10
Default
  #2
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 17
CedricVH is on a distinguished road
Non-orthogonal correction is not recommended for steady-state solvers as it is not needed to have a converged solution every time-step. Just put it to 0 and set limiters in your fvSchemes file in order to handle a non-orthogonal mesh.
CedricVH is offline   Reply With Quote

Old   May 29, 2010, 03:43
Default
  #3
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 17
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
Hi Cedric,

Thanks for your reply. Do you mean I only need to apply the correction in the laplacian terms. For example

laplacian (phi, *) Gauss linear corrected

Thanks a lot.

Best,
__________________
Jinbiao
JinBiao is offline   Reply With Quote

Old   May 29, 2010, 04:20
Default
  #4
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 17
CedricVH is on a distinguished road
If your max orthogonality is < 60, you can indeed use "Gauss linear corrected" for your laplacian scheme, if higher you can use "Gauss linear limited 0.333". Your snGradScheme has to be edited accordingly (either corrected or limited 0.333). You can also limit the other schemes.

For example:

Code:
gradSchemes
{
    default         cellLimited Gauss linear 1;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss linearUpwind cellLimited Gauss linear 1;
    ...
}

laplacianSchemes
{
    default         Gauss linear limited 0.333;
}

snGradSchemes
{
    default         limited 0.333;
}
lakeat, kiddmax, fumiya and 10 others like this.
CedricVH is offline   Reply With Quote

Old   May 30, 2010, 01:14
Default
  #5
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 17
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
Thanks a lot, Cedric.

In your example, you used
gradSchemes
{
default cellLimited Gauss linear 1;
}


This is my first time to know there is a cellLimited scheme. I am curious about the difference between cellLimited and other limited schemes? If possible, could you also explain what is the function of the numbers following the limited scheme.

Thanks again.

Best,
__________________
Jinbiao
JinBiao is offline   Reply With Quote

Old   August 26, 2014, 04:52
Default
  #6
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 12
nanavati is on a distinguished road
Quote:
Originally Posted by JinBiao View Post
Thanks a lot, Cedric.

In your example, you used
gradSchemes
{
default cellLimited Gauss linear 1;
}


This is my first time to know there is a cellLimited scheme. I am curious about the difference between cellLimited and other limited schemes? If possible, could you also explain what is the function of the numbers following the limited scheme.

Thanks again.

Best,
Limited versions of any of these 3 base gradient schemes (Gauss, leastSquares and fourth) can be selected by preceding the discretisation scheme by cellLimited (or faceLimited),

e.g. a cell limited Gauss scheme,

grad(p) cellLimited Gauss linear 1;

for more details you can refer http://www.openfoam.org/docs/user/fvSchemes.php (4.4.3 Gradient schemes)
pavlossemelides likes this.
nanavati is offline   Reply With Quote

Old   June 27, 2015, 08:09
Default
  #7
New Member
 
Ali Kadar
Join Date: Oct 2014
Location: Delft
Posts: 25
Rep Power: 12
flowAlways is on a distinguished road
This very nice document illustrates a lot about the choice of schemes, under-relaxation, pre conditioners for OpenFOAM.
Special treatment for non-orthogonal meshes.
very well said "Who owns the mesh, owns the solution!!"
http://www.dicat.unige.it/guerrero/o...sandtricks.pdf
__________________
A good solution is one which does justice to the inner nature of the problem- Cornelius Lanczos in a letter to Albert Einstein on March 9, 1947
flowAlways is offline   Reply With Quote

Old   March 18, 2016, 10:32
Default
  #8
Member
 
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10
adrieno is on a distinguished road
Hi all,
I can't find the document that FlowAlways has post.
Has anybody still got this document ?
thank you,
Adrien
adrieno is offline   Reply With Quote

Old   March 21, 2016, 05:47
Default
  #9
Member
 
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10
adrieno is on a distinguished road
Hi all,
I've found one which was maybe the same posted before.
Here is the one I've found :
http://www.dicat.unige.it/guerrero/o...sandtricks.pdf
If anyone has oneother, I would appreciate to have it also.
Have a nice day,
Adrien
adrieno is offline   Reply With Quote

Old   February 25, 2021, 01:51
Default
  #10
New Member
 
Ramkumar
Join Date: Nov 2014
Location: pondicherry, India
Posts: 16
Rep Power: 12
Ramkumar21194 is on a distinguished road
Quote:
Originally Posted by adrieno View Post
Hi all,
I've found one which was maybe the same posted before.
Here is the one I've found :
http://www.dicat.unige.it/guerrero/o...sandtricks.pdf
If anyone has oneother, I would appreciate to have it also.
Have a nice day,
Adrien

Hi Adrien, it seems the pdf u shared is again gone.. could u plz share it again?
Ramkumar21194 is offline   Reply With Quote

Old   February 25, 2021, 13:58
Default
  #11
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
You'll find the pdf here: http://www.wolfdynamics.com/tutorial...ut=edit&id=163 ("Tips and tricks")
sourav90 and nsaoirse like this.
Krapf 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
Floating point exception error Alan OpenFOAM Running, Solving & CFD 11 July 1, 2021 22:51
Laminar simpleFoam and inviscid simpleFoam herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 07:27
About nonorthogonal correction in fvclaplacian 7islands OpenFOAM Running, Solving & CFD 4 December 9, 2012 23:54
Naca0012 k-e mpirun gives fpe whereas simpleFoam not Pierpaolo OpenFOAM 1 May 8, 2010 04:08
mass flux correction at outflow boundaries Subhra Datta Main CFD Forum 2 November 24, 2003 14:11


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