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

UDF help for heat generation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 26, 2017, 09:55
Lightbulb UDF help for heat generation
  #1
New Member
 
amg
Join Date: Feb 2015
Posts: 2
Rep Power: 0
gtamogh is on a distinguished road
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
gtamogh is offline   Reply With Quote

Old   December 27, 2017, 03:58
Default
  #2
New Member
 
Alex
Join Date: Dec 2017
Posts: 13
Rep Power: 8
EternalEnvy is on a distinguished road
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.
EternalEnvy is offline   Reply With Quote

Old   December 27, 2017, 20:26
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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;
best regards
AlexanderZ is offline   Reply With Quote

Old   January 2, 2018, 08:41
Default Thank u
  #4
New Member
 
amg
Join Date: Feb 2015
Posts: 2
Rep Power: 0
gtamogh is on a distinguished road
I will try to write code thanks for the help
gtamogh is offline   Reply With Quote

Reply

Tags
heat equation, heat generation rate, kinetic energy


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
Replicating Scalable Wall Function with a UDF yousefaz FLUENT 0 August 4, 2017 02:30
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
UDF Generation mitalibasargi Fluent UDF and Scheme Programming 0 February 26, 2014 07:10
udf for heat generation sarah l Fluent UDF and Scheme Programming 1 October 16, 2013 17:48
UDF programming fullmonty FLUENT 5 June 30, 2011 02:40


All times are GMT -4. The time now is 16:15.