|
[Sponsors] |
January 9, 2012, 14:07 |
execute udf after convergence
|
#1 |
Member
HJ
Join Date: Nov 2011
Posts: 30
Rep Power: 14 |
Dear all,
does anyone know how to execute a udf after convergence for steady state case. I find execute_at_end can only execute after one iteration. |
|
January 23, 2012, 15:20 |
|
#2 |
Member
Join Date: Jun 2011
Posts: 86
Rep Power: 15 |
||
January 23, 2012, 16:11 |
|
#3 |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 |
Wanghaojie,
If you're only looking to execute the code once, mali28's suggestion is correct. Have a look here: http://www.cfd-online.com/Forums/flu...ed-memory.html for a UDF which will run the macro ONLY IF time> a value you specify. However, if you're looking to run a macro at every timestep/iteration beyond a certain point, I recommend using the DEFINE_ADJUST macro, which will continue to run automatically, as opposed to only running once, per mali28's suggestion. ComputerGuy |
|
January 23, 2012, 18:51 |
how I can use two UDF at the same time
|
#4 |
New Member
Join Date: Sep 2011
Posts: 15
Rep Power: 15 |
I want to start an unsteady calculation in FLUENT , I use an unsteady velocity profile to the INLET, and An unsteady pressure to the outlet
the problem is that I could not run both UDF at the same time as boundary conditions of my problem please help me as soon as possible cordially |
|
January 24, 2012, 19:01 |
|
#5 | |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 |
You should be able to define two separate define_profile functions with different names. Then, in fluent, you'll need to hook the appropriate functions to your boundaries. Let us know if you're still having problems with this. If you want the code written, write down your equations for each (velocity and pressure) with time, and I'll send you the code.
ComputerGuy Quote:
|
||
April 4, 2019, 23:28 |
|
#6 | |
Senior Member
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 10 |
Quote:
Hello ComputerGuy, I am running a transient simulation. Is there a way to execute DEFINE_ADJUST after achieving convergence in every timestep. I want to determine the gradient of volume fraction of secondary phase in this macro and store in a UDM to use later. Solution is converging between 5 to 15 iterations in each time step. Thanks & Regards, Vidyadhar |
||
April 5, 2019, 03:00 |
|
#7 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
use DEFINE_EXECUTE_AT_END instead of DEFINE_ADJUST
best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF using c_face_loop(c,t,i) | frederic | FLUENT | 3 | January 17, 2017 00:17 |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 03:40 |
execute udf in ss & transient simulation | hosseinhgf | FLUENT | 0 | December 1, 2010 09:41 |
UDF for a field size | spring | FLUENT | 0 | May 11, 2010 10:02 |
Help Parallelizing UDF | AndresC | FLUENT | 0 | February 25, 2010 16:50 |