CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   [UDF]a boundery condition (http://www.cfd-online.com/Forums/fluent-udf/64006-udf-boundery-condition.html)

duaiduaihu April 27, 2009 04:38

[UDF]a boundery condition
 
the boundary condition is dT/dn=f(t) .
I think we should use DEFINE_PROFILE to difine the boundary condition,
#include "udf.h"
DEFINE_PROFILE(currentdensity,thread,position)
{
begin_f_loop(f,thread)
{
a=f(t)/////suppose we have known f(t);
F_PROFILE(f,thread,position)=a;
}
end_f_loop(f,thread)
}
i think the one with red color defines T=f(t), not dT/dn=f(t);
how to modify F_PROFILE(f,thread,position)=a; to define dT/dn=f(t);

thank every dear friends!


All times are GMT -4. The time now is 12:59.