CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to define Heat flux UDF in ansys in Boundary Condition? (https://www.cfd-online.com/Forums/fluent/219928-how-define-heat-flux-udf-ansys-boundary-condition.html)

Azim07 August 15, 2019 05:20

How to define Heat flux UDF in ansys in Boundary Condition?
 
Hello,

I have written the Heat Flux UDF and i want to define it in Boundary Condition, i mean in the wall. How can i do ?


# include "udf.h"
# include "unsteady.h"

DEFINE_EXECUTE_AT_END (execute_loop)
{
face_t f;
Thread *t;
real c_time=0.0000;
real q;
c_time=CURRENT_TIME;

if (c_time>0.00 && c_time<2700)
{
q=500;
}

if ((c_time>=2700)&&(c_time<=5400))
{
q=-500;
}
}

AlexanderZ August 16, 2019 00:28

Ansys FLuent Customization manual

look for DEFINE_PROFILE macro

best regards


All times are GMT -4. The time now is 02:36.