|
[Sponsors] |
How to write a udf to define average temperature at one boundary based on the value o |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 4, 2021, 05:14 |
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 |
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 |
|
May 5, 2021, 23:43 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
Tags |
fluent - udf, location in fluent, thermodynamic, weighted average |
|
|
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 |