-
-
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
Ansys EmployeeHi,
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
Amine Ben Hadj Ali
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
Amine Ben Hadj Ali
Ansys EmployeeYes that variable corresponds to the cell centroid static temperature. -
March 16, 2023 at 3:34 pm
Amine Ben Hadj Ali
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
Amine Ben Hadj Ali
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.
-
-
-
- The topic ‘the method to define cell temperature in named expression’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
3882
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.