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

how to access function nuTilda() in class spalartAllmaras

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By landsber
  • 1 Post By Elliptic CFD

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2016, 00:27
Default how to access function nuTilda() in class spalartAllmaras
  #1
New Member
 
Alex Landsberg
Join Date: Sep 2009
Location: Australia
Posts: 15
Rep Power: 0
landsber is on a distinguished road
Hi all
I need to access from my main solver the function nuTilda() in the class spalartAllmaras for compressible RAS turbulence model.So i did the same as forthe function mut(): i added it to the file turbulenceModel.H recompile the library libcompressibleturbulence, then add the line in my solver :
VolScalarField nuTilda(turbulence->nuTilda());
I didn't get the expected results.
Any idea?
landsber is offline   Reply With Quote

Old   July 18, 2016, 05:12
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

1. OpenFOAM version?
2. What do you expect to get?
3. Why mess with turbulenceModel.H instead of creating child class of SpalartAllmaras and use it to access nuTilda_ field?
alexeym is offline   Reply With Quote

Old   July 25, 2016, 04:59
Default
  #3
New Member
 
Alex Landsberg
Join Date: Sep 2009
Location: Australia
Posts: 15
Rep Power: 0
landsber is on a distinguished road
Hi,

thanks for your reactivity. I found a solution with the following line
volscalarField nuTilda = mesh.lookupObject<volScalarField>("nuTilda");
Elliptic CFD likes this.
landsber is offline   Reply With Quote

Old   April 5, 2017, 11:30
Default
  #4
New Member
 
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 9
Elliptic CFD is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

1. OpenFOAM version?
2. What do you expect to get?
3. Why mess with turbulenceModel.H instead of creating child class of SpalartAllmaras and use it to access nuTilda_ field?
Please, how do you create the child class so as one can access the nuTilda field in the main solver as well as modify the field?

Cheers
JamesCC likes this.
Elliptic CFD 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Accessing a member function in a class fabianpk OpenFOAM 2 June 14, 2006 09:20


All times are GMT -4. The time now is 07:03.