CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

UDRGM problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2009, 16:49
Default UDRGM problem
  #1
agg
Guest
 
Posts: n/a
Hi All,

I copied & imported the IDEAL gas example code out of Chapter 7 of the manual discussing user-defined real gas models. The compile had the following warning at the UDF_EXPORT union:

IDEAL.c:133: warning: initialization from incompatible pointer type (clipped remainder in list)

I don't know if that's related, but the real problem is that loading the library crashes with a segmentation violation. Here's the transcript from the TUI:

/define/user-defined/real-gas-models> udrgm use user-defined real gas? [yes] User-Defined Realgas Library Name ["libudf"]

Opening user-defined realgas library "libudf"... Library "libudf/lnamd64/2ddp/libudf.so" opened

Setting material "air" to a real-gas...

================================================== ============================ Stack backtrace generated for process id 27990 on signal 1 : /usr/software/ansys_inc/v120/fluent/fluent12.0.7/lnamd64/2ddp/fluent.12.0.7[0x110d92d] /usr/software/ansys_inc/v120/fluent/fluent12.0.7/lnamd64/2ddp/fluent.12.0.7[0x110de33] /lib64/libpthread.so.0[0x2b49cf221c00] /usr/software/ansys_inc/v120/fluent/fluent12.0.7/lnamd64/2ddp/fluent.12.0.7[0x128c15c] Check the file fluenterror.log for details. Please include this information with any bug report you file on this issue! ================================================== ============================

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

I thought this would be straight forward, since the code comes from the manual. Any ideas what I've done wrong?!
  Reply With Quote

Old   March 12, 2009, 09:59
Default Re: UDRGM problem
  #2
agg
Guest
 
Posts: n/a
The ANYNAME_Setup prototype has changed in v12 to include a cxboolean. Here's the IDEAL example...

void IDEAL_Setup(Domain *domain, cxboolean vapor_phase, char *filename, int (*messagefunc)(char *format, ...), void (*errorfunc)(char *format, ...))

  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
VOF diffuse problem on two fluids problem Fang Jin FLUENT 5 February 17, 2011 06:38
Problem in Modelling Heat Transfer Problem Deepak R FLUENT 1 December 6, 2007 10:37
Problem in cavity flow problem saad Main CFD Forum 4 November 1, 2007 08:45
problem in solving "wave generation" problem san FLUENT 2 April 3, 2006 23:37
Fluent6.0.12 support UDRGM? Z.T. FLUENT 0 April 10, 2003 06:53


All times are GMT -4. The time now is 10:46.