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. |
Yes, the UDF is correct.
|
Quote:
|
All times are GMT -4. The time now is 20:12. |