|
[Sponsors] |
How to implement function "trunc()" in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 1, 2014, 05:49 |
How to implement function "trunc()" in OpenFOAM
|
#1 |
New Member
Zhiwei Zheng
Join Date: May 2014
Posts: 23
Rep Power: 12 |
Hi all,
I want to use the function trunc() in my turbulence model, its' type is "double trunc(double)", but I want to Implement it as "trunc(k_)" and the k_ is "volScalarField" type, so something went wrong when I compiled: error: cannot convert ‘Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’ to ‘double’ for argument ‘1’ to ‘double trunc(double)’ How can I solve this problem? Thank you! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
foamToTecplot360 | thomasduerr | OpenFOAM Post-Processing | 121 | June 11, 2021 11:05 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |