Text this: Numerical model framework of power quality events