CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

UDF for a time varying heat flux boundary condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 21, 2013, 15:38
Question UDF for a time varying heat flux boundary condition
  #1
Member
 
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 43
Rep Power: 6
B.Hamada is on a distinguished road
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.
Attached Images
File Type: jpg udf.jpg (7.7 KB, 45 views)
B.Hamada is offline   Reply With Quote

Old   November 21, 2013, 17:44
Default
  #2
Senior Member
 
Join Date: Jan 2010
Location: Germany
Posts: 268
Rep Power: 8
Zaktatir is on a distinguished road
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.
Zaktatir is offline   Reply With Quote

Old   November 21, 2013, 19:19
Talking
  #3
Member
 
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 43
Rep Power: 6
B.Hamada is on a distinguished road
Quote:
Originally Posted by Zaktatir View Post
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.
B.Hamada is offline   Reply With Quote

Old   November 22, 2013, 14:38
Default
  #4
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Laval University, Canada
Posts: 366
Rep Power: 8
macfly is on a distinguished road
here is an example, I guess you can just apply the profile on your boundary as a heat flux: UDF for variable temperature with time
macfly is offline   Reply With Quote

Old   November 27, 2013, 04:44
Default
  #5
Senior Member
 
Join Date: Nov 2013
Posts: 677
Rep Power: 9
pakk is on a distinguished road
Quote:
Originally Posted by B.Hamada View Post
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.
pakk is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Constant Heat Flux Boundary Condition on Long Thin Pipe CGramlich SU2 3 April 22, 2013 08:25
Enforce bounds error with heat loss boundary condition at solid walls Chander CFX 2 May 1, 2012 20:11
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
time varying boundary condition cfd-student CFX 0 April 15, 2008 08:31
UDF for time dependent heat flux Rameshwar Ajja FLUENT 0 February 16, 2006 01:26


All times are GMT -4. The time now is 20:45.