CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF and Number iterations (https://www.cfd-online.com/Forums/fluent/36260-udf-number-iterations.html)

neyugnteivgnuh April 4, 2005 12:06

UDF and Number iterations
 
Hello, I would like to change viscosity all the 1000 iterations by UDF but I do not know the variable of the number iteration. Can you show me the variable of the number iterations. Thank you!

Doru Grosan April 7, 2005 05:05

Re: UDF and Number iterations
 
you can define a global variable

int It_Number=0;

and in a define_adjust function to increase this variable. Thus you can verify the number of iterations and change the viscosity value.

azores June 14, 2021 07:17

change de mass source from an udf each 100 iteration
 
Hello,

I read this post and I would like to do the same. Update a mass source value each 100 iterations. I have an udf that call a fortran program that calculates the mass source value. So, to define the number of iterations, do I need a second udf? Or can I use DEFINE_ADJUST inside the DEFINE_SOURCE?

Thanks in advance!


All times are GMT -4. The time now is 11:48.