January 12, 2023 at 11:52 amehsan.sadeghiSubscriber
I am little bit confused with the source term definition in my UDF. My question is if I should devide potential_source by cell volume or not? I have read in some posts here that it should be devided by cell volume and in manual there is no mention of such devision.
dS[eqn] = 0.0;
potential_source = (C_UDSI(c,t,1)*E_E)/EPS_0;
C_UDMI(c,t,4) = potential_source;
January 12, 2023 at 12:57 pmDrAmineAnsys Employee
Whatever you return back in Ansys Fluent should be per cell volume. Example for continuity the Source term dimension should be in kg/s/m³. As in the UDF everything is "dimensionsless" you should take care about the right dimensions and magnitude.
January 13, 2023 at 5:14 pmehsan.sadeghiSubscriber
Thanks @DrAmine for your response. I have another question regarding MHD module. In my source terms I need access to potential gradiants. What macro should I use? I couldn´t find anything related to MHD macros in manual.
January 16, 2023 at 7:38 amDrAmineAnsys Employee
I think that part is not documented and I cannot share any information on the non documented macros. If you have access to the customer portal you might find some knoweledge material showing to access potential variable and its gradient.
- 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.