|
[Sponsors] |
December 26, 2017, 10:55 |
UDF help for heat generation
|
#1 |
New Member
amg
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
Hi i am new to UDF writing
My problem is to increase the temperature of the solid volume (2d) at certain flow time, say around 4 second and should reach with maximum unknown temperature for this flow time. Once flow time, say 4 second is reached the temperature is been reported at monitor plot and Heat generation should stop (after this 4 second the cooling water would take out the heat generated in the solid volume) kinetic equation is Tfo = Tfi + [Tro − Tfi] (1-exp(-UA/mCp)) Tfi=298k is inlet of cooling fluid Tfo= in unknown (final water temp) U is energy, mcp are the rest of the properties i have tried some c-code but no luck.. kindly help |
|
December 27, 2017, 04:58 |
|
#2 |
New Member
Alex
Join Date: Dec 2017
Posts: 13
Rep Power: 9 |
Use RP_Get_Real("flow-time") to get the real flow time. As for the temperature, if you need to set the temperature of the boundary, just write a DEFINE_PROPERTY macro to adapt the temperature to the time.
|
|
December 27, 2017, 21:26 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
take a look into Ansys Customization Manual
find there DEFINE_PROFILE not DEFINE_PROPERTY macros. about time, it is better to use build-in macros CURRENT_TIME. Code:
time = CURRENT_TIME; |
|
January 2, 2018, 09:41 |
Thank u
|
#4 |
New Member
amg
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
I will try to write code thanks for the help
|
|
Tags |
heat equation, heat generation rate, kinetic energy |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replicating Scalable Wall Function with a UDF | yousefaz | FLUENT | 0 | August 4, 2017 03:30 |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
UDF Generation | mitalibasargi | Fluent UDF and Scheme Programming | 0 | February 26, 2014 08:10 |
udf for heat generation | sarah l | Fluent UDF and Scheme Programming | 1 | October 16, 2013 18:48 |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 03:40 |