I have implemented your method in my calculating OSI. But the problem I am facing that CFD Post is calculating the values of OSI only for the start and end of the cycle while its showing values undefined in the mid of the cycle. Same problem I am facing during plotting. Although I have saved my simulation after every 5 time steps. Please help me to solve this problem and let me know where I am doing a mistake. Hoping to hear from you soon.