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

How to define automatic heat curve

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2021, 03:48
Default How to define automatic heat curve
  #1
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
Hello
Anyome have idea how to model automatic heat curve in Fluent?
Problem description
I have solid steel shaft with diameter 0.1 m. Shaft is heated by hot gas inlet. Goal temperature of shaft is 500 C . Starting from 25 C. So I need to define automatic heating curve on inlet (only tempersture ) over time to optimal heating shaft to 500 C . Overheat can be 505C . I need control temperature on reference point on shaft over time .
Best regards
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz is offline   Reply With Quote

Old   November 2, 2021, 13:09
Default
  #2
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
Anyone have any idea how to make function with if function which will be based on earlier iteration of temperature on reference point ???
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz is offline   Reply With Quote

Old   November 3, 2021, 22:58
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
so you need to vary inlet temperature depends on temperature of specific points, is it correct?
__________________
best regards


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

Old   November 4, 2021, 02:28
Default
  #4
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
yes I need automatic control a temeporature on inlet based on refenece point temeprature on shaft.
For example I need have optimal heating curve to heat up shaft to 500 C but i dont want to overheat above 505 C. I can make head on curve for example in first minutes heating curve can be 700 C.
Best regards
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz is offline   Reply With Quote

Old   November 4, 2021, 03:57
Default
  #5
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may use something like this
Code:
#include "udf.h"

cell_t cell;
Thread *thread;
real temp_criteria = 300.0;

DEFINE_ON_DEMAND(find_cell)
{
CX_Cell_Id cx_cell;
real NV_VEC(pt);
real c_centroid[ND_ND];
NV_D(pt, =, 0.5, 0.3, 0.2); //coordinate of your specified location,it must be in the domain coordinate range
CX_Start_ND_Point_Search();
cx_cell=*CX_Find_Cell_With_Point(pt);
CX_End_ND_Point_Search();
cell=RP_CELL(&cx_cell); //the right cell number
thread = RP_THREAD(&cx_cell); // the thread
C_CENTROID(c_centroid,cell,thread);
temp_criteria = C_T(cell,thread)
Message0("coordinate of the specified point: x=%g,y=%g,z=%g\n",pt[0],pt[1],pt[2]);
Message0("coordinate of the cell found: x=%g,y=%g,z=%g\n",c_centroid[0],c_centroid[1],c_centroid[2]);
Message0("temperature = %f,temp_criteria);
}

DEFINE_EXECUTE_AT_END(get_temperature)
{
	temp_criteria = C_T(cell,thread);
	Message0("temperature = %f,temp_criteria);
}

DEFINE_PROFILE(inlet_temperature, t, i)
{
face_t f;
begin_f_loop (f,t)
{
	if (temp_criteria>=500)
		F_PROFILE(f,t,i) = 500;
	else
		F_PROFILE(f,t,i) = 700;
}
end_f_loop(f,t)
}
modified coordinates for monitor point

execute on_demand function after initialization
hook other functions properly
__________________
best regards


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

Old   November 4, 2021, 05:26
Default
  #6
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
Thank You very much !!!
I have question Can I define in this macro location as specify finite element (defined by number)?
This macro I need to load as User define Function like?

For these days I only load transiet table to fluent by the following commands
file
read-transient-table
filename.txt
Best regards
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz is offline   Reply With Quote

Old   November 5, 2021, 00:17
Default
  #7
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may use google and youtube to find answer to these questions
__________________
best regards


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

Reply


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
heat not balanced in the chtMultiRegionSimpleFoam solver carye OpenFOAM 19 September 26, 2019 04:25
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 129 June 19, 2010 09:23
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


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