CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Problem with assign a value to Cell !

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

LinkBack Thread Tools Display Modes
Old   October 14, 2015, 08:09
Question Problem with assign a value to Cell !
Join Date: Feb 2015
Posts: 70
Rep Power: 2
rapierrz is on a distinguished road
Hi friends,

I want to assign a value to alpha with below code but i can't do it ???

forAll (T , celli)
if ( T[celli] > Tsat )
alpha[celli] = c*(T[celli]-Tsat);

that c is a constant parameter.

error is : 'celli' does not name a type


expected unqualified-id before 'for'
rapierrz is offline   Reply With Quote


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
Problem with cell aspect ratio in the wake nw_ds Main CFD Forum 0 May 29, 2015 19:16
Cell Zone Conditions initialization Problem ansys_matt FLUENT 3 October 13, 2014 04:45
Negative cell volume problem in-cylinder ziani.lotfi FLUENT 0 April 11, 2012 07:54
CHT cell layer thickness problem Arnab CD-adapco 1 March 13, 2005 09:36
Baffle cell problem in shock tube AB CD-adapco 4 November 15, 2004 09:44

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