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

UDF pressure jump over a fan

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 6, 2015, 07:32
Default UDF pressure jump over a fan
  #1
New Member
 
Join Date: Apr 2015
Posts: 1
Rep Power: 0
Bell X is on a distinguished road
Hi all,

I am trying to write a UDF to simulate a pressure jump over a fan. The UDF is written for a 2D model with a line (face) to simulate the fan.

Can somebody detect the mistake i have made. Cause the setup doestn't want to initialize.

#include "udf.h"
DEFINE_PROFILE(pressure_rise, thread, position)
{
face_t f;
real p;
begin_f_loop(f, thread)
{
p = F_P(f,thread);
F_PROFILE(f, thread, position) = p + 4000;
}
end_f_loop(f, thread)
}
Bell X is offline   Reply With Quote

Old   April 13, 2015, 04:05
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 682
Rep Power: 15
vasava will become famous soon enough
Instead of F_P(f,thread) try C_P(c,t).
vasava 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 for pressure outlet (resistance) Lilly Fluent UDF and Scheme Programming 0 October 15, 2014 06:22
How to get the total pressure in the UDF? zgzhai Fluent UDF and Scheme Programming 2 September 12, 2012 06:15
negative or positive pressure jump at exhaust fan Selo melo FLUENT 2 March 28, 2007 22:23
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 14:19


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