-
-
June 27, 2019 at 11:49 am
zakmt293
SubscriberGreetings,
Respected experts I am working on a single Bubble growth in a super heated Domain. To incorporate mass and energy transfer at interface from phase change I have written a UDF. This UDF has the following steps
(1) This UDF utilizes Look-up-thread and track the interface based upon volume fraction through cell looping in Define-Adjust Macro.
(2) The mass transfer is calculated from Lees Model and it is stored in UDM at interface cells.
(3) Then this mass is transferred to vapor through Define-Source Macros.
(4) It is not calculating any kind of values over faces such as flux that may lead to take into account boundary zone or partition boundary zone faces.
My specify question is about paralleling as I am looping through cells and not faces do I need a parallel UDF???
if I need it then what I have learnt to my knowledge the structure should look like
DEFINE_ADJUST(Parallel_UDF,domain)
{
#if !RP_HOST /* node or serial */
{
My Program
}
#endif
}
Is the above mentioned approach right??
I do know about the principle face as well and I can utilize it to avoid counting of one face for many nodes. If you can go through it and just guide with you value able knowledge. I would be thankful.
Thank You
Zeeshan Ahmad Khan
-
June 27, 2019 at 2:11 pm
Rob
Ansys EmployeeHave a look in the documentation: which macros/loops need to be parallelised are covered in the section you found the parallel settings. What happens when you try the code?
If you are looping over cells and then changing cells you'll probably need to set parallel functions: otherwise you may alter a cell twice.
-
June 27, 2019 at 8:57 pm
zakmt293
SubscriberGreetings
The code runs fine. It is not giving any kind of errors. I am unable to get a very clear idea from the document that is why I pasted my question here.
Yes I am looping over cells but not changing them though I add mass of liquid in the form of source when there is an interface in cell with me. Would it alter the end results??
Thank You
Zeeshan Ahmad Khan
-
- 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 in cfd post
-
3644
-
2502
-
1735
-
1226
-
578
© 2023 Copyright ANSYS, Inc. All rights reserved.