there is a dc grid (metro line) which we are trying to regulate its voltage by means of energy storage systems specially suppercapacitors. because of long period of simulation using the real converter with IGBT and switching issues is not an option so we are forced to use the average model. there are some papers which represents buck and boost converter average model separately. i was wondering if we could use these model for our bidirectional converter or we should rewrite an integrated model.