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

TypeNameDefaultDescription
BooleanincludeGround (from BaseElectricDevice)falseInclude inner electrical ground at pin_n
BooleanincludeHeatPort (from BaseElectricDevice)falseInclude the battery heat port
BooleanusingMultiBodyChassis (from BaseElectricDevice)falseInclude secondary ground node on the right port
ParameterRecords.EnergyStorages.BatteryDatabatteryData
Initialization
RealSoC01Initial state of charge

Connectors

TypeNameDefaultDescription
ControlBuscontrolBus (from BaseElectricDevice)Control signal bus
Modelica.Electrical.Analog.Interfaces.PositivePinpin_p (from BaseElectricDevice)Positive electrical pin
Modelica.Electrical.Analog.Interfaces.NegativePinpin_n (from BaseElectricDevice)Negative electrical pin
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from BaseElectricDevice)Conditional port for exhaust heat flow

Components

TypeNameDefaultDescription
Modelica.Units.SI.EnergyEDCintegratorEnergy.yDC energy consumption
RealSoCintegratorCharge.y/from_Ah(batteryData.QNominal)State of charge
Modelica.Electrical.Analog.Sources.SignalVoltagevoltageSource
Sensors.ElectricalMultiSensorDCelectricalMulitSensorDC
Modelica.Blocks.Continuous.IntegratorintegratorEnergy
Modelica.Blocks.Continuous.IntegratorintegratorCharge
Modelica.Blocks.Math.Gaingain
Modelica.Electrical.Analog.Basic.Resistorresistor
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensorheatFlowSensor
Components.SoCdependentVoltagebatteryVoltage