CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

N_iter

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 22, 2010, 10:53
Default N_iter
  #1
New Member
 
marie
Join Date: May 2010
Posts: 21
Rep Power: 8
marye is on a distinguished road
Hi all,

I'd like to change viscosity according to "ss"
Basically my UDF is :

#include"udf.h"


DEFINE_PROPERTY(cell_visco, cell, thread)

{
int iter = N_ITER;
int n=51;
real mu_lam;
real ss;
real vit = C_U(cell, thread);
ss=mu_lam*vit;

if (iter=1)
mu_lam=1;
else
for
(iter=2; iter<n; iter++)
{
if (ss<0.00005)
mu_lam = 2.;
else
mu_lam=3.;

}
return mu_lam;
}

but I have a error that says : label "count2" not found (pc=12)


does anyone know what does it mean??

Anyway, I'd like to make 50 iterations, is N_ITER correct to control the number of iterations?

Thank you!!
marye is offline   Reply With Quote

Reply

Tags
n_iter

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



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