Simulate a PSU that has CC/CV/CP and is in parallel with a battery and inverter
4 views (last 30 days)
Show older comments
I am trying to simulate a PSU, that has limits for CC (contstant current), CV (constant voltage) and CP (constant power).
The PSU is connected to a battery (lithium) and a traction inverter.
I was hoping to model this in Simscape, but I have no experience of Simscape and cannot find anything in the library to create this model.
Is it possible to model this in Simscape and if so how ?
The aim is to find the currents and voltages in the system under different conditions.
i.e.
- DC link voltage
- Battery current
- Inverter current
- PSU current
I dont need to model the battery or inverter in any detail. For the battery I'm just using the OCV (open circuit voltage) and internal resistance, for the inverter I'm just using the inverter power.
I have identifited 4 scenarios:
- PSU does not supply any power
- PSU only charges battery (inverter not running)
- PSU charges the battery and PSU powers the inverter
- PSU and battery both power the inverter
I created a spreadsheet and tried to derive the equations, but the spreadsheet only works under certain scenarios.
I have not been able to derive the equations for some scenarios, such as scenarios 3 and 4 when the PSU is in CC
The spreadsheet uses VBA (to avoid circular references) - see attached PowerShare.zip for reference.
Below are examples of the different scenarios,
1. PSU does not supply any power
In this scenario:
- the inverter is not drawing any power
- the battery open circuit voltage is 600 V
- the battery internal resistance is 1 R
- the PSU power limit is set 2,000W
- the PSU voltage limit is set to 600 V
- the PSU current limit is set to 20 A
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501834/image.png)
2. PSU charges battery (inverter not running)
In this scenario:
- the inverter is not drawing any power
- the battery internal resistance is 1 R
- the PSU power limit is set 2,000W
- the PSU voltage limit is set to 600 V
- the PSU current limit is set to 20 A
The votlage and currents when the battery open circuit voltage is at 597 V:
- the PSU is in CV
- battery current is 3A
- psu current is 3A
- DC link voltage is 600V
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501839/image.png)
The votlage and currents when the battery open circuit voltage is at 590 V are:
- the PSU is in CP
- battery current is 3.37A
- psu current is 3.37A
- DC link voltage is 593.37V
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501844/image.png)
The votlage and currents when the battery open circuit voltage is at 70 V are:
- the PSU is in CC
- battery current is 20A
- psu current is 20A
- DC link voltage is 90V
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501849/image.png)
3. PSU charges the battery AND powers the inverter
In this scenario:
- the inverter is drawing 1,000W
- the battery internal resistance is 1 R
- the PSU power limit is set 2,000W
- the PSU voltage limit is set to 600 V
- the PSU current limit is set to 20 A
The votlage and currents when the battery open circuit voltage is at 500 V are:
- the PSU is in CP
- battery current is 1.99A
- inverter current is 1.99A
- psu current is 3.98A
- DC link voltage is 501.99V
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501854/image.png)
I have not been able to derive the equations for following condition when the PSU is in CC, because I don't know how to calculate the inverter current, battery current or DC link voltage.
The votlage and currents when the battery open circuit voltage is at 70 V are:
- the PSU is in CP..... INCORRECT (should be CC)
- battery current is 12.17A..... INCORRECT
- inverter current is 12.17A..... INCORRECT
- psu current is 24.34A..... INCORRECT (current limit is 20A)
- DC link voltage is 82.17V..... INCORRECT
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501859/image.png)
The VBA code is shown below for reference:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501864/image.png)
0 Comments
Answers (1)
venkateswara mallireddy
on 5 Oct 2023
pls contact me i will explain how to design in matlab 8919483814
0 Comments
Communities
More Answers in the Power Electronics Control
See Also
Categories
Find more on Parameterization Methods in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!