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

How at add multiple udf in fluent?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 12, 2013, 18:13
Default How at add multiple udf in fluent?
  #1
Member
 
Amir
Join Date: Sep 2012
Posts: 44
Rep Power: 4
Amir1 is on a distinguished road
Hey guys,

I have been trying to add multiple udf in FLUENT but I couln,t do it.
Can you please help me out?

I have my xvelocity and y velocity which are functon of y. I was able to write only fir one of them.
here is my code for x velocity. I would like to have amost the same profile for y velocity.


#include "udf.h"

DEFINE_PROFILE(xvelocity,t,i)
{
face_t f;
real y;
real x[ND_ND];
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y=x[1];
F_PROFILE(f,t,i)=(0.707/0.141 )*sqrt(y-0.035);
}
end_f_loop(f,t)
}
Amir1 is offline   Reply With Quote

Old   April 14, 2013, 06:00
Default
  #2
New Member
 
Join Date: Dec 2012
Posts: 11
Rep Power: 4
cric92 is on a distinguished road
If you are writing them separately then try to write both of the them in one file, use different names for both functions
cric92 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
Error inputting udf into fluent for mass source ejvikings Fluent UDF and Scheme Programming 0 April 26, 2012 21:42
UDF to record FLUENT Solver variables... mariachi Fluent UDF and Scheme Programming 9 February 19, 2010 13:25
UDF to record FLUENT solver variables... mariachi FLUENT 1 February 3, 2010 23:18
compiling my UDF Seyed Farid Hosseinizadeh FLUENT 22 February 14, 2006 11:19
UDF in parallel version of fluent yobee FLUENT 2 August 5, 2004 00:36


All times are GMT -4. The time now is 19:11.