|
[Sponsors] |
April 19, 2021, 22:12 |
An error when using UDF
|
#1 |
New Member
Pengfei Yu
Join Date: Feb 2021
Posts: 3
Rep Power: 5 |
Hi, guys.
When inputting the polynomial coefficients in FLUENT 14.5 materials dialog box, I find that the coefficients have only 7 significant digits. Unfortunately, the coefficients in my polynomial coefficients have 12 significant digits, so I use two macros (DEFINE_PROPERTY and DEFINE_SPECIFIC_HEAT) to define new materials. The UDF can be compiled in ANSYS FLUENT. However, FLUENT will exit abnormally, once I click the initialize (both standard initialization and hybrid initialization). The error message and UDF are uploaded. Can anyone anwser me please? |
|
April 20, 2021, 00:55 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
frankly speaking, code seems to be correct,
may be the problem in polynomials... you may try to add #include "math.h" as it may not be included in v14.5 by default.
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf for one dimensional linear motion based on force | maccheese | Fluent UDF and Scheme Programming | 2 | September 1, 2019 02:18 |
Save output of udf in another udf! | JuanJoMex | FLUENT | 0 | February 8, 2018 12:43 |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 00:53 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |