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 for a time varying heat flux boundary condition (http://www.cfd-online.com/Forums/fluent-udf/126623-udf-time-varying-heat-flux-boundary-condition.html)

B.Hamada November 21, 2013 15:38

UDF for a time varying heat flux boundary condition
 
1 Attachment(s)
Hello,

I'm VERY new to Fluent and I'm attempting to write a UDF that will make the heat flux at a wall a function of time. I've never programmed in C before either so I'm having some trouble getting the correct sytax

My function in Attach Files:

Please help me to witre it

I : Heat flux.
A : area of the front surface.
t : Time.
T : Temperature.
h : heat transfer coefficient.
\DeltaX : depth.
Cp: specific heat
\rho: density.

Thank you.

Zaktatir November 21, 2013 17:44

Please look into the UDF documentation there are some examples how to define a profile.

Macro to use is DEFINE_PROFILE(name,thread,nv) and then the function would be over F_PROFILE through the face_centroids in the face thread.

B.Hamada November 21, 2013 19:19

Quote:

Originally Posted by Zaktatir (Post 463001)
Please look into the UDF documentation there are some examples how to define a profile.

Macro to use is DEFINE_PROFILE(name,thread,nv) and then the function would be over F_PROFILE through the face_centroids in the face thread.

Thank you, but can you give me an idea how write it please.

macfly November 22, 2013 14:38

here is an example, I guess you can just apply the profile on your boundary as a heat flux: http://www.cfd-online.com/Forums/flu...tml#post463127

pakk November 27, 2013 04:44

Quote:

Originally Posted by B.Hamada (Post 463015)
Thank you, but can you give me an idea how write it please.

As Zaktatir said, there are examples in the Help. They show you how to write it, you only have to make the appropriate changes.


All times are GMT -4. The time now is 03:58.