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

UDF basics - boundary conditions

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2012, 12:31
Default UDF basics - boundary conditions
  #1
CMA
New Member
 
Join Date: Oct 2012
Posts: 8
Rep Power: 13
CMA is on a distinguished road
Hi,
I'm new to writing UDFs for Fluent 6.3.

I am trying to write a UDF for a Velocity Inlet boundary condition. For every time step, I want this boundary condition to be updated to a new temperature (same velocity). The new updated value should be a function of the average temperature of all cell faces in another boundary that is updated with a new calculated value at every time step.

Summary of what i want to write: T1(t) = f ( face_temp_average( T2(t) ) )

I do not know what define macro I should be using for the temperature update, how I can get the average of all faces on a face thread, and finally how I can call the values of another boundary when writing a UDF for a boundary condition.

I would reaeaealy appriciate it if someone can give me some help on this. Even some names of the macros I should be learning about helps.

Thanks
CMA is offline   Reply With Quote

Old   October 20, 2012, 14:25
Default
  #2
Member
 
eng_s_sadeghi's Avatar
 
Join Date: Mar 2011
Posts: 64
Rep Power: 15
eng_s_sadeghi is on a distinguished road
Hi.
You should first write a UDF to loop around the cell thread to calculate the average temperature. Then use the average in inlet profile.
__________________
Saeed Sadeghi
Ansys Fluent CFD Consultant
eng_s_sadeghi is offline   Reply With Quote

Old   October 22, 2012, 13:33
Default
  #3
CMA
New Member
 
Join Date: Oct 2012
Posts: 8
Rep Power: 13
CMA is on a distinguished road
Quote:
Originally Posted by eng_s_sadeghi View Post
Hi.
You should first write a UDF to loop around the cell thread to calculate the average temperature. Then use the average in inlet profile.

Thank you so much for your reply. Now, how do I refer to another boundary condition when I am writing my UDF for velocity inlet boundary condition. I mean do boundary conditions have numbers or names so that I can use their name when using them in my UDF?
CMA is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 14:06
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 18:15
read boundary conditions with udf Bernhardt FLUENT 0 May 31, 2007 10:46
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 19:29


All times are GMT -4. The time now is 07:06.