CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Implementing Spalart-Allmar model with QCR in Openfoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Crigerfra

LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2021, 10:07
Default Implementing Spalart-Allmar model with QCR in Openfoam
New Member
Join Date: Apr 2020
Posts: 1
Rep Power: 0
Crigerfra is on a distinguished road
I am would like to implement the Spalart-Allmaras turbulence model with QCR nonlinear stress model in Openfoam. However, i already wrote a code but when i test my code, the results do not agree with the other data available in literature. I tested the code for the tutorial case pitzDaily. In fact, the case pitzDaily can to be run using other nonlinear stress model already implemented in Openfoam. Can you help me?
This is my code:

void SpalartAllmarasQCR::correctNonlinearStress(const volTensorField& gradU)

volSymmTensorField S(symm(gradU));
volTensorField W(skew(gradU));

volScalarField sBar(mag(gradU));

nut_ = nuTilda_*fv1(this->chi());

nonlinearStress_ = -4*Cr1_/(sBar)*nut_*twoSymm(W&S);

lpz456 likes this.
Crigerfra is offline   Reply With Quote

Old   January 16, 2022, 22:08
New Member
Join Date: Nov 2020
Posts: 14
Rep Power: 5
lpz456 is on a distinguished road
Maybe the sign is reversed, such as twoSymm(S&W)
lpz456 is offline   Reply With Quote


nonlinear stress, openfoam, qcr model, sa model, spalart-allmaras

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Class refrence errors in implementing a new LES SGS model FaroukH OpenFOAM Programming & Development 15 October 28, 2022 10:57
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Which solver in OpenFOAM corresponds to the Eulerian Model in FLUENT? paradism OpenFOAM 1 March 20, 2017 09:35
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32

All times are GMT -4. The time now is 15:10.