CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDRGM problem (https://www.cfd-online.com/Forums/fluent/50710-udrgm-problem.html)

agg February 27, 2009 15:49

UDRGM problem
 
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?!

agg March 12, 2009 08:59

Re: UDRGM problem
 
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, ...))



All times are GMT -4. The time now is 06:58.