CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Particles data in DEFINE_PROPERTY

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

LinkBack Thread Tools Display Modes
Old   June 7, 2015, 22:20
Post Particles data in DEFINE_PROPERTY
New Member
New South Wales
Join Date: May 2015
Location: UNSW, NSW, Sydney
Posts: 11
Rep Power: 2
mac_09 is on a distinguished road
Hello all,

Can I access the particles data in the DEFINE_PROPERTY UDF?

Here is my code:
/************************************************** *******************
UDF for specifying a temperature-dependent absorption coefficient property
from particle data - AQIB 2015
************************************************** ********************/
#include "udf.h"
#include "pdf_transport.h"
#include "dpm.h"
DEFINE_PROPERTY(cell_abs_coeff, c, t)
Particle *p;
real temp = C_T(c, t);
real alpha_p, qrad=0, alpha;

/*Calculating the qrad from particle data*/
real ys_p = p->scalar[52];
alpha_p = 1.185 * ys_p * P_T(p) * P_RHO(p);
qrad += alpha_p * pow(P_T(p),4.);
/* 4*Bolztman constant cancel out*/
alpha = qrad/pow(temp,4.0);
return alpha;

This UDF compiled successfully but I got an error when I initialized the solution.

Received signal 1 [time 6/8/15 11:49:21]
1000000: /share/apps/opt/ansys/14.5/v145/fluent/fluent14.5.0/lnamd64/2ddp/fluent.14.5.0() [0x1665767]
1000000: /share/apps/opt/ansys/14.5/v145/fluent/fluent14.5.0/lnamd64/2ddp/fluent.14.5.0() [0x1665db3]
1000000: /lib64/ [0x3f2740f710]
1000000: libudf_abs/lnamd64/2ddp/ [0x2ae45ed6d3ad]

Error [client] [time 6/8/15 11:49:21] fluent.14.5.0 received a fatal signal (SEGMENTATION VIOLATION).
999999: /share/apps/opt/ansys/14.5/v145/fluent/fluent14.5.0/lnamd64/2ddp/fluent.14.5.0(CX_Primitive_Error+0x204) [0x1665be4]
999999: /share/apps/opt/ansys/14.5/v145/fluent/fluent14.5.0/lnamd64/2ddp/fluent.14.5.0() [0x1665dff]
999999: /lib64/ [0x3f2740f710]
999999: libudf_abs/lnamd64/2ddp/ [0x2ae45ed6d3ad]

Thanks in advanced.

mac_09 is offline   Reply With Quote


absorption coefficient, composition pdf method, define_property, particles

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
Particles are not hitting the wall CedricVH OpenFOAM Bugs 21 June 2, 2015 04:33
【Help】"Error: Update_Time_Level: invalid data" Chen FLUENT 2 August 24, 2014 07:51
Straight through cyclone with particles rogerhoffmann CFX 1 May 21, 2012 18:42
export data at nodes Meenu FLUENT 1 December 30, 2011 02:24
how to output particle trajectory coordinate data steven CFX 0 July 13, 2006 17:49

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