-
-
March 16, 2023 at 5:13 am
ahmed ibrahim
Subscriberhow to make the same thing such that C_T(c,t) at the centriod in udf in named expression because i have a peoblem in running the udf?
-
March 16, 2023 at 6:26 am
SRP
SubscriberHi,
Can you please explain what problem you are facing in running UDF?
Thank you
-
March 16, 2023 at 12:17 pm
ahmed ibrahim
Subscriberwhen i run a udf in ansys 2021r2 and above for single precision
i haveNode 0: Process 15576: Received signal SIGSEGV.==============================================================================999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directory999999: mpt_accept: error: accept failed: No such file or directoryand in double precisionBAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
-
-
March 16, 2023 at 7:28 am
DrAmine
Ansys EmployeeDoes depend on what you want to achieve per UDF? I see you created another thread so please try to answer to that thread!
C_T is just Static Temperature Variable in Ansys Fluent Expression Language
-
March 16, 2023 at 12:26 pm
ahmed ibrahim
SubscriberDEFINE_SOURCE(elec_power,c,t,ds,eqn){real x[3];real ir;real source;C_CENTROID(x,c,t);ir=1.687E+06+31657*x[0]+62239*x[1]-4.902E+08*x[0]*x[0]-1.869E+06*x[0]*x[1]-4.944E+08*x[1]*x[1]+1.008E+06*x[0]*x[0]*x[0]+1.698E+07*x[0]*x[0]*x[1]+6.09E+06*x[0]*x[1]*x[1]-3.391E+07*x[1]*x[1]*x[1]+8.459E+09*x[0]*x[0]*x[0]*x[0]+4.648E+08*x[0]*x[0]*x[0]*x[1]+1.584E+11*x[0]*x[0]*x[1]*x[1]+1.243E+08*x[0]*x[1]*x[1]*x[1]+9.672E+09*x[1]*x[1]*x[1]*x[1];source=-(0.0144*0.55894609*ir*(((0.21+((-0.002)*(C_T(c,t)-298.15)))*(1+((((2.62323E-23)*(C_T(c,t)))/((1.602176E-19)*(0.93040049+((-0.002)*(C_T(c,t)-298.15)))))*((double)log((double)833)))))-(((0.0263+(0.0000355*833)+(0.00178*(C_T(c,t)-298)))*833*833*(pow((0.009637761+((-0.0007)*(C_T(c,t)-298.15))),2.))))))/0.00000864;C_UDMI(c,t,0)=source;return source;}this is my udf which i have a problem in ansysso i want to make the same thing in named expressionso i had a problem in defining the cell temperature at centriod in named expression like udf
-
-
March 16, 2023 at 12:27 pm
ahmed ibrahim
Subscriberis that what you mean?
-
March 16, 2023 at 12:28 pm
-
March 16, 2023 at 12:38 pm
ahmed ibrahim
Subscriberso when i use the same thing in the picture in the equation
it will be read as cell temperature at cetriod for the part i want or not
this is the question
-
-
March 16, 2023 at 12:51 pm
ahmed ibrahim
Subscriberc_t (i want it at the centroid of each cell in the part)
how i can do this in named expression
-
March 16, 2023 at 3:32 pm
DrAmine
Ansys EmployeeYes that variable corresponds to the cell centroid static temperature. -
March 16, 2023 at 3:34 pm
DrAmine
Ansys EmployeeAs you are not liniarzing you can directly provide the source term via Fluent Expressions. Please check your region you are trying to emit the source if it is correct.
-
March 16, 2023 at 6:15 pm
ahmed ibrahim
Subscriberi swear, you solved a big problem for me
thank you ftom my heart
but what is the meaning of (not linearizing)
-
March 17, 2023 at 7:06 am
DrAmine
Ansys EmployeeI refer here to the Customization Manual where DEFINE_SOURCE is explained.
Another good reference is to go through the basics with reading the simple introduction of Patankar "Numerical Heat Transfer and Fluid Flow".
Linearization will help on stability.
-
-
-
- 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
-
3930
-
2649
-
1861
-
1272
-
610
© 2023 Copyright ANSYS, Inc. All rights reserved.