-
-
March 18, 2021 at 1:05 am
mkizhisseri
SubscriberHi there, I need to find a way to determine the nearest wall distance of a point in the face of an arterial inlet. I think writing UDF will be the best option, is anyone have a UDF or any leads so that it can be helpful for me? Are there any other options to determine the nearest wall distance for a point?n -
March 18, 2021 at 1:41 am
YasserSelima
SubscriberThe straightforward way to do it through UDF is to have outer loop over the walls threads, and inner loop over the nodes, and calculate the distance between the two. nHowever, there might be an easier way depending on; Is it a fixed point, or moving? Are you using dynamic mesh? What is the shape of your wall?n -
March 18, 2021 at 2:09 am
mkizhisseri
SubscriberHi Yasser thanks for your comments. Points are fixed, and actually, I need to find the nearest wall distance of each and every points in the face of my inlet. The shape of the wall will be irregular circular in shape resembling artery cross-section, and I'm not using dynamic meshing.n -
March 18, 2021 at 2:25 am
YasserSelima
SubscriberSo, the walls are fixed. I am not sure how the artery look like. But now, you don't need to run the UDF every time step.nYou can use Define on demand and save the values to a UDM ... so you can access it whenever you want during simulation. nBasically you will need to do the following in your functionnGet_DomainnLookup thread (The inlet thread) nLoop over the faces of the thread Outer outer loopndistance = Large_numbernUse the outer and inner loops described above .. every time you find the new_distance < distance , make distance = new_distancenFind the minimum distance in all nodes ..nSave it to UDMnEnd of outer outer loopn -
March 18, 2021 at 2:35 am
-
March 18, 2021 at 2:52 am
YasserSelima
SubscriberSo, it's not simple. n -
March 18, 2021 at 3:22 am
mkizhisseri
SubscriberOk..I will try n -
March 18, 2021 at 3:41 pm
Rob
Ansys EmployeeRemember Fluent is a cell based solver so the point will be the facet centre. What do you want to do with the data, knowing that might help find an alternative. n -
March 26, 2021 at 5:03 pm
mkizhisseri
SubscriberActually I wanted to give a fully developed velocity profile at the inlet of the artery.n -
March 29, 2021 at 9:47 am
Rob
Ansys EmployeeOK, easier approach is to extrude the inlet section for 10-15 diameters and model just that part in a separate model. Use a uniform velocity inlet and write out a profile. Make sure the outlet of that model is in the same plane and orientation as the inlet to the main model and all good. Otherwise you need to re-orient the profile and that might be complicated given the shape. n
-
- 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
-
2706
-
2142
-
1355
-
1144
-
462
© 2023 Copyright ANSYS, Inc. All rights reserved.