|
[Sponsors] |
September 2, 2005, 14:36 |
udf error
|
#1 |
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 |
|
September 7, 2005, 04:35 |
Re: udf error
|
#2 |
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
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with UDF compiling for kTkLW model | Wantami | FLUENT | 0 | July 18, 2011 06:11 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Accessing phi from a fvPatchField at same patch | johndeas | OpenFOAM | 1 | September 13, 2010 21:23 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |