CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Temperature gradient difference between two zones (https://www.cfd-online.com/Forums/fluent/228166-temperature-gradient-difference-between-two-zones.html)

arunraj June 22, 2020 04:34

Temperature gradient difference between two zones
 
Hello everyone,

I need to compute difference of temperature gradient between two zones and use it as source term. Kindly provide some idea how to implement it. I do know how to do for one zone. I know I can use this macro C_T_G(c,t)[1]. However, how to specify zone_ID for gradient.

vinerm June 22, 2020 04:42

Gradient
 
Gradient is a field (2- or 3-D for Temperature) and not a single value. Hence, either both the zones should have some kind of mapping or you will have to use statistical values, such as, average or maximum or minimum.

The second argument to the macro C_T_G is referring to the cell zone ID. So, if there are two cell zones with IDs, say, 5 and 9, then you can write it as

Thread *tf = Loopup_Thread(Get_Domain(1),5);
Thread *ts = Loopup_Thread(Get_Domain(1),9);

And then use tf and ts as second arguments for C_T_G.

arunraj June 22, 2020 04:50

Dear vinerm,

Thank you so much. This is what I was expecting.


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