CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > 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 Search this Thread Display Modes
Old   April 12, 2013, 18:13
Default How at add multiple udf in fluent?
  #1
Member
 
Amir
Join Date: Sep 2012
Posts: 47
Rep Power: 13
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: 13
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF to record FLUENT Solver variables... mariachi Fluent UDF and Scheme Programming 11 September 24, 2019 00:07
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 1 February 3, 2010 22:18
compiling my UDF Seyed Farid Hosseinizadeh FLUENT 22 February 14, 2006 10: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:09.