CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

udf error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2005, 13:36
Default udf error
  #1
T.Hari
Guest
 
Posts: n/a
iam novel to udfs in fluent, iam trying to use source term in granular multiphase flow, adding cohesive presssure as source term. i wrote the follwoing program, but iam getting error in fluent ACCESS_VIOLATIO SAV CASE NAD DATA FLIE UNDER NEW NAME AND EXIT,this kind of error is coming, can any one look at the program and help me

#include "udf.h" #define domain_id 3 DEFINE_ADJUST(pressure_cohesive,domain) {

Thread **pt=0;

Thread *t;

cell_t c;

Domain *subdomain=Get_Domain(domain_id);

int p=PHASE_DOMAIN_INDEX(subdomain);

thread_loop_c(t,subdomain)

{

begin_c_loop(c,t)

{

C_UDSI(c,t,0)=0.73*C_VOF(c,pt[p]);

}

end_c_loop(c,t)

}

} thanks in advance
  Reply With Quote

Old   September 7, 2005, 03:35
Default Re: udf error
  #2
Ahmed
Guest
 
Posts: n/a
drop the #define directive to the next line. In C language each preprocessing directive must be on its own line. Any C language primer will explain that, keep one handy
  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
Problem with UDF compiling for kTkLW model Wantami FLUENT 0 July 18, 2011 05:11
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 20:23
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 18:23.