Hi, I am a final year electrical engineering student at NMU and I am designing and building a vfd for my capstone project. I'm having trouble understanding how to calculate the ripple current rating for my capacitor. My input is from the mains (230Vac, 50Hz), and I am aiming for a 5% voltage ripple, I've calcuated my the cap i need to be 2700uF at 450Vdc (rounded and derated), but I'm unsure about the ripple current. I keep on recalculating it as there are so many different methods on the internet to calculate it , some consider the high frequency and low frequency, some only consider the charging and discharging. Please assist me.

