Modelling and simulation of microgrid application at RCET