-
-
November 20, 2018 at 5:55 pm
yk2359
SubscriberHello,
Example FSI case:
- Flow time (End time) 1 sec
- Time step size 0.1 sec
- System coupling iterations 10
- Fluent iterations 5
I am looking extract variables at the end of every 1 system coupling iteration (at the end of every 5 fluent iterations) using DEFINE_ADJUST UDF. Now I understand that adjust macro runs for every 1 fluent iteration, but is there any way to execute it only at every 5th? Or any other way? Please suggest.
Â
Thank you,
YK
-
November 20, 2018 at 6:20 pm
Amine Ben Hadj Ali
Ansys EmployeeYes you can think about executing the content of the DEFINE_ADJUST whenever N_ITER%5 ==0Â
-
November 20, 2018 at 6:54 pm
yk2359
SubscriberThanks for the response. As N_ITER is a solver macro I believe I need not define it again.
But while writing a parallel UDF, does if N_ITER%5 ==0{code} condition come under RP_NODE? !RP_HOST?
-
November 20, 2018 at 8:04 pm
Amine Ben Hadj Ali
Ansys EmployeeI guess it will be available everywhere and passed to the node (so I generally put everything on nodes as host does not contain any mesh data) so make your UDF parallel as you have learned to do.
-
November 21, 2018 at 5:55 am
-
- The topic ‘How to script DEFINE_ADJUST UDF to execute for every nth fluent iteration?’ is closed to new replies.
-
4678
-
1565
-
1386
-
1241
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
