-
-
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
DrAmine
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
DrAmine
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
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2532
-
2066
-
1285
-
1104
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.