CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Wave udf problem. (

moh_mohsen91 February 1, 2013 20:13

Wave udf problem.
Hello, cfd-mates.

I'm trying to simulate a floating arm placed in the sea, pelamis, which is a method of converting wave energy into Electricity.

I'm having problems in defining the inlet boundary condition that generates the wave.

This is the udf I'm using;

#include "udf.h"
#define OMEGA 0.628 /* User constants can be set like this */
#define V_AMP 2

DEFINE_PROFILE(x_velocity, ft, var)
real flow_time;
face_t f;

flow_time = CURRENT_TIME;

F_PROFILE(f,ft,var) =V_AMP * cos(OMEGA*flow_time);

Is it correct?

Also, how can I view the dynamic mesh? To see if it is correctly defined?

Thanks in advance.

msaeedsadeghi February 3, 2013 05:23

Yes, the UDF is correct.

moh_mohsen91 February 3, 2013 11:48


Originally Posted by msaeedsadeghi (Post 405712)
Yes, the UDF is correct.

Thank you, sir.

All times are GMT -4. The time now is 17:46.