Tagged: fluent, udf, user-defined-function
-
-
December 8, 2022 at 3:12 pm
c.bruno
SubscriberHello everyone,
In my simulations I am computing the values of shear stress inside the fluid domain (using DEFINE_EXECUTE_AT_END(shear_stress_calc)) and then I am trying to find the percentage of elements whose shear stress is higher than a 10Pa threshold (using DEFINE_EXECUTE_AT_EXIT(ss_threshold)).
I would like my UDF to output the value of the percentage but I am not sure how to do it. Using the UDF manual I realised that I could use DEFINE_OUTPUT_PARAMETER but when I run my simulations it doesn't seem to work.
I can interpret correctly my UDFs but I don't get any output parameter. Does anybody know what I am doing wrong?
This is my UDF for computing and returning the percentage of shear stress:
Thank you in advance.
-
December 9, 2022 at 7:49 am
DrAmine
Ansys EmployeeWhich Ansys Fluent Version are you using? There is a new macro to do that in the recent Ansys Fluent released and supported versions.
-
December 9, 2022 at 11:02 am
c.bruno
SubscriberI am using Ansys 19.0. Is the new macro available in this version?
-
December 9, 2022 at 12:27 pm
DrAmine
Ansys EmployeeShould be: check DEFINE_REPORT_DEFITION_FN and I recommend to update a supported version. Release 19.0 is not supported anymore.
-
December 9, 2022 at 2:52 pm
c.bruno
SubscriberI will, thank you!
-
- 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
-
2534
-
2066
-
1285
-
1104
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.