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

udf for free oscillate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2014, 04:17
Default udf for free oscillate
  #1
New Member
 
sharare
Join Date: Jul 2014
Posts: 1
Rep Power: 0
mina shakeri is on a distinguished road
hi
how can i write a udf for pitching motion with free oscillations?
my udf is:
#include "udf.h"
FILE *fout;
DIFINE_ZONE_MOTION(fmotion,omega,axis,origin,veloc ity,time,dtime)
{
Domain *d;
Thread *t;
face_t f;
cell_t c;
real Drag;
real Lift;
real M;
real FC[2];
real A[2];

d = Get_Domain(1);
t = Lookup_Thread(d, 6);
begin_f_loop(f, t)
{
F_CENTROID(FC,f,t);
F_AREA(A,f,t);
Drag += F_P(f,t) * A[0];
Lift += F_P(f,t) * A[1];
M+=Drag*FC[0]+Lift*FC[1];
fprintf(fout,"D = %f L = %f", Drag, Lift);
}
end_f_loop(f,t)
}

but i have an error " The UDF library you are trying to load (libudf) is not compiled for parallel, 2ddp use on the current platform (win64).
The operation completed successfully."
please help me.
thanks
mina shakeri is offline   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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 01:31.