|
[Sponsors] |
July 12, 2014, 05:17 |
udf for free oscillate
|
#1 |
New Member
sharare
Join Date: Jul 2014
Posts: 1
Rep Power: 0 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |