May 8, 2023 at 11:23 pmmctom0518Subscriber
I am new to defining UDFs for adjacent cells. I am dealing with a system that requires transferring data from one boundary to the adjacent boundary along an internal-internal boundary. The problem is that I am dealing with 3 internal boundaries that are adjacent to one another (e.g. water internal boundary, equilibrium internal boundary as a thin surface, and gas internal boundary). I wish to collect adjacent cells of the "equilibrium boundary layer" but only in the "gas internal boundary layer."
Is there a way to select adjacent cells only from one domain (as opposed to adjacent cell)?
May 9, 2023 at 10:02 amRobAnsys Employee
Please can you post an image? I'm not quite sure what you're trying to do.
May 9, 2023 at 5:02 pm
May 10, 2023 at 10:06 amRobAnsys Employee
Is that a mesh boundary or a liquid free surface?
May 10, 2023 at 3:47 pmmctom0518Subscriber
This is a mesh boundary.
May 10, 2023 at 4:03 pmRobAnsys Employee
If it's a wall & wall:shadow there should only be one cell for each surface facet. Where that surface contacts the external wall gets messy as the cell may not be common to both boundaries.
May 10, 2023 at 4:07 pmmctom0518Subscriber
Thank you for your reply. Actually, all of these zones are internal, which is why I am confused about how to select the correct adjacent cells.
Is there a way that I can use an "IF" loop to only perform operations on cells for specific z-coordinate?
e.g. IF z >= 1 do .... else z <= 1 do nothing
May 10, 2023 at 4:21 pmRobAnsys Employee
That could work. You're looking for the cell is a specific cell zone assuming you have two or three different fluid zones (labels).
May 10, 2023 at 4:25 pmmctom0518Subscriber
Yes, that is correct. Would I be able to use something like C_CENTROID for the z-axis only, while also using F_C0 and F_C1?
May 11, 2023 at 11:11 amRobAnsys Employee
It could, but what happens when the surface moves due to the flow solution?
- 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
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
© 2023 Copyright ANSYS, Inc. All rights reserved.