June 22, 2019 at 3:53 amWeiqiang LiuSubscriber
I am writing an UDF to define source term of species in my case. source terms arise because of chemical reaction below:
carbon in my system is defined as an UDS. I know how to calculate consuming rate of carbon, in other words source term of carbon. For source term of oxygen and carbon dioxide, I want to get source terms by multiplied some factor to carbon's source term according to above chemical reaction.
Therefore I need to use value returned by carbon source UDF to define oxygen source term and carbon dioxide source term.
I am thinking can I just set the value returned by carbon source UDF as global variable and then it can be accessed for all macros in the source code. However, I am worried about the sequence of fluent calling UDFs for these source terms. If fluent solves carbon source terms first, then it's ok to get other species source terms from carbon source. If fluent calculates oxygen and carbon dioxide source first, then problem occurs.
Is this doable in fluent? Or what's is the sequence of fluent calculating species source term?
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
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.