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

Issue with DEFINE_PROPERTY UDF in 3D

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2011, 10:15
Default Issue with DEFINE_PROPERTY UDF in 3D
  #1
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
lost.identity is on a distinguished road
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.
lost.identity is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
Uds udf issue solefire FLUENT 0 September 27, 2010 11:52
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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