In simscape lead acid battery model i want to make the initial state of charge zero what can i do for that? how I allow to write in matlab editor? i found SOC is given 0.8 but i require to make it 0.
4 views (last 30 days)
Show older comments
This model is constructed using the Simscape™ example library LeadAcidBattery_lib. The library comes built and on your path so that it is readily executable. However, it is recommended that you copy the source files to a new directory, for which you have write permission, and add that directory to your MATLAB® path. This will allow you to make changes and rebuild the library for yourself. The source files for the example library are in the following package directory: matlabroot/toolbox/physmod/simscape/simscapedemos/+LeadAcidBattery where matlabroot is the MATLAB root directory on your machine, as returned by entering matlabroot in the MATLAB Command Window.

0 Comments
Answers (1)
Sebastian Castro
on 14 Aug 2015
I guess you're referring to these lines in the Simscape language components, right?
outputs
SOC = {0.8, '1'}; % SOC:top
DOC = {0.8, '1'}; % DOC:top
end
Those values 0.8 are just outputs, which means they only provide a reference value to set up the dimensions and units. The actual outputs of the system depend on the parameters and initial conditions of the block. You'll see in the equations section that:
SOC == 1 - Qe/cap_t;
In other words, SOC depends on the initial charge specified and the total capacity, both of which are parameters in the blocks. So, if you want a SOC of 0, you should be able to specify an initial extracted charge Qe_init in the Main Branch Voltage Source block to be the same as the charge capacity cap_t at the given temperature.
- Sebastian
0 Comments
Communities
More Answers in the Power Electronics Control
See Also
Categories
Find more on Discrete Events and Mode Charts 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!