Aditi Deekshita Pallay

Thank you for your response. 
If I use a built in compiler there are many errors for the undeclared variables and other predefined functions and non existing directories. That's the reason I had to install Microsoft Visual Studio and then compile it . It has successfully compiled but I think the macro that I used which is DEFINE_CG-MOTION is only useful for the dynamic mesh case and one cannot find the loaded udf into the boundary condition of the velocity inlet for that macro. 
However if I use another macro such as DEFINE_PROFILE for defining the motion of the diaphragm I encountered so many errors. I'm not able to figure out which kind of code is compatible with the existing user defined function directories of ANSYS Fluent 2022 R2. 

This is the code that I have written using DEFINE_PROFILE

#include "udf.h"

#include .h>

DEFINE_PROFILE(diaphragm_motion, t, i)


real x[ND_ND];

real y;

face_t f;

begin_f_loop(f, t)



y = sin(2 * M_PI * x[0]);

F_PROFILE(f, t, i) = y;


end_f_loop(f, t)