|
[Sponsors] |
June 7, 2015, 22:20 |
Particles data in DEFINE_PROPERTY
|
#1 |
New Member
Luleå tekniska universitet
Join Date: May 2015
Location: LTU, Luleå, Sweden
Posts: 11
Rep Power: 11 |
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*/ begin_particle_cell_loop(p,c,t) { 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.); } end_particle_cell_loop(p,c,t) /* 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/libpthread.so.0() [0x3f2740f710] 1000000: libudf_abs/lnamd64/2ddp/libudf.so(cell_abs_coeff+0x49) [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/libpthread.so.0() [0x3f2740f710] 999999: libudf_abs/lnamd64/2ddp/libudf.so(cell_abs_coeff+0x49) [0x2ae45ed6d3ad] " Thanks in advanced. Regards: MAC |
|
Tags |
absorption coefficient, composition pdf method, define_property, particles |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Particles are not hitting the wall | CedricVH | OpenFOAM Bugs | 23 | May 19, 2016 20:29 |
ã€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 01:24 |
how to output particle trajectory coordinate data | steven | CFX | 0 | July 13, 2006 17:49 |