|
[Sponsors] |
April 6, 2015, 08:32 |
UDF pressure jump over a fan
|
#1 |
New Member
Join Date: Apr 2015
Posts: 1
Rep Power: 0 |
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) } |
|
April 13, 2015, 05:05 |
|
#2 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
Instead of F_P(f,thread) try C_P(c,t).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get the total pressure in the UDF? | zgzhai | Fluent UDF and Scheme Programming | 3 | September 24, 2018 17:12 |
UDF for pressure outlet (resistance) | Lilly | Fluent UDF and Scheme Programming | 0 | October 15, 2014 07:22 |
negative or positive pressure jump at exhaust fan | Selo melo | FLUENT | 2 | March 28, 2007 23:23 |
Neumann pressure BC and velocity field | Antech | Main CFD Forum | 0 | April 25, 2006 03:15 |
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) | HB &DS | CFX | 0 | January 9, 2000 14:19 |