CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   help! about mass-flow-rate boundary-condition UDF (https://www.cfd-online.com/Forums/fluent/49091-help-about-mass-flow-rate-boundary-condition-udf.html)

andy August 25, 2008 04:09

help! about mass-flow-rate boundary-condition UDF
 
Hi everyone: I am trying to solve a problem using UDF(about mass-flow-rate boundary-condition ). My short code is as follows: #include "udf.h" DEFINE_PROFILE(unsteady_massflow,thread,position) { face_t f; begin_f_loop(f,thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f,thread,position) =-0.00007*t*t*t*t*t*t+0.00315*t*t*t*t*t-0.05087*t*t*t*t+0.39321*t*t*t-1.66906*t*t+4.7406*t-0.70907; } end_f_loop(f,thread) } The compile was wrong.Can anyone please help me with this program or give me some advice? Thank you so much. I am nearly exhausted by this problem!



All times are GMT -4. The time now is 14:33.