|
[Sponsors] |
June 3, 2014, 05:29 |
A quetion about function trunc()
|
#1 |
New Member
Zhiwei Zheng
Join Date: May 2014
Posts: 23
Rep Power: 12 |
Hi all,
In my turbulence model, I want to use the function trunc(), its' type is "double trunc(double)", something went wrong when I compiled. Example: Fblend_(F2()*max(scalar(1)-trunc(k_/Cblend_/omega_/nu()), scalar(0))), and the error is: error: cannot convert ‘Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’ to ‘double’ for argument ‘1’ to ‘double trunc(double)’ I wonder that whether I can't use the "k_/Cblend_/omega_/nu()" in trunc() directly, because "k_/Cblend_/omega_/nu()" is flow field datas, which is not "double" type. How can I solve this problem? Thank you! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 01:47 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 09:56 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 06:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |
Please help about the VTKFoam | liugx212 | OpenFOAM Running, Solving & CFD | 0 | November 18, 2005 18:27 |