|
[Sponsors] |
February 27, 2009, 16:49 |
UDRGM problem
|
#1 |
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?! |
|
March 12, 2009, 09:59 |
Re: UDRGM problem
|
#2 |
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, ...)) |
|
|
|
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 4, 2006 00:37 |
Fluent6.0.12 support UDRGM? | Z.T. | FLUENT | 0 | April 10, 2003 07:53 |