lost.identity |
April 20, 2011 09:15 |
Issue with DEFINE_PROPERTY UDF in 3D
Hi,
I'm trying to carry out combustion simulations whereby I change the density based on a normalised temperature (progress variable). In order to do this I created the following DEFINE_PROPERTY UDF
Code:
#include "udf.h"
DEFINE_PROPERTY(c_density, c, t)
{
real rho, tao, rho_u;
tao = 6.48;
rho_u = 1.0261;
rho = rho_u/(1.0 + tao*C_UDSI(c,t,2));
return rho;
}
In 2-D I have no issues with using the above UDF. However, in 3-D in the Solution Initialisation when I select "Compute from all-zones" it gives a segmentation with the following error
Code:
==============================================================================
Stack backtrace generated for process id 13521 on signal 1 :
/usr/ansys_inc/v121/fluent/fluent12.1.2/lnamd64/3ddp/fluent.12.1.2[0x12c759d]
/usr/ansys_inc/v121/fluent/fluent12.1.2/lnamd64/3ddp/fluent.12.1.2[0x12c7aa3]
/lib64/libpthread.so.0[0x7f4c4c24da90]
rho_c/lnamd64/3ddp/libudf.so(c_density+0x12)[0x7f4c4b1ab34e]
Check the file fluenterror.log for details.
Please include this information with any bug report you file on this issue!
==============================================================================
Error: fluent.12.1.2 received a fatal signal (SEGMENTATION VIOLATION).
Error Object: #f
Here rho_c refers to my UDF, I don't understand why the problem only occurs in 3D and not in 2D.
Thanks.
|