|
[Sponsors] |
August 18, 2021, 07:43 |
if statement openFoam
|
#1 |
New Member
anonymous
Join Date: Aug 2021
Posts: 1
Rep Power: 0 |
hello gays,
I have this error that I do not know how to solve it in fact D is a volscalarfields and I want it to be worth 70 when I get a higher value can you help me? if ( D > 70.) { D = 70.; } In function ‘int main(int, char**)’: vprojectFoam.C:66:10: error: no match for ‘operator>’ (operand types are ‘Foam::volScalarField’ {aka ‘Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>’} and ‘double’) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 15:54 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
How to use if statement in openFoam solver? | rapierrz | OpenFOAM Programming & Development | 7 | August 4, 2015 05:19 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 13:50 |
OpenFOAM Training and Workshop Zagreb 2628Jan2006 | hjasak | OpenFOAM | 1 | February 2, 2006 21:07 |