CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

problem with Compute_Force_And_Moment

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

LinkBack Thread Tools Display Modes
Old   November 21, 2010, 09:33
Red face problem with Compute_Force_And_Moment
New Member
Join Date: Aug 2010
Posts: 4
Rep Power: 9
Tien wen is on a distinguished road
I have a Problem with function Compute_Force_And_Moment
My udf is :
#include "udf.h"
#define FORCE_OUTPUT_FILE "force.out"
#define MOMENT_OUTPUT_FILE "moment.out"

FILE *fd1=fopen(FORCE_OUTPUT_FILE,"a");
FILE *fd2=fopen(MOMENT_OUTPUT_FILE,"a");
real x_cg[ND_ND];
real f_glob[ND_ND];
real m_glob[ND_ND];

Domain *domain= Get_Domain (1);
Thread *tf1 = Lookup_Thread (domain, 7);
Compute_Force_And_Moment (domain, tf1, x_cg, f_glob, m_glob, TRUE);
when i want to interpreted udf
the error appears as follows :

cpp -I"E:\Fluent.Inc\fluent6.3.26/src" -I"E:\Fluent.Inc\fluent6.3.26/cortex/src" -I"E:\Fluent.Inc\fluent6.3.26/client/src" -I"E:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "F:\airfoil0012-20wan'\2.c"
Error: F:\airfoil0012-20wan'\2.c: line 37: function "Compute_Force_And_Moment" not found (pc=88).

Who can tell me the reason?
thanks a million.</SPAN>
Tien wen is offline   Reply With Quote


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 10:33
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52

All times are GMT -4. The time now is 21:58.