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

Bug in SpalartAllmaras

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 27, 2009, 08:28
Default Hi all, I was working on a
  #1
New Member
 
Sébastien Bocquet
Join Date: Mar 2009
Posts: 21
Rep Power: 17
seb62 is on a distinguished road
Hi all,

I was working on a turbulent flat plate with the
Spalart Allmaras model, and the results were not fine.
So I had a look at the source code and I think there is something wrong.
The version implemented in openFOAM 1.5 is the Spalart Allmaras with fv3 function. This version
also requires to modify fv2, which is not done (the correct fv2 consistent with the use of fv3 is on the commented line) :


tmp<volscalarfield> SpalartAllmaras::fv2
(
const volScalarField& chi,
const volScalarField& fv1
) const
{
return 1.0 - chi/(1.0 + chi*fv1);
//return 1.0/pow3(scalar(1) + chi/Cv2);
}

Thus I think either the commented fv2 should be used keeping fv3 unchanged, or fv3 should be set to 1, keeping fv2 unchanged.
For testing, I did the latter, removing fv3 in the expression for Stilda, which gives the basic form of Spalart Allmaras model :

volScalarField Stilda =
sqrt(2.0)*mag(skew(fvc::grad(U_)))
+ fv2(chi, fv1)*nuTilda_/sqr(kappa_*d_);


After recompiling, the velocity profiles and local friction agree very well with theory and other CFD codes.

Seb
seb62 is offline   Reply With Quote

 


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
SimpleFoam case with SpalartAllmaras turbulence model implemented nedved OpenFOAM Running, Solving & CFD 2 November 30, 2014 22:43
SpalartAllmaras question egp OpenFOAM Running, Solving & CFD 45 October 28, 2010 03:30
SpalartAllmaras DES question ivan_cozza OpenFOAM Running, Solving & CFD 0 December 15, 2008 06:34
YPlus for SpalartAllmaras ddigrask OpenFOAM Running, Solving & CFD 1 December 12, 2008 14:29
Pow in lib64tlslibmso6 SigFpe when running coodles with SpalartAllmaras lillberg OpenFOAM Bugs 4 December 7, 2007 08:17


All times are GMT -4. The time now is 04:48.