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

urgent UDF problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2007, 11:40
Default urgent UDF problem
  #1
amn
Guest
 
Posts: n/a
Hi all, I want to write a UDF in unsteady fluent.But I have a problem with it.I want under a condition that is clear for the program ;UDF makes fluent to only change its values for CURRENT_TIME and N_TIME (i.e. the time of the program and variables).I don't realy want to revert the simulation results back to its initial values at the begining of the time step.How can I do that?

thanks in advance
  Reply With Quote

Old   August 12, 2007, 12:19
Default Re: urgent UDF problem
  #2
Sujith
Guest
 
Posts: n/a
Hi, It is not possible to change the time step or current time inside a UDF, if u are looking for variable time stepping, it is possible through solve->iterate panel. there is also a macro available to vary the time step size in fluent..

best wishes, Sujith
  Reply With Quote

Old   August 12, 2007, 13:25
Default Re: urgent UDF problem
  #3
amn
Guest
 
Posts: n/a
Hi thank you for your reply ,can I make fluent to reiterate the time step with the current values of variables (e.g pressure ,velocity , etc. )with in my UDF?

thanks in advance

  Reply With Quote

Old   August 13, 2007, 12:11
Default Re: urgent UDF problem
  #4
Sujith
Guest
 
Posts: n/a
Hi, Isn't it same as increasing the number of iterations in a time step.

i am not sure if this can be achieved through a UDF. You can try reducing the numbre of iterations N_ITER in UDF for reiterating.

best wishes, Sujith
  Reply With Quote

Old   August 14, 2007, 08:10
Default Re: urgent UDF problem
  #5
amn
Guest
 
Posts: n/a
hi Sujith, thanks a lot. i really want to do that i.e. i want to increase the number of iterations in a time step until my necessary condision is met. can you reply me how i can do that?
  Reply With Quote

Old   August 14, 2007, 13:44
Default Re: urgent UDF problem
  #6
Sujith
Guest
 
Posts: n/a
Hi, well i am not sure if there is any method to do that... did u try reducing N_ITER

Best regards, Sujith
  Reply With Quote

Old   August 15, 2007, 06:19
Default Re: urgent UDF problem
  #7
amn
Guest
 
Posts: n/a
Hi, thank you i don't know how can i use N_ITER for increasing the iterations when the convergence conditions of FLUENT are met.

can tou explain it to me? thanks.
  Reply With Quote

Old   August 16, 2007, 14:37
Default Re: urgent UDF problem
  #8
Sujith
Guest
 
Posts: n/a
I am not pretty sure of this method. u need to check this. N_ITER is the macro for the number of iterations. You can access this inside a UDF. you may need to use DEFINE_ADJUST to check the condition. if it is satisfied you can reduce the number of iterations, N_ITER so that fluent will continue the number of iterations till the specified number of iterations are done in a time step.

hope this helps

Sujith

  Reply With Quote

Old   August 18, 2007, 04:03
Default Re: urgent UDF problem
  #9
mehrdad
Guest
 
Posts: n/a
Hi, i think we can not alter the N_ITER within a UDF. i've implemented a similar idea through N_TIME and it was not successful. also i think changing the number of iterations when the convergence conditions is met can not help.

Best wishes

amn
  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
UDF Problem ozgur Fluent UDF and Scheme Programming 18 January 17, 2016 14:40
Pressure profile UDF for unsteady-state problem? Mohsen Keshavarzian FLUENT 2 August 20, 2008 04:22
parallel UDF problem kerem FLUENT 2 June 20, 2006 06:56
Switch problem! using 2 custom udf laws at the same time HP FLUENT 0 September 15, 2004 09:48
UDF variables F1, y / problem with UDF Fabian FLUENT 6 June 2, 2003 10:22


All times are GMT -4. The time now is 09:50.