|
[Sponsors] |
August 2, 2023, 10:32 |
Printing at each iteration using udf
|
#1 |
New Member
Shaik Raheem
Join Date: Jul 2023
Posts: 10
Rep Power: 2 |
Hi all,
I want to print the variables(pressure, temp, etc.) in fluent at each iteration using udf. what is the Macro used for it? help me.. |
|
August 4, 2023, 04:41 |
|
#2 |
Senior Member
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 207
Rep Power: 17 |
Why do you want to you use a marco for that? There are serveral possibilities in the GUI to do this. Your can print the values to the screen and/or store in a file.
|
|
August 4, 2023, 06:30 |
|
#3 | |
New Member
Shaik Raheem
Join Date: Jul 2023
Posts: 10
Rep Power: 2 |
Quote:
Actually i am dealing with transient flow. I am using udf for adding source terms to mass and energy equations. In each time step, after several iterations solution will be converged. I am getting the variables printed in a text file after every time step. But i wanted to see at every iteration. I came to know that we can use DEFINE_ADJUST macro. |
||
August 4, 2023, 08:00 |
|
#4 |
Senior Member
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 207
Rep Power: 17 |
I think, that you can change in the report definition the output intervall from flowtime to iteration.
Sorry, I can't give you a quick solution to do this in a UDF. |
|
August 4, 2023, 08:06 |
|
#5 | |
New Member
Shaik Raheem
Join Date: Jul 2023
Posts: 10
Rep Power: 2 |
Quote:
Have a good day |
||
August 4, 2023, 08:17 |
|
#6 |
New Member
Shaik Raheem
Join Date: Jul 2023
Posts: 10
Rep Power: 2 |
||
August 4, 2023, 08:19 |
|
#7 |
Senior Member
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 207
Rep Power: 17 |
I'm not on my PC with FLUENT. Sorry you have to check the user guide.
|
|
August 4, 2023, 08:21 |
|
#8 |
New Member
Shaik Raheem
Join Date: Jul 2023
Posts: 10
Rep Power: 2 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kernel for new CPUs | Simbelmynė | Hardware | 22 | January 5, 2018 16:41 |
Boundary condition changing at every iteration : How to write a UDF ? | Adrae | ANSYS | 0 | August 10, 2016 10:11 |
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF | acasas | CFD Freelancers | 1 | January 23, 2015 07:26 |
udf - iteration number within one time step?! | Mira | FLUENT | 1 | January 23, 2008 03:16 |
printing values from udf!!! | Shekhar | FLUENT | 2 | January 13, 2004 11:49 |