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

SA turbulence model with rotation /curvature correction

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2019, 01:41
Default SA turbulence model with rotation /curvature correction
  #1
New Member
 
karnataka
Join Date: May 2017
Posts: 4
Rep Power: 8
shubz is on a distinguished road
Hello guys,

Currently, I am trying to implement SA turbulence model with rotation and curvature correction in Openfoam 6.

The link below provided very useful information to do the same

To start with I've got the results with the standard Openfoam 6 SA model.


Now I'm trying with**SA-RCM*, the link below provided some very useful information.

https://hobbyfoam.blogspot.com/2015/...orrection.html


Unfortunately, I cannot directly use the .H and .C files that have been provided because Openfoam 6 has slightly different class implementations to avoid duplication of code.*


Based on this Blog, I have modified them accordingly (attached files)


Sorry, incase my programming terminology is not so great. bear with me.


There are two changes in the .H file*

1) Defining the dimensioned scalars cr1,cr2,cr3.

2) Defining the* f1 function*


In the .C file, I've made the following changes in order

1) In* Protected Member Functions, I've added the fr1 class* --> highlighted as new code*

2) In the Constructors, defined the lookup for cr1 ,cr2 ,cr3

3) In the member functions,* mentioned cr1 ,cr2,cr3 for the read class.

4) In the correct class, I have tried adding fr1,


So with all these changes, the code gets compiled successfully.


However, the simulation crashes when I add the fr1 to the correct class. If I keep the old lines as it is, everything works fine (obviously)*


Also, as you must have noticed, I don't use an if condition for the RCM correction, I want to use it by default but yeah, I would like to include that later on so that I don't have to compile two separate codes.*

I am confident about my setup since with the same setup I have ran the case with the default Openfoam6 SA Model and obtained good results.

Can you please help me out. I can provide you the files required for debugging this.

I don't know why I couldn't attach the files , so here is the Google drive Link where the .H and the .C files that I have modified using the above reference.

https://drive.google.com/open?id=1_L...eInc-klFGIU-76


Kindly help me out.. it's kind of urgent.

Regards

Shubham
shubz is offline   Reply With Quote

Reply

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
NEW turbulence TRANSITIONAL model giammy92 OpenFOAM 3 June 30, 2016 09:47
Fluent :- turbulence Model prince_pahariaa FLUENT 9 May 20, 2016 03:41
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 14:32
Spalarat - Allmaras turbulence model saisanthoshm88 Main CFD Forum 1 June 16, 2014 16:33
Turbulence Model Curvature Correction Jorg CFX 0 August 10, 2012 18:05


All times are GMT -4. The time now is 20:00.