CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Define_profile UDF for Transient Heat flux boundary condition (https://www.cfd-online.com/Forums/fluent-udf/135110-define_profile-udf-transient-heat-flux-boundary-condition.html)

 Amoljoshi May 9, 2014 05:33

Define_profile UDF for Transient Heat flux boundary condition

hello sir,
I want to write a udf for a time varying heat flux.
From the udf manual i got the fluent code for heat generation which can be used for heat flux as mentioned in the manual is as bellows

/* Wall Heat Generation Rate Profile UDF */
#include "udf.h"
{
real source = 0.001;
face_t f;
}

can u tell me the code i need to enter in place of that "Source"
these are my set of heat flux values for each time step, after 0.03 for 0.031 onwards the values should repeat ! that is cyclic input.

0.001 -27.1163
0.002 -10.3526
0.003 69.5475
0.004 481.3076
0.005 2189.963
0.006 12918.4
0.007 2976.112
0.008 1021.374
0.009 535.6973
0.01 354.5292
0.011 265.0403
0.012 171.7695
0.013 82.56475
0.014 37.79121
0.015 101.5304
0.016 62.21896
0.017 36.57303
0.018 41.70274
0.019 29.81527
0.02 69.66194
0.021 2.02543
0.022 -50.8429
0.023 -65.3913
0.024 -69.4098
0.025 -70.7296
0.026 -70.9834
0.027 -59.6923
0.028 -31.3448
0.029 -31.4401
0.03 -27.9783
can u plz help ?
thank you.

 bluenail May 9, 2014 11:17

In my opinion, you don't need to think about it

Just put like this

1.0t*0.2t^2///whatever

and hooking this function to appropriate position in fluent

I am sorry for poor English

 All times are GMT -4. The time now is 19:18.