|
[Sponsors] |
June 22, 2010, 10:53 |
N_iter
|
#1 |
New Member
marie
Join Date: May 2010
Posts: 21
Rep Power: 15 |
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!! |
|
April 3, 2019, 15:57 |
|
#2 |
New Member
Join Date: Apr 2019
Posts: 2
Rep Power: 0 |
N_ITER can only be utilized in compiled UDFs.
https://www.sharcnet.ca/Software/Fluent6/html/udf/node105.htm |
|
Tags |
n_iter |
Thread Tools | Search this Thread |
Display Modes | |
|
|