Ok.nI have to run for at least 140-160 cycles (each cycle is of 4.2 sec). And before every next cycle, I have to patch the average temperature of the Last cycle.nRight now I am doing it manually by calculating the average temperature manually and patch it. It is taking so much time.nMy plan is to make a UDF for this work and do the whole simulation automatically. nPlease suggest if you have an any better idea. n