Using UDF to read a table and change heat souce value at every time step.
Hi all,
I'm trying to simulate a battery charging cycle, and I want the battery internal volume to be a heat source with the value of qvol changing at every time step, according to the surface temperature. I have a table with 5 columns: time temperature = 20°C qvol@20°C temperature = 25°C qvol@25°C I can import the table into fluent correctly. I want to write an UDF that reads the surface temperature of the cell (and takes the average of the whole surface), then approximates it with 20 or 25 and reads the corresponding qvol value and uses it as the qvol of the source term for the next time step. Is it possible to do so? |
All times are GMT -4. The time now is 22:08. |