CFD Online URL
[Sponsors]
Home > Forums > FLUENT

UDF Error at initialization

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2006, 11:18
Default UDF Error at initialization
  #1
Atsu
Guest
 
Posts: n/a
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
  Reply With Quote

Old   April 15, 2006, 13:32
Default Re: UDF Error at initialization
  #2
Atsu
Guest
 
Posts: n/a
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;

}
  Reply With Quote

Old   April 16, 2006, 18:16
Default Re: UDF Error at initialization
  #3
Marijo
Guest
 
Posts: n/a
First do the initialization and than compile and hook up the UDF.
  Reply With Quote

Old   April 17, 2006, 22:40
Default Re: UDF Error at initialization
  #4
Atsu
Guest
 
Posts: n/a
Hi Marijo,

Thank you very much for your comment.

Atsu
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
initialization species UDF louiza FLUENT 7 November 26, 2009 04:56
UDF sucessfully interpreted initialization error duaiduaihu FLUENT 0 May 11, 2009 22:18
UDF initialization Sam FLUENT 1 May 21, 2002 09:23


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