MATLAB: Implementing a mathematical battery model to a simpowersystem

battery modelbattery_system_managementpower_electronics_controlSimscapeSimscape Electrical

I want to implement a battery which may charge and discharge to a 3-phase line. The system, which I want the battery to connect to, is designed with physical signals.
It would be ideal to implement the battery model which is found in simscape, but as I understand you can't connect the mathematical models to the physical ones.
Is there a method to work around this problem, or do I have to design a battery which delivers physical signals?

Best Answer

You can interface the Battery blocks (which use the electrical domain) with physical signals. Just make sure you use a Current Sensor/Voltage Source (or Current Source/Voltage Sensor) such that the battery and the external model interact bidirectionally with each other.
... Yeah, maybe a screenshot is more useful. Replace the random PS blocks I put in there with whatever your system is.
- Sebastian