modelSimpleBattery
Simple battery model
Extends from Interfaces.BaseElectricDevice (Basic interface for electric devices), EMOTH.Icons.EnergyStorage (Basic graphical layout of energy storage).
Information
Simple model of a battery with constant no-load voltage and inner resistance. Additionally, the current is integrated to obtain charge (and state of charge) of the battery, and the power is integrated to show the exchanged amount of energy.
OCV is specified with respect to nominal OCV = VDC.
Dependency of OCV (open circuit voltage) versus SOC (state of charge) is either defined by a linear dependency [SoCmin, VDCmin/VDC; 1,1]
or as a table on file with first column = SOC in the range [SoCmin, 1] and second column = OCV in the range [VDCmin/VDC, 1].
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | includeGround (from BaseElectricDevice) | false | Include inner electrical ground at pin_n |
| Boolean | includeHeatPort (from BaseElectricDevice) | false | Include the battery heat port |
| Boolean | usingMultiBodyChassis (from BaseElectricDevice) | false | Include secondary ground node on the right port |
| ParameterRecords.EnergyStorages.BatteryData | batteryData | ||
| Initialization | |||
| Real | SoC0 | 1 | Initial state of charge |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ControlBus | controlBus (from BaseElectricDevice) | Control signal bus | |
| Modelica.Electrical.Analog.Interfaces.PositivePin | pin_p (from BaseElectricDevice) | Positive electrical pin | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | pin_n (from BaseElectricDevice) | Negative electrical pin | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from BaseElectricDevice) | Conditional port for exhaust heat flow |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Energy | EDC | integratorEnergy.y | DC energy consumption |
| Real | SoC | integratorCharge.y/from_Ah(batteryData.QNominal) | State of charge |
| Modelica.Electrical.Analog.Sources.SignalVoltage | voltageSource | ||
| Sensors.ElectricalMultiSensorDC | electricalMulitSensorDC | ||
| Modelica.Blocks.Continuous.Integrator | integratorEnergy | ||
| Modelica.Blocks.Continuous.Integrator | integratorCharge | ||
| Modelica.Blocks.Math.Gain | gain | ||
| Modelica.Electrical.Analog.Basic.Resistor | resistor | ||
| Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor | heatFlowSensor | ||
| Components.SoCdependentVoltage | batteryVoltage |