modelSimpleBatteryVerification
SimpleBattery verification
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example provides a charge/discharge control logic to a current source in parallel with the battery model. The control is configured to put the battery through charge/discharge cycles for as long as the simulation runs:
Notice how the charge and discharge cycles take about 30 minutes, which is what was to be expected by charging/discharging a 1A.h battery with a 2A current.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Sources.SignalCurrent | CC | ||
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| Electrical.SimpleBattery | B | ||
| Modelica.Blocks.Nonlinear.SlewRateLimiter | slewRateLimiter | ||
| Modelica.Blocks.Logical.Hysteresis | hysteresis | ||
| Modelica.Blocks.Logical.Switch | switch1 | ||
| Modelica.Blocks.Sources.RealExpression | idis | ||
| Modelica.Blocks.Sources.RealExpression | ich | ||
| Modelica.Blocks.Sources.RealExpression | vsense |