CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

if statement openFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2021, 07:43
Unhappy if statement openFoam
  #1
New Member
 
anonymous
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

Reply


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 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


All times are GMT -4. The time now is 23:13.