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

time dependent temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2018, 04:43
Default time dependent temperature
  #1
New Member
 
jian
Join Date: May 2018
Posts: 4
Rep Power: 8
ljt19960221 is on a distinguished road
The temperature should increase with time but my result shown the maximum temperature remain constant at 37 C no matter how long it took to calculate. Below is the code:

#include "udf.h"
DEFINE PROFILE(inlettemperature,thread,position)
{
face_t f;
real t= CURRENT_TIME;
begin_f_loop(f,thread)
{
F_PROFILE(f, thread, position) = 0.0362t + 36.951
}
end_f_loop(f, thread)
}

please... need some helps here.
ljt19960221 is offline   Reply With Quote

Old   May 3, 2018, 22:36
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
was
Code:
F_PROFILE(f, thread, position) = 0.0362t + 36.951
should be
Code:
F_PROFILE(f, thread, position) = 0.0362*t + 36.951;
Once you click compile then read console to check whether there are any errors

best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
udf


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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 09:22
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58


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