CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

Segmentation violation wall normal velocity

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2012, 23:56
Default Segmentation violation wall normal velocity
Join Date: Mar 2011
Posts: 50
Rep Power: 12
cdf_user is on a distinguished road
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"


cell_t c;
face_t f;
int i,idim=3;
real vn=0.,normal[3],A[ND_ND];
real NV_VEC(velocity);



printf("\n Velocity=%g \n",vn);

cdf_user is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

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

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