October 13, 2022 at 11:00 ammaria.marinariSubscriber
I am looking for a way to find the coordinates of nodes associated with a face. Is there any way to do this?
I would like to perform calculations on them to produce a force profile at the centroids based on the coordinates of the nodes.
The UDF I currently have is applying the force to the centroids of the faces based on the coordinates of the centroids using this:begin_f_loop(f,t)//Finding the position of the centre of the faceF_CENTROID(C,f,t);//Defining rreal r = pow((pow(C, 2) + pow(C, 2)), 0.5))F_PROFILE(f, t, i) = thrust*r;end_f_loop(f,t)I would like to change r (which is the radius of the centroid) to include the 3 node points instead.I have found the macro F_node but this just gives the number of nodes rather than the coordinates of the nodes.
October 17, 2022 at 3:49 pmRobAnsys Employee
You may want to start here https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v222/en/flu_udf/flu_udf_DataAccessMacros.html We (staff) are unable to offer much beyond the manual references for UDFs, but the wider community doesn't have the same restrictions.
- 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
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2022 Copyright ANSYS, Inc. All rights reserved.