|
[Sponsors] |
March 15, 2012, 23:56 |
Segmentation violation wall normal velocity
|
#1 |
Member
Join Date: Mar 2011
Posts: 50
Rep Power: 15 |
I am using the following udf to calculate the wall normal velocity of particles for particle deposition studies. After compiling, I hook the udf in reports --> sample, I get a segmentation violations. Any suggestions???
#include "udf.h" #include "dpm.h" #include "surf.h" #include "mem.h" #include "sg_mphase.h" #include "sg.h" #include "cxiface.h" DEFINE_DPM_OUTPUT(df_eff,header,fp,p,t,plane) { cell_t c; face_t f; int i,idim=3; real vn=0.,normal[3],A[ND_ND]; real NV_VEC(velocity); begin_f_loop(f,t) { F_AREA(A,f,t); vn=NV_DOT(A,p->state.V); } end_f_loop(f,t) printf("\n Velocity=%g \n",vn); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Natural convection in a closed domain STILL NEEDING help! | Yr0gErG | FLUENT | 4 | December 2, 2019 00:04 |
Velocity at wall in an internal flow | rsmartins | CFX | 3 | July 16, 2011 06:58 |
UDF for wall slipping | HFLUENT | Fluent UDF and Scheme Programming | 0 | April 27, 2011 12:03 |
Problem Interface Solid Fluid with wall velocity Solver v12 | hills1 | CFX | 2 | October 12, 2009 05:36 |
Influece of wall velocity in the main flow | marvin | CFX | 0 | March 22, 2008 02:05 |