CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF DEFINE_SPECIFIC_HEAT after loading - fluent closed automatically (https://www.cfd-online.com/Forums/fluent-udf/232801-udf-define_specific_heat-after-loading-fluent-closed-automatically.html)

EvaKn December 31, 2020 05:13

UDF DEFINE_SPECIFIC_HEAT after loading - fluent closed automatically
 
1 Attachment(s)
Hello,



I have a Problem with a UDF for specific heat.

I can built and load the udf and in the Material Dialog I can choose the udf.

Now when i want to assign the udf, it loads briefly and right after that fluent closes automatically. Why does this happen? :confused:

In the UDF I also define density, sound of speed, thermal conductivity and viscosity with DEFINE_PROPERTY - this works perfectly... :)



How can I fix this? Do I have a Mistake in the UDF?

only the DEFINE_SPECIFIC_HEAT part

Attachment 81846

Thanks in advance for the help!

rupak504 December 31, 2020 08:24

Quote:

Originally Posted by EvaKn (Post 792045)
Hello,



I have a Problem with a UDF for specific heat.

I can built and load the udf and in the Material Dialog I can choose the udf.

Now when i want to assign the udf, it loads briefly and right after that fluent closes automatically. Why does this happen? :confused:

In the UDF I also define density, sound of speed, thermal conductivity and viscosity with DEFINE_PROPERTY - this works perfectly... :)



How can I fix this? Do I have a Mistake in the UDF?

only the DEFINE_SPECIFIC_HEAT part

Attachment 81846

Thanks in advance for the help!

are you using any UDM in your UDF?

EvaKn December 31, 2020 08:29

Quote:

Originally Posted by rupak504 (Post 792069)
are you using any UDM in your UDF?


No, I am not using any UDM.

AlexanderZ January 3, 2021 18:13

remove line
Code:

T = C_T(c,t);
from your code, T is defined in header


All times are GMT -4. The time now is 16:13.