CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF Error at initialization (http://www.cfd-online.com/Forums/fluent/40591-udf-error-initialization.html)

Atsu April 15, 2006 10:18

UDF Error at initialization
 
Hi all,

I am studying UDF,I have a problem doing a example of UDF hlep,there is not erroe in compiling ,but do not run when I initialize a solution (Solve->Initialize->Initialize...). How to do with?

Thank you for your advice, Atsu

---------------------------------------------------------------- ---------------------------------------------------------------- Stack backtrace generated for process id 11933 on signal 1 : Please include this information with any bug report you file on this issue! ---------------------------------------------------------------- ----------------------------------------------------------------

cfluent.6.2.16[0x85a5bff] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16[0x85a5a92] /lib/i686/libpthread.so.0[0xd49097] /lib/i868/libc.so.6[0x37c898] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(Chip_Exec_C+0x10b)[0x85c5b3b] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(Density+0x68c)[0x81aa26c] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16{Get_Thread_Derived_Variables+0x33e3)[0x83d30d3] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval+0xb6f)[0x85d24b6] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval+0xb6f)[0x85d24b6] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval+0xd4a)[0x85d2691] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval+0xf0b)[0x85d2852] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16[0x85d2aca] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval_errprotect+0x41)[0x85d2b7b] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval+0xb6f)[0x85d24b6] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval+0x2f3)[0x85d1c3a] /usr/local/Fluent.Inc/fluent6.2.16/lnx86/2d/fluent.6.2.16(eval+0x102a)[0x85d2971]

Error: fluent.6.2.16 received a fatal signal (SEGMENTATION VIOLATION). Error Object: #f

Atsu April 15, 2006 12:32

Re: UDF Error at initialization
 
Hi again,

It is one of my UDFs. Thank you, Atsu

#include "udf.h"

DEFINE_PROPERTY(test, cell, thread)

{

real rho; /* density [kg/m3] */

real ln_temp = C_T(cell,thread); /* temperature [K] */

if(ln_temp<115){ /* liquid */

rho = 854.5 + 3.1392 * pow(ln_temp,1) + (-0.047445) * pow(ln_temp,2); }

else { /* vaper */

rho = 2910.9 + (-45.206) * pow(ln_temp,1) + 0.18021 * pow(ln_temp,2); }

return rho;

}

Marijo April 16, 2006 17:16

Re: UDF Error at initialization
 
First do the initialization and than compile and hook up the UDF.

Atsu April 17, 2006 21:40

Re: UDF Error at initialization
 
Hi Marijo,

Thank you very much for your comment.

Atsu


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