| SimElectronics™ | ![]() |
Sources

The Generic Battery block represents a simple battery. If you select Infinite for the Battery charge capacity parameter, the block models the battery as a series resistor and a constant voltage source. If you select Finite for the Battery charge capacity parameter, the block models the battery as a series resistor and a charge-dependent voltage source whose voltage as a function of charge has the following reciprocal relationship:

where:
x is the ratio of the ampere-hours left to the number of ampere-hours, AH, for which the battery is rated.
V0 is the voltage when the battery is fully charged, as defined by the Nominal voltage, V_nominal parameter.
The block calculates the constants α and β to satisfy the following battery conditions:
The battery voltage is zero when the charge is zero, that is, when x = 0.
The battery voltage is V1 (the Voltage V1 < V_nominal when charge is AH1 parameter value) when the charge is the Charge AH1 when no-load volts are V1 parameter value, that is, when x = AH1/AH.

The voltage at the output port when the battery is fully charged. The default value is 12 V.
Internal connection resistance. The default value is 2 Ω.
Select one of the following options for modeling the charge capacity of the battery:
Infinite — The battery voltage is independent of charge drawn from the battery. This is the default option.
Finite — The battery voltage decreases as charge decreases.
The maximum battery charge in ampere-hours. This parameter is only visible when you select Finite for the Battery charge capacity parameter. The default value is 50 hr*A.
The battery charge at the start of the simulation. This parameter is only visible when you select Finite for the Battery charge capacity parameter. The default value is 50 hr*A.
The battery output voltage when the charge level is AH1 hr*A. This parameter is only visible when you select Finite for the Battery charge capacity parameter. The default value is 11.5 V.
The battery charge level in hr*A when the no-load output voltage is V1. This parameter is only visible when you select Finite for the Battery charge capacity parameter. The default value is 25 hr*A.
Select one of the following options for modeling the self-discharge resistance of the battery:
Omit — Do not include resistance across the battery output terminals in the model.
Include — Include resistance R2 across the battery output terminals in the model.
The resistance across the battery output terminals that represents battery self-discharge. This parameter is only visible when you select Include for the Self-discharge resistance, R2 parameter. The default value is 2e+03 Ω.
The block has the following ports:
Positive electrical voltage.
Negative electrical voltage.
Simscape DC Voltage Source, Simscape Controlled Voltage Source
![]() | Fuse | H-Bridge | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |