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

Discretization settings Foam vs. Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2009, 02:45
Default Discretization settings Foam vs. Fluent
  #1
New Member
 
Join Date: Jul 2009
Posts: 3
Rep Power: 16
wuppdupp is on a distinguished road
Dear Foamers,

I´m interested in the the performance of Fluent 6.3.26 in comparison with OpenFoam 1.5. I´m simulating a steady (simpleFoam solver in OF 1.5), isothermal, single phase problem using the realizable k-epsilon-model.
In order to get accurate results for my flow field, I chose the "second-order upwind" descritization scheme (for pressure, momentum, k, epsilon) in Fluent.

Here my Question:
How do I have to change the fvScheme-skript in OpenFoam to get the same settings as in Fluent?
I made different approaches using the "linearUpwind"-scheme. But it did´nt work, due to some errors. I´m not sure if "linearUpwind" is comparable to the "second-order upwind" scheme in Fluent.

I would appreciate any hints or help.
Thanks in advance.
wuppdupp

Among others I used this fvScheme script:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
default steadyState;
}

gradSchemes
{
default Gauss linearUpwind;
grad(p) Gauss linearUpwind;
grad(U) Gauss linearUpwind;
}

divSchemes
{
default none;
div(phi,U) Gauss linearUpwind;
div(phi,k) Gauss linearUpwind;
div(phi,epsilon) Gauss linearUpwind;
div(phi,R) Gauss linearUpwind;
div(R) Gauss linearUpwind;
div(phi,nuTilda) Gauss linearUpwind;
div((nuEff*dev(grad(U).T()))) Gauss linearUpwind;
}

laplacianSchemes
{
default none;
laplacian(nuEff,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
laplacian(DREff,R) Gauss linear corrected;
laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;
}

interpolationSchemes
{
default linearUpwind;
interpolate(U) linearUpwind;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
p;
}

// ************************************************** *********************** //
wuppdupp is offline   Reply With Quote

Old   July 21, 2009, 12:16
Default
  #2
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Dear Wuppdupp,

Maybe the scheme that you need is QUICK. Search the forum for related posts. I personally use GammaV for velocity.

Best Regards,

Paulo Rocha
paulo is offline   Reply With Quote

Old   July 23, 2009, 08:39
Default
  #3
New Member
 
Join Date: Jul 2009
Posts: 3
Rep Power: 16
wuppdupp is on a distinguished road
Dear paulo,

I tried Quick and GammaV. (For the gradSchemes) Without success.
The only Schemes which work are linear an fourth.
wuppdupp is offline   Reply With Quote

Old   July 23, 2009, 13:10
Default
  #4
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Quote:
Originally Posted by wuppdupp View Post
Dear paulo,

I tried Quick and GammaV. (For the gradSchemes) Without success.
The only Schemes which work are linear an fourth.
It makes sense, since QUICK and GammaV are divSchemes.

Try it.

Best Regards,

Paulo Rocha
paulo is offline   Reply With Quote

Old   July 24, 2009, 04:38
Default
  #5
New Member
 
Join Date: Jul 2009
Posts: 3
Rep Power: 16
wuppdupp is on a distinguished road
Hi Paulo,

thank´s for your advice. It works fine. Is there any possibility to use higher order discretization schemes also for the gradSchemes and the interpolationSchemes?
I was quite confused because in the OF documentation is mentioned, that you can use other Schemes also for gradSchemes and interpolationSchemes.

Again, thank you very much!

Wuppdupp
wuppdupp is offline   Reply With Quote

Old   July 24, 2009, 10:08
Default
  #6
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Yes,

if you write something wrong in the schemes text, OpenFOAM will show you all the possibilities.

The books of Ferziger & Peric / Versteeg & Malalasekra have good explanation about many schemes.

Best Regards,

Paulo Rocha
paulo is offline   Reply With Quote

Old   July 25, 2009, 02:35
Default
  #7
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by wuppdupp View Post
Hi Paulo,

thank´s for your advice. It works fine. Is there any possibility to use higher order discretization schemes also for the gradSchemes and the interpolationSchemes?
I was quite confused because in the OF documentation is mentioned, that you can use other Schemes also for gradSchemes and interpolationSchemes.

Again, thank you very much!

Wuppdupp
Yes, it is possible to use higher order than second schemes for gradients. In particular, if you want to be sure you always have second order accuracy, you should change "Gauss linear" into "leastSquares". If you want a fourth order scheme you can use "fourth". All schemes can be used in a "limited" version (limited leastSquares, for example), which reduces the accuracy locally to keep the solution bounded.

For interpolation schemes the choice is wider (see tab 4.6 in the manual). The "cubic" is fourth order central scheme, and it exists in the limited version "limitedCubic".

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto 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
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 13 December 28, 2020 04:16
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 7 March 23, 2018 03:22
Changing the grid on the same set-up Katya FLUENT 7 October 8, 2009 16:31
Fluent connection with simulink by TCP/IP Tanktruck Fluent UDF and Scheme Programming 1 June 28, 2009 12:56
FOAM licensed free to academic institutions Nabla Ltd. Main CFD Forum 0 November 18, 2002 10:24


All times are GMT -4. The time now is 12:23.