|
[Sponsors] |
Fetching face temperature(F_T) at zero iterations. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2015, 03:20 |
Solved
|
#21 |
Member
Baradwaj B S
Join Date: Jan 2015
Posts: 75
Rep Power: 11 |
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 |
|
|
|
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 |