CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Wave udf problem. (http://www.cfd-online.com/Forums/fluent-udf/112651-wave-udf-problem.html)

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;

begin_f_loop(f,ft)
{
F_PROFILE(f,ft,var) =V_AMP * cos(OMEGA*flow_time);
}
end_f_loop(f,ft)
}

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

Quote:

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

Thank you, sir.


All times are GMT -4. The time now is 22:40.