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

Implementing Spalart-Allmar model with QCR in Openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Crigerfra

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2021, 11:07
Default Implementing Spalart-Allmar model with QCR in Openfoam
  #1
New Member
 
Join Date: Apr 2020
Posts: 1
Rep Power: 0
Crigerfra is on a distinguished road
Hello,
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:


Quote:
void SpalartAllmarasQCR::correctNonlinearStress(const volTensorField& gradU)
{

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


volScalarField sBar(mag(gradU));



nut_ = nuTilda_*fv1(this->chi());
nut_.correctBoundaryConditions();
fv:Options::New(mesh_).correct(nut_);

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



}
lpz456 likes this.
Crigerfra is offline   Reply With Quote

Old   January 16, 2022, 23:08
Default
  #2
New Member
 
SunTime
Join Date: Nov 2020
Posts: 15
Rep Power: 6
lpz456 is on a distinguished road
Maybe the sign is reversed, such as twoSymm(S&W)
lpz456 is offline   Reply With Quote

Reply

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


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 11:57
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 17, 2020 00:44
Which solver in OpenFOAM corresponds to the Eulerian Model in FLUENT? paradism OpenFOAM 1 March 20, 2017 10:35
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32


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