CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   An error when using UDF (https://www.cfd-online.com/Forums/fluent/235569-error-when-using-udf.html)

PF Yu April 19, 2021 22:12

An error when using UDF
 
4 Attachment(s)
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?

AlexanderZ April 20, 2021 00:55

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.


All times are GMT -4. The time now is 20:22.