|
[Sponsors] |
November 2, 2021, 03:48 |
How to define automatic heat curve
|
#1 |
Senior Member
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13 |
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/ |
|
November 2, 2021, 13:09 |
|
#2 |
Senior Member
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13 |
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/ |
|
November 3, 2021, 22:58 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
November 4, 2021, 02:28 |
|
#4 |
Senior Member
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13 |
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/ |
|
November 4, 2021, 03:57 |
|
#5 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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) } execute on_demand function after initialization hook other functions properly
__________________
best regards ****************************** press LIKE if this message was helpful |
|
November 4, 2021, 05:26 |
|
#6 |
Senior Member
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13 |
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/ |
|
November 5, 2021, 00:17 |
|
#7 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you may use google and youtube to find answer to these questions
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
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 |