|
[Sponsors] |
August 12, 2007, 12:40 |
urgent UDF problem
|
#1 |
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 |
|
August 12, 2007, 13:19 |
Re: urgent UDF problem
|
#2 |
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 |
|
August 12, 2007, 14:25 |
Re: urgent UDF problem
|
#3 |
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 |
|
August 13, 2007, 13:11 |
Re: urgent UDF problem
|
#4 |
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 |
|
August 14, 2007, 09:10 |
Re: urgent UDF problem
|
#5 |
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?
|
|
August 14, 2007, 14:44 |
Re: urgent UDF problem
|
#6 |
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 |
|
August 15, 2007, 07:19 |
Re: urgent UDF problem
|
#7 |
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. |
|
August 16, 2007, 15:37 |
Re: urgent UDF problem
|
#8 |
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 |
|
August 18, 2007, 05:03 |
Re: urgent UDF problem
|
#9 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Problem | ozgur | Fluent UDF and Scheme Programming | 18 | January 17, 2016 15:40 |
Pressure profile UDF for unsteady-state problem? | Mohsen Keshavarzian | FLUENT | 2 | August 20, 2008 05:22 |
parallel UDF problem | kerem | FLUENT | 2 | June 20, 2006 07:56 |
Switch problem! using 2 custom udf laws at the same time | HP | FLUENT | 0 | September 15, 2004 10:48 |
UDF variables F1, y / problem with UDF | Fabian | FLUENT | 6 | June 2, 2003 11:22 |