CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   divergence-detected-amg-solver-temperatur (https://www.cfd-online.com/Forums/fluent/235525-divergence-detected-amg-solver-temperatur.html)

aminalaouti April 18, 2021 09:33

divergence-detected-amg-solver-temperatur
 
hi every one,

i tried to put an UDF for thermal conductivity (conductivity= viscosity / prandt number).

the viscosity is calculated by the sutherland law, and the prandt number egale to 0.71, so the relation is : conductivity=viscosity(by sutherland)/0.71

i load my UDF , i corrected the errors, i choose KTC_sutherland for conductivity and sutheland for viscosity.

but when i start the calculation i get an error: divergence-detected-amg-solver-temperatur

here is my UDF:

#include "udf.h"

DEFINE_PROPERTY(KTC_sutherland,c,t)

{

real KTC;

real MU_L;

#define pr 0.71

KTC= MU_L/pr ;

return KTC;

}

for the configuration, i have a square cavity failled by air with vertical differencial heated walls, the horizontal ones are adiabatics . for mesh i use the streched one near the walls .


All times are GMT -4. The time now is 07:40.