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

How to write a udf to define average temperature at one boundary based on the value o

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2021, 05:14
Default How to write a udf to define average temperature at one boundary based on the value o
  #1
Member
 
ijaz fazil
Join Date: Apr 2013
Location: Singapore
Posts: 73
Rep Power: 13
er_ijaz is on a distinguished road
Hi all,
I remember udf is used to define profile.
Currently I need to 'input' the value at one boundary condition based on the value at another boundary.
For example
Avg (T)@inlet=Avg(T)@outlet+14
So each iteration/timestep my temperature at inlet has to be adjusted based on outlet.
Note: I'm aware of 'expression' but since my number of inlets and outlets are around 70, it is taking longer duration to build the model. Hence I'm planning to use udf
Which DEFINE_MACRO I need to use?
How to compute average velocity at other boundary (or location) and use it here?
Thank you
er_ijaz is offline   Reply With Quote

Old   May 5, 2021, 23:43
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
to define boundary condition you need DEFINE_PROFILE macro

you may check Ansys Fluent Customization manual -> DEFINE_ON_DEMAND
to get an example how to get average temperature on surface, and change it to velocity
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
fluent - udf, location in fluent, thermodynamic, weighted average


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
Outlet temperature to temperature boundary condition of velocity inlet. (UDF) dillon Fluent UDF and Scheme Programming 3 March 25, 2018 12:06
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 12:56.