CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Segmentation violation wall normal velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2012, 23:56
Default Segmentation violation wall normal velocity
  #1
Member
 
Join Date: Mar 2011
Posts: 50
Rep Power: 15
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"

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);

}
cdf_user 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
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 17:30.