TAGGED: chemical-equilibrium, udf
-
-
May 23, 2023 at 1:10 pm
Kai Bittner
SubscriberHello,
in order to model a mixture in a complete chemical equilibrium state at a membrane surface, I am trying to overwrite the species mass fractions with the corresponding equilibrium mass fractions calculated by the "Relax to Chemical Equilibrium" model using a UDF. I can access the field function of the equilibrium mass fraction in the GUI, but I have not found a macro for it yet.
Is it possible to access the equilibrium mass fraction of a species in a UDF? Furthermore, is there a function to have these variables calculated within a UDF without having the model enabled in Fluent?
Regards,
Kai
-
May 24, 2023 at 1:51 pm
Rob
Ansys EmployeeYou can code your own model up, but without the model the macro/value won't be calculated so you can't not turn it on and expect Fluent to know the value.
There are macros listed in the documentation, so have a look there. I suspect this isn't what you're after, but may give you a hint https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_ModelSpecificDEFINE.html%23flu_udf_relax_equil
-
May 25, 2023 at 9:03 am
Kai Bittner
SubscriberThanks for the reply!
Unfortunately I cannot open the link as it directs me to the customer support area, but I suspect it refers to the DEFINE_RELAX_TO_EQUILIBRIUM command. I don't think this macro can help me with my issue, since it seems to be only meant to change the value of characteristic time and the equilibrium mass fraction is not an argument in the function.
What I am looking for is a macro to access the cell value of the equilibrium mass fraction, such as C_STORAGE_R(c,t,nv), where nv would be something like Mass_fraction_equilibrium[species_index], or a workaround for this issue. However, I have not found any information on this yet. I also searched the fluent/src footer, but did not find any clues there either. -
May 25, 2023 at 10:35 am
Rob
Ansys EmployeeClick on Help in Fluent then paste the link into the browser that opens. The solvers have a token/cookie/biscuit to bypass the log in requirements.
Unfortunately if it's not in the manual I can't comment. If you've been looking in /src read everything carefully and note some of those calls change between releases.
-
- 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.

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: Received signal SIGSEGV
-
5204
-
3281
-
2459
-
1308
-
970
© 2023 Copyright ANSYS, Inc. All rights reserved.