CFD Online URL
[Sponsors]
Home > Forums > FLUENT

udf error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 10, 2011, 13:40
Default udf error
  #1
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 184
Rep Power: 6
hamid1 is on a distinguished road
Hi,
does anybody know what is wrong with this udf code, i got tired..

DEFINE_EXECUTE_AT_END(calculation_PF_QF)
{

T=RP_Get_Real("flow-time");


face_t f;
Domain *domain;

real NV_VEC(A);
real PF=0;
real force=0;


INT ID=15;
Thread *thread=Lookup_Thread (domain,ID)



begin_f_loop(f,thread)
{

F_AREA (A,f,thread);
force+=F_P(f,thread)*NV_MAG(A);
PF= force/B;

}

end_f_loop(f,thread)



}



there are several parse error and ...
Error: Set_Thread_Variables: wta(real)
Error Object: ((constant . 1) (profile "" ""))

thanks for ur helps
hamid1 is offline   Reply With Quote

Reply

Thread Tools
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 On
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 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


All times are GMT -4. The time now is 06:13.