|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Dave
Join Date: Mar 2019
Posts: 34
Rep Power: 6 ![]() |
Hi all,
I have two UDF's that I am using to define the viscosity of a secondary phase, one UDF works perfectly and doesnt slow down the solution, the other causes the iterations to be incredibly slow (for larger meshes). I think this is due to my if statement, but is there any way to improve the efficiency? currently the slow UDf is unusable due to how slow it is. PHP Code:
PHP Code:
Thanks you for any advice. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,259
Rep Power: 33 ![]() ![]() |
why do you use additional cell loop
remove Code:
begin_c_loop(c,pt[1]) { c is already defined in the header of macro best regards |
|
![]() |
![]() |
![]() |
Tags |
if-statement, phase, udf, viscosity |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save output of udf in another udf! | JuanJoMex | FLUENT | 0 | February 8, 2018 12:43 |
UDF problem- time dependent temperature at inlet | kaeran | FLUENT | 1 | June 16, 2015 21:48 |
parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 06:43 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
I need UDF help. | S.Whitney | FLUENT | 0 | October 15, 2007 11:29 |