|
[Sponsors] |
how to access function nuTilda() in class spalartAllmaras |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 18, 2016, 00:27 |
how to access function nuTilda() in class spalartAllmaras
|
#1 |
New Member
Alex Landsberg
Join Date: Sep 2009
Location: Australia
Posts: 15
Rep Power: 0 |
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? |
|
July 18, 2016, 05:12 |
|
#2 |
Senior Member
|
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? |
|
July 25, 2016, 04:59 |
|
#3 |
New Member
Alex Landsberg
Join Date: Sep 2009
Location: Australia
Posts: 15
Rep Power: 0 |
Hi,
thanks for your reactivity. I found a solution with the following line volscalarField nuTilda = mesh.lookupObject<volScalarField>("nuTilda"); |
|
April 5, 2017, 11:30 |
|
#4 | |
New Member
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 9 |
Quote:
Cheers |
||
|
|
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 |