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

udf error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2011, 13:40
Default udf error
  #1
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15
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 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
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 01:28.