September 21, 2022 at 3:37 amcpkeeseeSubscriber
Hello, I am writing a UDF (in C language) to calculate the advective flux through a spherical outlet within a computational domain. I assume that I can use the F_ (face macros) for this function, as I am only interested in the mass flow passing through the surface of the outlet geometry. I continue to get a "parse" error, but cannot find a definition of that error in order to debug my code.
September 29, 2022 at 3:04 pmSwathi V. V.Ansys Employee
Are you getting the error without UDF? When exactly are you getting the error? Can you share a screenshot of the complete error message?
Please make sure the syntax and UDF commands are correct.
October 17, 2022 at 9:23 pmcpkeeseeSubscriber
Hi Swathi, I apologize for the delay. I changed my approach and I am using the UDF that is published at page 301 of the 2021/R2 UDF guide. The UDF calculates the mass flow through a boundary surface. In my case, I am trying to calcuate through the sphere that is suspened in the fluid domain. The meshed sphere is outlet that acts as sink for the sourced mass that is transported from the front face of the cubic fluid domain. When I compile the UDF, and then define a report that uses the UDF, in the report definition screen I do not get the option to select a surface (i.e., the sphere-outlet) as the applicable surface for the UDF. Again, the goal is to calculate the mass flow through the sphere-outlet.
- 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.
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
© 2023 Copyright ANSYS, Inc. All rights reserved.