|
[Sponsors] |
February 1, 2013, 19:13 |
Wave udf problem.
|
#1 |
New Member
|
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. |
|
February 3, 2013, 04:23 |
|
#2 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14 |
Yes, the UDF is correct.
|
|
February 3, 2013, 10:48 |
|
#3 |
New Member
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 06:56 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 07:14 |
a problem about DEFINE_GEOM in dynamic mesh UDF | speedcat | FLUENT | 1 | May 16, 2005 03:09 |
I have problem of UDF with turbulent premx source. | Z | FLUENT | 0 | February 16, 2005 03:34 |