CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   urgent UDF problem (https://www.cfd-online.com/Forums/fluent/45695-urgent-udf-problem.html)

amn August 12, 2007 11:40

urgent UDF problem
 
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

Sujith August 12, 2007 12:19

Re: urgent UDF problem
 
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

amn August 12, 2007 13:25

Re: urgent UDF problem
 
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


Sujith August 13, 2007 12:11

Re: urgent UDF problem
 
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

amn August 14, 2007 08:10

Re: urgent UDF problem
 
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?

Sujith August 14, 2007 13:44

Re: urgent UDF problem
 
Hi, well i am not sure if there is any method to do that... did u try reducing N_ITER

Best regards, Sujith

amn August 15, 2007 06:19

Re: urgent UDF problem
 
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.

Sujith August 16, 2007 14:37

Re: urgent UDF problem
 
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


mehrdad August 18, 2007 04:03

Re: urgent UDF problem
 
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


All times are GMT -4. The time now is 02:06.