TAGGED: udf
-
-
March 29, 2023 at 5:14 am
K
SubscriberThe UDF customization manual only describes how to send integers, reals, or strings between host and node processes. Is there a way to send Thread and cell_t datatypes? I have begin_f_loop nested inside a begin_c_loop(c,t), and I would like to send c and t to the nodes doing the begin_f_loop.
-
March 29, 2023 at 12:51 pm
Rob
Ansys Employeehttps://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_ChapParallelUDFUsage.html
-
March 29, 2023 at 11:30 pm
K
SubscriberAs stated in my original post, I looked through the customization manual and only found ways to send integers, real, or strings, but couldn’t find what I was after: how to send thread and cell_t datatypes.
I am trying to pass cell thread and cell index information into a face loop to do the following in parallel:
begin_c_loop(c,tc)
{
begin_f_loop(f,tf)
{
/* Computation involving f, tf, c, and tc */
}
}My understanding is that cell_t is just an integer data type, so my guess is I could just pass c by using one of the message passing commands for integers. But how would I pass the cell thread tc?
-
March 30, 2023 at 2:17 pm
Rob
Ansys EmployeeA UDF is an extra bit of coding for Fluent. It'll take data as needed (and defined) and do something. Don't worry about where the calculation is done, just worry about getting the RP_HOST and RP_NODE bits right.
-
- 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
- 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
-
5290
-
3311
-
2471
-
1308
-
1016
© 2023 Copyright ANSYS, Inc. All rights reserved.