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!
|
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. |
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 17:19. |