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

UDF for fan model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2007, 23:27
Default UDF for fan model
  #1
zhaoh
Guest
 
Posts: n/a
Dear everyone I'm making the air flow through a fan. The relationship between the pressure difference and velocity is detaP=139-12V.I want use UDF to solve the problem. #include"udf.h" DEFINE_PROFILE(pressure,t,i) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t);

F_PROFILE(f,t,i)=139-12*C_V(cell,thread); } end_f_loop(f,t) }

But i think the udf has some problems. For example,C_V(cell,thread) has some difference with the V(in the equation),V is stand for mean-face-velocity. Scecond, detaP is pressure difference not Gause pressure.Does the F_PROFILE(f,t,i)=139-12*C_V(cell,thread) adapt for detaP=139-12V?How to amend the UDF? Hope your reply!! Thank you so much...
  Reply With Quote

Old   February 9, 2012, 10:42
Default
  #2
Member
 
Yolk
Join Date: Nov 2011
Posts: 38
Rep Power: 15
Yannian is on a distinguished road
Dear zhaoh,
have you find out the solution for your question?I also concern the F_PROFILE(f,t,i) can add pressure difference or not?
Yannian
Yannian is offline   Reply With Quote

Old   February 19, 2012, 08:30
Default UDF for pressure variation
  #3
Member
 
Nirav
Join Date: Jul 2011
Posts: 43
Rep Power: 15
niravtm007 is on a distinguished road
Send a message via Skype™ to niravtm007
Hii friends
My problem is flow through river channel, I have taken a orbitary region so at exit of my geometry flow exits into river itself. so i need to know how to apply UDf at exit, as pressure must vary with P=row*g*h. my exit cross section is not uniform so what should i do please help. is it possible to apply custom field function ???? in fluent please help ASAP
niravtm007 is offline   Reply With Quote

Old   February 20, 2012, 04:49
Default
  #4
Member
 
Yolk
Join Date: Nov 2011
Posts: 38
Rep Power: 15
Yannian is on a distinguished road
Dear Nirav,
I think your probelm can be solved by UDF.The formula in your fomular is height whose direction assumed in y direction, so you can write udf in this way(You have to modify some line for your own coordinate):
#include "udf.h"
DEFINE_PROFILE(Pressionaxiale, thread , position)
{
real z[ND_ND];
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(z,f,thread);
y=z[1];
row=1000;
g=9.8;
P0=101325;
F_PROFILE(f, thread, position) =(P0+row*g*y);
}
end_f_loop(f, thread)
}
Yannian is offline   Reply With Quote

Old   February 20, 2012, 06:31
Default
  #5
Member
 
Nirav
Join Date: Jul 2011
Posts: 43
Rep Power: 15
niravtm007 is on a distinguished road
Send a message via Skype™ to niravtm007
Thank you Yannian I will try this method
niravtm007 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
Writing UDF for Eulerian model golriz Fluent UDF and Scheme Programming 7 November 3, 2011 06:30
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 03:21
Modifying Pressure swirl atomizer model by UDF jeff_F FLUENT 0 May 22, 2010 10:22
UDF: how to know domain number in the model? mssound FLUENT 0 May 17, 2010 16:00
The problem of UDF in Non premixed combustion model zhangyuan Main CFD Forum 0 May 25, 2009 10:41


All times are GMT -4. The time now is 15:57.