CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

if statement for volScalarField

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

Like Tree1Likes
  • 1 Post By Bernhard

Reply
 
LinkBack Thread Tools Display Modes
Old   April 28, 2012, 16:37
Question if statement for volScalarField
  #1
New Member
 
reza
Join Date: Apr 2012
Posts: 7
Rep Power: 5
sasookey is on a distinguished road
hi
i'm a new user of openFoam, i try to do something when a volScalarFied like p is in the specific number like smaller than 1 i tried this in solver.

if ( p < 1)
{
.....
}

when p is volScalarField and i got som error for operator <
thanks to help me.
sasookey is offline   Reply With Quote

Old   April 29, 2012, 04:27
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
It depends a bit of what you want to do precisely. It is always a good idea to carefully read the errormessages. If you don't understand them, it is still worth to post them in a thread.

See also: Instruction if
sasookey likes this.
Bernhard is offline   Reply With Quote

Old   April 29, 2012, 05:56
Smile
  #3
New Member
 
reza
Join Date: Apr 2012
Posts: 7
Rep Power: 5
sasookey is on a distinguished road
Thanks dear Bernhard, you got me and my problem has been solved.
sasookey is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
if statement for volScalarField AnjaMiehe OpenFOAM Programming & Development 2 April 24, 2012 07:01
If Statement Zaktatir CFX 5 June 19, 2010 06:09
Weak statement for Galerkin Method rugabug Main CFD Forum 0 March 26, 2010 20:19
Problem Statement balkrishna Main CFD Forum 0 October 6, 2009 23:55
marking statement in Latex mike Main CFD Forum 0 October 8, 2006 12:01


All times are GMT -4. The time now is 19:14.