CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Wave udf problem.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By msaeedsadeghi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2013, 19:13
Post Wave udf problem.
  #1
New Member
 
Mohamed
Join Date: Jan 2013
Location: Egypt
Posts: 2
Rep Power: 0
moh_mohsen91 is on a distinguished road
Send a message via Skype™ to moh_mohsen91
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.
moh_mohsen91 is offline   Reply With Quote

Old   February 3, 2013, 04:23
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
Yes, the UDF is correct.
moh_mohsen91 likes this.
msaeedsadeghi is offline   Reply With Quote

Old   February 3, 2013, 10:48
Default
  #3
New Member
 
Mohamed
Join Date: Jan 2013
Location: Egypt
Posts: 2
Rep Power: 0
moh_mohsen91 is on a distinguished road
Send a message via Skype™ to moh_mohsen91
Quote:
Originally Posted by msaeedsadeghi View Post
Yes, the UDF is correct.
Thank you, sir.
moh_mohsen91 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:35.