CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF pressure jump over a fan (https://www.cfd-online.com/Forums/fluent-udf/151187-udf-pressure-jump-over-fan.html)

Bell X April 6, 2015 07:32

UDF pressure jump over a fan
 
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)
}

vasava April 13, 2015 04:05

Instead of F_P(f,thread) try C_P(c,t).


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