-
-
December 15, 2019 at 3:22 pm
MohammadUT
SubscriberHello, I have two questions and I would be very thankful if you take time and answer them.
1-Does host is executed when reading a DEFINE_PROFILE UDF? because these same lines on this type of udf doesn't show the same result as an ONDEMAND UDF:
#if RP_HOST
Message("n I am in the host processn");
#endif /* RP_HOST */
#if RP_NODE
Message("I am in the node process with ID %dn",myid);
/* myid is a global variable which is set to the multiport ID for
each node */
#endif /* RP_NODE */
result of DEFINE_PROFILE:
I am in the node process with ID 0
I am in the node process with ID 1
I am in the node process with ID 2
I am in the node process with ID 3
I am in the node process with ID 4
result of DEFINE_ON_DEMAND:
I am in the host process
I am in the node process with ID 0
I am in the node process with ID 1
I am in the node process with ID 2
I am in the node process with ID 3
I am in the node process with ID 4
2-Do we need Host to set an RP-Variable in udf or it is node's job? If we need host for that considering question 1, what should I do to get this UDF that works fine in parallel with zero nodes, does the same with more nodes?
DEFINE_PROFILE(udftransient,t,i)
{
.
begin_f_loop(f,t)
{
F_PROFILE(f,t,i) = massfr;
}
end_f_loop(f,t)
.
RP_Set_Real("qintudf",(massfr/998.2)); // this line does nothing in parallel with 2 or more nodes
thank you in adavance.
-
December 16, 2019 at 6:06 am
DrAmine
Ansys EmployeeYou did the test and it shows that is not executed. I will try to sync host with node processes. Perhaps this is not required with you to your variable.
For further debugging start Gluent with zero cpu: that is the old serial solver.
-
- 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
-
5454
-
3419
-
2473
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.