CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

if statement openFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2021, 08:43
Unhappy if statement openFoam
New Member
Join Date: Aug 2021
Posts: 1
Rep Power: 0
mariana is on a distinguished road
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’)
mariana is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
How to use if statement in openFoam solver? rapierrz OpenFOAM Programming & Development 7 August 4, 2015 06:19
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 22:07

All times are GMT -4. The time now is 02:35.