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

Fetching face temperature(F_T) at zero iterations.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2015, 03:20
Default Solved
  #21
Member
 
Baradwaj B S
Join Date: Jan 2015
Posts: 75
Rep Power: 11
Bharadwaj B S is on a distinguished road
Dear pakk,

I tried with area averaging it gave me access violation. I got the average temperature of that zone by using this UDF.

UDF

DEFINE_ON_DEMAND(temptcalc)
{
Thread *t2;
face_t f2;
d = Get_Domain(1);
t2 = Lookup_Thread(d, ID2); /*Thread ID for fluid domain*/
begin_f_loop(f2,t2)
{
nfaces=nfaces+1; /*"no of faces", globally declared and initiated to zero. For every face, loop will run so, for every iteration nfaces will be added by 1 to get total no of faces in that domain at the end of loop*/

tempt=tempt+(F_T(f2,t2));
}
end_f_loop(f2,t2)

T_AVG=tempt/nfaces; /*total tempt divided by total number of faces*/
}


I cross checked it with CFD post, the results(temperature) are matching for that zone.

I read this type somewhere in this group itself I guess. I can use this right??

Thank you,
Bharadwaj B S
Bharadwaj B S 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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 14:26
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Courant-number explodes after a lon while (icoFoam) Rody- OpenFOAM Running, Solving & CFD 6 January 29, 2014 04:27
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34


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