|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Sebi
Join Date: Mar 2019
Posts: 49
Rep Power: 7 ![]() |
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,363
Rep Power: 34 ![]() ![]() |
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 | 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 |