Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
How to use SIMULINK.pptx
1. Model Based System
Design for Automotive
Engineering :A
MATLAB Approach
Online Faculty Development Programme
1/3/2024 1
2. SRI RAMAKRISHNA ENGINEERING COLLEGE
VATTAMALAIPALAYAM, N.G.G.O. COLONY POST, COIMBATORE – 641 022.
DEPARTMENT OF ELECTRONICS AND INSTRUMENTATION ENGINEERING
Model Based System Design for Automotive Engineering
:A MATLAB Approach
Overview of Model Based System Engineering
using SIMULINK
1/3/2024 2
Online Faculty Development Programme
3. Overview of Model Based System
Engineering using SIMULINK
Session Overview
• Analyze the performance of the real-world
model
• Why do we use Simulink?
• Pre-Requirements: No Pre- Requirements
Needed
1/3/2024 3
4. What we will be covering in this session?
• Project 1: Generating, displaying, and exporting the sine
wave using SIMULINK.
• Project 2: Building a system involving Mathematical
Equations using SIMULINK.
• Project 3: Building a Mass Spring Damper system
involving the Time domain using SIMULINK.
• Project 4: Building a Mass Spring Damper system
involving the S-domain using SIMULINK.
• Project 5: Simulate a battery model using SIMULINK.
1/3/2024 4
5. Generating, displaying, and exporting the sine wave using
SIMULINK.
• Select blocks from the Simulink library.
• Add up and view two signals in Simulink.
• Generate sine wave and tune its parameters.
• Change the model configuration parameters.
• Export a variable into the workspace and plot
it.
• Magnify a signal using a gain multiplier.
1/3/2024 5
6. Building a system involving Mathematical Equations
using SIMULINK.
• To Design a Simulink model based on an equation
that contains differentiation and Integration.
• To call the Simulink model from M-script.
1/3/2024 6
7. • Mass spring damper system in the Time domain
• They are present in all the vehicles that we use in
the day to day life
• outcome:
How to simulate a function in time domain
how to develope mass spring damper system
how to derive a mathamatical equation from
newton's second law of motion.
drawing a system free body diagram and effects
of changing the system parameters in the simulink
model.
1/3/2024 7
Building a Mass Spring Damper system
involving the Time domain using
SIMULINK.
8. 1/3/2024 8
Building a Mass Spring Damper system
involving the Time domain using
SIMULINK.
How do damper works?
9. 9
SPRING & DAMPER NO DAMPER
Building a Mass Spring Damper system
involving the Time domain using
SIMULINK.
14. 1/3/2024 14
𝑀𝑥 = 𝐹 − 𝑏𝑥 − 𝑘𝑥
𝑥 = 1/𝑀[𝐹 − 𝑏𝑥 − 𝑘𝑥]
Assume M = 1 Kg, b = 1 Ns/m, k = 20 N/m
15. • 𝑀𝑥 = 𝐹 − 𝑏𝑥 − 𝑘𝑥
• 𝑀𝑠2
𝑋 𝑠 = 𝐹 𝑠 − 𝑏𝑠𝑋 𝑠 − 𝑘𝑋 𝑠
𝑋(𝑠)
𝐹(𝑠)
=
1
𝑀𝑠2 + 𝑏𝑠 + 𝑘
Assume M = 1 Kg, b = 1 Ns/m, k = 20 N/m
𝑋(𝑠)
𝐹(𝑠)
=
1
𝑠𝑠 + 1𝑠 + 20
http://ctms.engin.umich.edu/CTMS/index.php
?example=Introduction§ion=ControlPID
15
INTRODUCTION TO CONTROL SYSTEMS: PRACTICAL EXAMPLE
2. LET’S DEVELOP A MATHEMATICAL MODEL
TRANSFER
FUNCTION
TRANSFER
FUNCTION
𝑋(𝑠)
𝐹(𝑠)
𝐼𝑁𝑃𝑈𝑇 𝑂𝑈𝑇𝑃𝑈𝑇
Building a Mass Spring Damper system
involving the S-domain using SIMULINK.
16. • Used to Monitor Battery parameters such as SOC
Battery
Model
Error ~
0
Input
Current
Output
Voltage
5 10 15 20
-150
-120
-90
-60
-30
0
30
60
90
120
150
Time (Mins)
Current
(Amps)
Pack Current - UDDS
0 5 10 15 20 25 30 35 40
260
270
280
290
300
310
320
330
340
350
360
370
380
Time(min)
Terminal
Voltage(V)
Pack Terminal Voltage
BATTERY MODELING: WHY BATTERY MODELING?
16
http://epg.eng.ox.ac.uk/tags/battery-modelling-state-charge-battery-management-system
Simulate a battery model using SIMULINK.
17. • The Open-circuit voltage (OCV) is the difference of electrical potential between two terminals of a device when the
device is disconnected from any circuit.
• There is no external load connected.
• No external electric current flows between the terminals.
17
OPEN CIRCUIT VOLTAGE: DEFINITION
http://www.learningaboutelectronics.com/Articles/What-is-open-circuit-voltage.php
Simulate a battery model using SIMULINK.
18. Example: Battery Open Circuit Voltage
• If you measure the voltage of the battery terminals with a multi-meter, you will read the OCV even if
there is no current is flowing in the circuit.
• The OCV is function of the battery State-of-Charge (SOC).
18
OPEN CIRCUIT VOLTAGE:
Simulate a battery model using SIMULINK.
19. • There is a relationship between the battery Open-circuit voltage (OCV) and State of Charge (SOC).
• The relationship depends on the battery chemistry and the direction of charging and discharging.
19
OPEN CIRCUIT VOLTAGE: SOC-OCV RELATIONSHIP
0 20 40 60 80 100
2.6
2.8
3
3.2
3.4
SOC [%]
Voltage
[V]
Averaged Charging/Discharging SOC - OCV Relationship
SOC - OCV
AVERAGING
The first step in designing a battery management system (BMS) is to develop a high fidelity battery model. In order for a BMS to estimate the battery critical parameters such as the battery state of charge and state of health, an accurate battery model has to be implemented on board of the BMS along with a robust estimation strategy. So a battery model is a list of mathematical equations that describe what’s physically happening inside the battery. In simple terms, as shown in the figure, if we apply the same current profile to the battery and the battery model, both should generate the same voltage profile and the error between the two signals should be close to zero. The model can predict the behavior of the battery in a way that if we applied an estimator, we can predict critical parameters such as the battery SOH and remaining useful life.
The Open-circuit voltage (OCV) is the difference of electrical potential between two terminals of a device when the device is disconnected from any circuit. There is no external load connected and no external electric current flows between the terminals.
The Open Circuit Voltage (OCV) represents a Voltage Source's Full Voltage, since there is no voltage drop across the load. A voltage source's OCV represents its full voltage value, since the source does not share any of its voltage with a load.
The unconnected voltage is real voltage, even if a voltage source is unconnected and not attached to any load, the potential power still exists.
- So in case of batteries, if you measure the voltage of the battery terminals with a multi-meter, you will read the OCV even if there is no current is flowing in the circuit.
- The battery OCV is particularly important since there is a relationship that exists between the battery State-of-Charge (SOC) and Open Circuit Voltage (OCV).
- There is a relationship between the battery Open-circuit voltage (OCV) and State of Charge (SOC). The relationship depends on the battery chemistry and the direction of charging and discharging. If you start with a fully discharged battery and start charging it, the battery OCV starts at let’s say 2.2V and keep ramping up following the red line until you reach the maximum voltage at 4.3V. The battery SOC is set to 100% when the battery is fully charged. As you start discharging the battery, you start from a fully charged state then you follow a different path indicated by the blue line until you fully discharge the battery at 0% SOC. The difference between the charging and discharging paths is due to hysteresis. In the following section we will know how to experientially derive the battery open circuit voltage-state of charge relationship from experimental data.
- The simple battery model is as shown in the figure, the voltage source represents the OCV which is function of the battery state of charge. Then, the battery charging and discharging internal resistance are reprensted as RChg and Rdis. By subtracting the voltage drop across the resistance from the battery OCV, you can calculate the battery terminal voltage V.
The battery internal resistance is function of the battery temperature, SOC and life.
- In the following section, we are going to simulate the simple battery model using MATLAB and Simulink.