October 26, 2020 at 12:44 pmsteppenwolfSubscriberHi,nI'm new to UDF's and I need to calculate the gradient of a vector field (which is a function several flow variables) as a post-process tool by using the DEFINE_ON_DEMAND function. I managed to store x, y, z components of the vector for each cell in 3 UDM's but I was not able compute the gradients.nI thought that I need to use C_UDSI_G(c,t) (I defined them) but I was not able use it either. nDo I have to iterate to be able to use C_UDSI_G? Or am I missing something else? Basically what need is something like C_UDM_G.nThanks
October 26, 2020 at 1:50 pmRobAnsys EmployeeCheck in the documentation, there's a flag to set via the TUI and several macros to give the gradient of various values. n
October 27, 2020 at 4:53 amsteppenwolfSubscriberI think you are referring to solve/set/expert 'Keep temporary solver memory from being freed?' yes option and some macros like C_P_G and C_P_RG. I'm aware of these but I'm mentioning gradient of a variable which is a function (a complicated one) of flow variables. Is there a macro that I can use to calculate gradient of this variable?nThanksnn
October 27, 2020 at 8:19 amDrAmineAnsys EmployeeYou use UDS for that if you have your own custom variable.n
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
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
- Heat transfer coefficient
- What are the differences between CFX and Fluent?
- Floating point exception in Fluent
- The solver failed with a non-zero exit code of : 2
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2022 Copyright ANSYS, Inc. All rights reserved.