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

N_iter

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2010, 10:53
Default N_iter
  #1
New Member
 
marie
Join Date: May 2010
Posts: 21
Rep Power: 15
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

Old   April 3, 2019, 15:57
Default
  #2
New Member
 
Join Date: Apr 2019
Posts: 2
Rep Power: 0
RaheelAhmed is on a distinguished road
N_ITER can only be utilized in compiled UDFs.
https://www.sharcnet.ca/Software/Fluent6/html/udf/node105.htm
RaheelAhmed is offline   Reply With Quote

Reply

Tags
n_iter

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



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