Hi

I'm using the following UDF. My Ansys version is 17.2.

***********************************************************

/**********************************************************

node motion based on blade deflection equation

compiled UDF

**********************************************************/

#include "udf.h"

DEFINE_GRID_MOTION(beam,domain,dt,time,dtime)

{

Thread *tf = DT_THREAD(dt);

face_t f;

Node *v;

NV_VEC(axis);

NV_VEC(dx);

real NV_VEC(origin);

NV_VEC(rvec);

real sign;

int n;

real L0;

real L;

real A;

real f;

real a;

real sign;

int n;

/* set deforming flag on adjacent cell zone */

SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));

L0 = 0.032; // original length of the blade (m)

L = 0.7236*L0; // effective length (m)

//x = 0:0.001:L0; // no need for this probably

A = 0.01; // Amplitude of the oscillations (m)

f = 20; // frequency (Hz)

a = A/(1.1708*L0^3);

Message ("time = %f, amplitude= %f\n", time, A);

NV_D(origin, =, -0.096, 0.0, 0.0); // this should be the coordinates of the blade root

begin_f_loop(f,tf)

{

f_node_loop(f,tf,n)

{

v = F_NODE(f,tf,n);

/* update node if the current node has not been previously

visited when looping through previous faces */

if (NODE_POS_NEED_UPDATE (v))

{

/* indicate that node position has been update

so that it's not updated more than once */

NODE_POS_UPDATED(v);

NV_VV(rvec, =, NODE_COORD(v), -, origin);

rvec[2] = a*sin(2*3.1415926*f*time)*(3*L*rvec[1]^2-rvex[1]^3);

NV_S(rvec, +=, origin)

NV_V(NODE_COORD(v), =, rvec);

}

}

}

end_f_loop(f,tf);

}

***********************************************************

When I want to load the file, I get this error:

Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).\n\nThe system cannot find the file specified.

\n\nD:\Flapping Wing Simulations\moving mesh Piezofan simulation\Test1\MMPiezoFan_files\dp0\FFF\Fluent\libudf\win64\3ddp_host\libudf.dll

Error Object: #f

Any suggestions?

Thanks