CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Temperature of cells in every time steps (https://www.cfd-online.com/Forums/fluent-udf/212444-temperature-cells-every-time-steps.html)

NhanLe December 2, 2018 03:37

Temperature of cells in every time steps
 
Hi everyone, I am writing a UDF for temperature dependent material properties using DEFINE_PROPERTY(), I can used C_T() and C_T_M1() to get the temperature of the cell for for the current and previous time step. Is it possible to store and use all of the cell's temperature ?

For example, 1 cell after 4 time steps will have 5 temperature values, I would like to get the max of that 5 values to switch that cell material property in the UDF. I am pretty new to this so if anyone can shed a light for me about this, I would deeply appreciate. Thanks.

NhanLe

sanketdange2007 December 5, 2018 15:10

You can use User defined memory (UDM) for storing cell data over the domain.
But saving it at every time step would be very much memory intensive and difficult to achieve. Rather try to write a logic which will use single UDM and which will save only max temperature value by comparing current value and stored value from UDM.

NhanLe December 5, 2018 22:20

Dear Sanket,
Thank you for your kind reply. I will try it.

Best regards,


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