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

UDF and Number iterations

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Doru Grosan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2005, 13:06
Default UDF and Number iterations
  #1
neyugnteivgnuh
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!
  Reply With Quote

Old   April 7, 2005, 06:05
Default Re: UDF and Number iterations
  #2
Doru Grosan
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.
azores likes this.
  Reply With Quote

Old   June 14, 2021, 08:17
Default change de mass source from an udf each 100 iteration
  #3
New Member
 
Beatriz
Join Date: Jun 2021
Posts: 11
Rep Power: 5
azores is on a distinguished road
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!
azores is offline   Reply With Quote

Reply


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


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


All times are GMT -4. The time now is 04:30.