September 25, 2020 at 5:50 amnaibafSubscriberDear all,I have question regarding the DEFINE_SOURCE UDF. I want to apply a mass source to my model. When hooking a source function to a cell zone, is the source term then calculated and applied for each individual cell in cell zone or is a mean value from all cells applied to selected cell zone?nFrom the manual (Customization Manual Part I Chapter 184.108.40.206. The solver passes to the DEFINE_SOURCE term UDF all the necessary variables to define a custom source term, since source terms are solved on a cell basis) I suggest, that the source term is calculated an applied for each cell individual, am I right with this?n nThank you for your help!n
September 25, 2020 at 10:47 amRobAnsys EmployeeThe source term will be applied to the whole cell zone, but the individual cell volume is accounted for in the calculation. Ie for mass a larger cell will get more mass added but the mass/m3 will be the same for all cells. n
September 25, 2020 at 11:21 amnaibafSubscriberHallo,nnThank you for your answer. This means if I calculate a mass source for each cell (e.g. based on density variation, like degassing Boundary udf in the manual) this mass is not directly added or removed from the individual cell? Fluent is calculating an overall value for the whole cell zone, which is than applied to the cells and weighted by cell volume? Am I right?.Regardsn
September 25, 2020 at 12:59 pmRobAnsys EmployeeIf you're running a cell loop it'll add based on the cell, I thought you were adding a bulk value. Best way is to test using some dummy values. n
September 25, 2020 at 1:11 pmnaibafSubscriberNo I don't use a bulk value. I want to simulate some kind of absorption of one phase, based on density variation. A little bid similar to the degassing udf in the manual. But I wanted to model absorbtion on cell basis. So if I use a cell loop in the DEFINE_SOURCE udf it is possible to simulate such a case? Or do you mean the DEFINE_SOURCE is looping on their own and adds or removes the mass for each cell Individual?.Regards
- 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
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2022 Copyright ANSYS, Inc. All rights reserved.