Battery Sizing and Automotive Electrical System Analysis - MATLAB & Simulink (original) (raw)

Main Content

Overview

Model a typical automotive electrical system as an architectural model and run a primitive analysis. The elements in the model can be broadly grouped as either a source or a load. Various properties of the sources and loads are set as part of the stereotype. This example uses the iterate method of the specification API to iterate through each element of the model and run analysis using the stereotype properties.

Structure of Model

The generator charges the battery while the engine is running. The battery and the generator support the electrical loads in the vehicle, like ECU, radio, and body control. The inductive loads like motors and other coils have the InRushCurrent stereotype property defined. Based on the properties set on each component, the following analyses are performed:

Load Model and Run Analysis

archModel = systemcomposer.loadModel('scExampleAutomotiveElectricalSystemAnalysis');

Instantiate battery sizing class used by the analysis function to store analysis results.

objcomputeBatterySizing = computeBatterySizing;

Run the analysis using the iterator.

archModel.iterate('Topdown',@computeLoad,objcomputeBatterySizing)

Display analysis results.

objcomputeBatterySizing.displayResults

Total KeyOffLoad: 158.708 mA Number of days required for KeyOffLoad to discharge 30% of battery: 55.789. Total CrankingInRush current: 70 A Total Cranking current: 104 A CCA of the specified battery is sufficient to start the car at 0 F.

ans = computeBatterySizing with properties:

totalCrankingInrushCurrent: 70
      totalCrankingCurrent: 104
    totalAccesoriesCurrent: 71.6667
           totalKeyOffLoad: 158.7080
                batteryCCA: 500
           batteryCapacity: 850
        puekertcoefficient: 1.2000

scExampleAutomotiveElectricalSystemAnalysis_m_01.png

Close Model

bdclose('scExampleAutomotiveElectricalSystemAnalysis');

See Also

systemcomposer.analysis.Instance | iterate | instantiate | deleteInstance | update | save | loadInstance | getValue | setValue | hasValue | lookup

Topics