I'm currently working on peak shaving using Solar PV-battery system via matlab simulink. I'm looking for guidance me to get 3-phase battery dc/ac bi-directional converter simulink circuit. battery charging based on %SOC.
One can start with a sample program of an inverter from MATLAB online. Regarding SOC% for the battery, A component of battery is already there in SIMULINK as shown in the attachment that could adopted for the simulation.
you can read this paper below , and try to build this converter by yourself in simulink...
1- An Innovative Bidirectional DC-AC Converter to Improve Power Quality in a Grid-Connected Microgrid.... doi: 10.20944/preprints201807.0252.v1
2-
Bidirectional Three-Phase DC–AC Converter With Embedded DC–DC Converter and Carrier-Based PWM Strategy for Wide Voltage Range Applications... DOI: 10.1109/TIE.2018.2866080 .
There are many interesting and clever single and three phase inverter circuits available on the web. However, be careful when designing the algorithm used to charge your battery. It depends on the battery technology. Li-ion needs constant current charge up to some limiting voltage then constant voltage charge beyond that. Whatever your simulated battery does if you exceed these constraints a real one might explode and/or catch fire. That is not desirable . . .