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

udf

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 30, 2016, 16:05
Smile udf
  #1
New Member
 
ali ariaii
Join Date: Jul 2016
Posts: 2
Rep Power: 0
shra is on a distinguished road
hi,
pls help me to write udf for Pressure inlet Boundary conditions p=2000*sin(2*pi*t) and t:time
my problem is 3d
shra is offline   Reply With Quote

Old   August 1, 2016, 04:07
Default
  #2
Member
 
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 3
flo90000 is on a distinguished road
Quote:
Originally Posted by shra View Post
hi,
pls help me to write udf for Pressure inlet Boundary conditions p=2000*sin(2*pi*t) and t:time
my problem is 3d
#include "udf.h"
DEFINE_PROFILE(pressure_profile,t,i)
{
real TIME = CURRENT_TIME;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
F_PROFILE(f,t,i) = 2000*sin(2*M_PI*TIME);
}
end_f_loop(f,t)
}

Normally this will work
flo90000 is offline   Reply With Quote

Old   August 1, 2016, 16:42
Smile Thank you
  #3
New Member
 
ali ariaii
Join Date: Jul 2016
Posts: 2
Rep Power: 0
shra is on a distinguished road
Thank you
shra is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
Parallelize UDF? Which kind of UDF? Lilly FLUENT 5 March 25, 2014 03:05
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 10:01
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 14:12.