I am trying to write a UDF for Fluent 19.1, that simulates a suction and ejection flow from a piston. I am using a sinusoidal function to model this. My UDF will not allow my simulation to converge. Does my UDF look correct? My maximum Velocity Magnitude should be 1.22 m/s so I have defined the axial velocity to my UDF. I am using the UDF compiler to run my UDF. The simulation is a transient turbulent model. Am I missing anything important in the initial set-up of my model?

Thank you for your help!

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

unsteady.c

UDF for specifying a transient velocity profile boundary condition

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

#include "udf.h"

DEFINE_PROFILE(axial_velocity, thread, position)

{

face_t f;

real t = CURRENT_TIME;

begin_f_loop(f, thread)

{

F_PROFILE(f, thread, position) = 1.22*sin(6.2831853071796.*t);

}

end_f_loop(f, thread)

}

More Monique Embury's questions See All
Similar questions and discussions