├── EV_v0.1
├── EV.slx
├── EV_2018a.slx
├── nedc.mat
└── vehicle_init.m
├── EV_v0.2
├── EV.slx
├── EV.slxc
├── EV_2018a.slx
├── nedc.mat
├── slprj
│ └── sim
│ │ └── varcache
│ │ └── EV
│ │ ├── checksumOfCache.mat
│ │ ├── tmwinternal
│ │ └── simulink_cache.xml
│ │ └── varInfo.mat
└── vehicle_init.m
├── LICENSE
├── README.md
└── zh_cn_readme.md
/EV_v0.1/EV.slx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.1/EV.slx
--------------------------------------------------------------------------------
/EV_v0.1/EV_2018a.slx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.1/EV_2018a.slx
--------------------------------------------------------------------------------
/EV_v0.1/nedc.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.1/nedc.mat
--------------------------------------------------------------------------------
/EV_v0.1/vehicle_init.m:
--------------------------------------------------------------------------------
1 | clc;
2 | clear all;
3 |
4 | Vehicle_Mass = 1700;%kg
5 | g = 9.8;%重力加速度
6 | A = 1.97;%迎风面积
7 | f0 = 0.021; % rolling resistant coefficients
8 | f1 = 0;
9 | f4 = 0;
10 | r = 0.334;%滚动半径
11 | Cd = 0.29;%空气阻力系数
12 | i = 6.058;%主减速比
13 | n = 0.95;%传动系效率
14 | a = 1.45;
15 | b = 1.25;
16 | hg = 0.63;
17 | kp=0.4;
18 | ki=0.01;
19 | C0=108;%电池容量
20 | SOCint=0.9;
21 | N=90;
22 | load('nedc.mat', 'sch_cycle');
23 | load mod_data
24 |
--------------------------------------------------------------------------------
/EV_v0.2/EV.slx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.2/EV.slx
--------------------------------------------------------------------------------
/EV_v0.2/EV.slxc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.2/EV.slxc
--------------------------------------------------------------------------------
/EV_v0.2/EV_2018a.slx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.2/EV_2018a.slx
--------------------------------------------------------------------------------
/EV_v0.2/nedc.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.2/nedc.mat
--------------------------------------------------------------------------------
/EV_v0.2/slprj/sim/varcache/EV/checksumOfCache.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.2/slprj/sim/varcache/EV/checksumOfCache.mat
--------------------------------------------------------------------------------
/EV_v0.2/slprj/sim/varcache/EV/tmwinternal/simulink_cache.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | XRqGAJRSeZ8ithLYIGBIRkfum2A0va3ZR63Y5+Hd0Vj5oO9jowtcy/C0GYyDX3V9aJrrPIbqCnfAKQKzYX8jlA==
5 |
6 |
--------------------------------------------------------------------------------
/EV_v0.2/slprj/sim/varcache/EV/varInfo.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atongrun/EV_Model/bf6471740d5a7e26b4897a0fca1547c1e62b630e/EV_v0.2/slprj/sim/varcache/EV/varInfo.mat
--------------------------------------------------------------------------------
/EV_v0.2/vehicle_init.m:
--------------------------------------------------------------------------------
1 | clc;
2 | clear all;
3 |
4 | Vehicle_Mass = 1700;%kg
5 | g = 9.8;%重力加速度
6 | A = 1.97;%迎风面积
7 | r = 0.334;%滚动半径
8 | Cd = 0.29;%空气阻力系数
9 | i = 6.058;%主减速比
10 | n = 0.95;%传动系效率
11 | a = 1.45;
12 | b = 1.25;
13 | hg = 0.63;
14 | kp=0.4;
15 | ki=0.01;
16 | brake_max=700;%机械制动最大力矩
17 | C0=108;%电池容量
18 | SOCint=0.9;
19 | N=90;
20 | load('nedc.mat', 'sch_cycle');
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 芝士就是菜
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Pure Electric Vehicle Simulink Model
2 |
3 | ## Course Introduction
4 | 
5 | [](https://github.com/atongrun)
6 | [](https://ci.appveyor.com/project/suntong-1221/EV_Model)
7 |
8 |
9 | This model is a single-motor electric vehicle model 🚗, which can be simulated and run normally. However, please note that there may be significant issues within the model. When studying, it is important to approach it critically. The missing table data mentioned is not publicly available as it belongs to the research group and is considered their proprietary resource.
10 |
11 | English | [简体中文](zh_cn_readme.md)
12 |
13 | + The model file for the 2018a version has been added.
14 | + Bilibili Link:https://www.bilibili.com/video/BV1cm4y1S7Rs?spm_id_from=333.999.0.0
15 |
16 | ---
17 |
18 | ## New Content Added
19 |
20 | Due to the initial version (EV_v0.1) of the uploaded model lacking some internal research group data, and in response to student requests, a new version (EM_v0.2) has been added. The model can be downloaded and run smoothly. For the motor, a 34 kW rated power motor was selected from a random Master's thesis, with a maximum torque of 130 Nm. The motor characteristics were created based on approximate data, with a fixed efficiency of 0.95. As for the battery section, fixed internal resistance and fixed individual cell voltage values were provided directly.
21 |
22 | Notes:underage:
23 |
24 | + The model roughly captures the characteristics of an electric vehicle, but the data is not reliable.
25 | + Intended for simple learning and reference purposes, or as a foundation.
26 | ---
27 | ## Course Sections:
28 |
29 | 1. [Pure Electric Vehicle Simulink Modeling and Simulation - Framework Logic](https://www.bilibili.com/video/BV1cm4y1S7Rs/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
30 | 2. [Pure Electric Vehicle Simulink Modeling and Simulation - Driver Model](https://www.bilibili.com/video/BV1a3411Y7dg/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
31 | 3. [Pure Electric Vehicle Simulink Modeling and Simulation - Battery Model](https://www.bilibili.com/video/BV1GT4y1y7TU/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
32 | 4. [Pure Electric Vehicle Simulink Modeling and Simulation - Control Model](https://www.bilibili.com/video/BV18L4y1s7W2/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
33 | 5. [Pure Electric Vehicle Simulink Modeling and Simulation - Motor Model](https://www.bilibili.com/video/BV1Yq4y1b7PB/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
34 | 6. [Pure Electric Vehicle Simulink Modeling and Simulation - Vehicle Model](https://www.bilibili.com/video/BV1kb4y177MD/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
35 | 7. [Pure Electric Vehicle Simulink Modeling and Simulation - Simulation and Euler Algorithm](https://www.bilibili.com/video/BV1r5411o7Rg/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
36 |
37 | ## License
38 | This project is licensed under the MIT License. By using the code in this repository, you agree to comply with the terms and conditions of the MIT License. For more information, please refer to the LICENSE file.
39 |
40 | ## Contact
41 | If you have any questions or feedback regarding [EV_Model], please contact me at [Email](mailto:atongrun@outlook.com) .
42 |
43 |
--------------------------------------------------------------------------------
/zh_cn_readme.md:
--------------------------------------------------------------------------------
1 | # 纯电动汽车simulink模型
2 |
3 | ## 课程简介
4 | 
5 | [](https://ci.appveyor.com/project/suntong-1221/EV_Model)
6 |
7 |
8 |
9 | 该模型为纯电动汽车单电机整车模型🚗,整车模型可正常仿真运行,但是其中可能存在较大问题,同学们在学习的时候一定要辩证的看待,然后里面缺少几个表数据,这个并没有公开,因为是课题组的资源。
10 |
11 | + 已经添加了2018a版本的模型文件
12 | + B站链接:https://www.bilibili.com/video/BV1cm4y1S7Rs?spm_id_from=333.999.0.0
13 |
14 | ---
15 |
16 | ## 新增内容
17 |
18 | 因为最初上传模型EV_v0.1版本缺少部分课题组内部数据,应同学要求,新增EM_v0.2版本,下载可正常运行,电机是随便找的硕士论文电机额定功率为34kw,最大转矩130Nm,然后我随便按照特性编的数据,电机效率固定为0.95,电池部分,直接给了固定内阻和固定单体电池电压。
19 |
20 | 注意事项:underage:
21 |
22 | + 模型大致符合电动汽车特性,但是数据及其不可信
23 | + 简单学习使用,辩证看待
24 | ---
25 | ## 课程分节
26 |
27 | 1. [纯电动汽车simulink建模仿真-框架逻辑](https://www.bilibili.com/video/BV1cm4y1S7Rs/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
28 | 2. [纯电动汽车simulink建模仿真-驾驶员模型](https://www.bilibili.com/video/BV1a3411Y7dg/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
29 | 3. [纯电动汽车simulink建模仿真-电池模型](https://www.bilibili.com/video/BV1GT4y1y7TU/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
30 | 4. [纯电动汽车simulink建模仿真-控制模型](https://www.bilibili.com/video/BV18L4y1s7W2/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
31 | 5. [纯电动汽车simulink建模仿真-电机模型](https://www.bilibili.com/video/BV1Yq4y1b7PB/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
32 | 6. [纯电动汽车simulink建模仿真-车身模型](https://www.bilibili.com/video/BV1kb4y177MD/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
33 | 7. [纯电动汽车simulink建模仿真-仿真与欧拉算法](https://www.bilibili.com/video/BV1r5411o7Rg/?spm_id_from=333.788&vd_source=df2f7337299806c5a1ed5a5f5b4ffd1d)
34 |
35 | ## 许可证
36 | 本项目采用 MIT 许可证进行许可。通过使用本代码库中的代码,您同意遵守 MIT 许可证的条款和条件。有关更多信息,请参阅 LICENSE 文件。
37 |
38 | ## 联系方式
39 | 如果您对 [EV_Model] 有任何问题或反馈意见,请通过[Email](mailto:atongrun@outlook.com)电子邮件联系。
40 |
--------------------------------------------------------------------------------