July 11, 2019 at 7:27 pmholaageeSubscriber
I am trying to simulate methane combustion using ANSYS Fluent with a pressure-based solver, where I include source terms defined by UDFs. The source terms are functions of the density gradient. Since the cell macro C_R_G(c,t) can only be used in the density-based solver, is it possible to get a density gradient in a pressure-based solver so that I can use it in my UDF code?
July 12, 2019 at 7:18 amDrAmineAnsys Employee
Check the official way to get the gradients of variables as documented in the manual.
July 12, 2019 at 8:46 amholaageeSubscriber
Thank you for answering. I looked through the manuals, I am not sure what you mean by the "official way". Is it using the cell macros?
July 12, 2019 at 10:18 amDrAmineAnsys EmployeeCheck the gradient paragraph in customization manual.
January 21, 2021 at 11:04 amSEANGHAISubscriberHello! Everyone, if you want to get the gradient results of all variables in ANSYS FLUENT, you can go to the following link that has a video of getting gradient results of all variables without UDF. Here is the link:
January 21, 2021 at 12:54 pmKarthik RAdministratorhi,nYou could do it a couple of ways. Using the UDF is one. Yes, you can use C_R_G(c,t) for this.nYou can also use Fluent expressions to define your source term if this is an analytical expression. In order to retain the gradient data, you can prevent the solver from freeing up memory by enabling the following text command: nsolve/set/advanced/retain-temporary-solver-memnThis should open up additional variables for post-processing. nPlease see the following link for additional details. nBest Regards,nKarthikn
- 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.