|
[Sponsors] |
April 4, 2005, 13:06 |
UDF and Number iterations
|
#1 |
Guest
Posts: n/a
|
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!
|
|
April 7, 2005, 06:05 |
Re: UDF and Number iterations
|
#2 |
Guest
Posts: n/a
|
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. |
|
June 14, 2021, 08:17 |
change de mass source from an udf each 100 iteration
|
#3 |
New Member
Beatriz
Join Date: Jun 2021
Posts: 11
Rep Power: 5 |
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! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
complex number operation in udf? | hongxiao | FLUENT | 5 | June 14, 2017 15:11 |
How to get the Global Node Number by UDF : Fluent | Yusuke | FLUENT | 1 | October 23, 2015 11:55 |
Help with UDF - nusselt number | Sammie | FLUENT | 0 | October 24, 2007 08:10 |
Nusselt number in UDF | Manuel | FLUENT | 0 | November 6, 2006 08:23 |
Change Courant number from UDF | HS | FLUENT | 0 | December 1, 2005 06:16 |