April 6, 2020 at 2:33 pmzrongjiaSubscriber
hi guys. I want to find the 8 neighboring cells of cell(i,j) by using UDF in Fluent. Do you know if there is a way to make it? I've figured out two ways to do it, but the udf didn't work. please see the questions below, thank you
Q1: is there a way to retrieve all the cells associated with a given node? In this way, I can loop through all the nodes of cell(i,j) first, mark their indices, and then retrieve the cells associated with those nodes.
Q2: I tried another approach using the macro “c_face_loop” to get the 4 faces of cell(i,j) first. After I got the neighboring 4 cells (marked as 1 in red) associated with these 4 faces, I used the “c_face_loop” again, in each of these 4 cells in order to find the other 4 cells (marked as 2 in black) that border them. Unfortunately, Fluent is currently crashing when I use “c_face_loop” for the second time.
- 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.
- I’m a starter
- YouTube tutorial files
- Fluid Flow – Lid Driven Cavity
- Magnetics-Permanent Magnetic Circuit with Air Gap
- Structural – Stepped Shaft in Axial Tension
- Fluid Flow – Turbulent Flow Over a Backward Facing Step
- Thermal – Heat Conduction in a Cylinder
- Fluid Flow – Flow over an Airfoil
- Fluid Flow – Flow in a S-Duct
© 2022 Copyright ANSYS, Inc. All rights reserved.