mathworks / Simscape-Hybrid-Electric-Vehicle-Model

A Power-Split Hybrid Electric Vehicle (HEV) model in Simscape
https://www.mathworks.com/matlabcentral/fileexchange/92820
Other
55 stars 13 forks source link

Add Vehicle component using Vehicle Body block and Tire blocks #2

Closed Isaac-Ito-MW closed 4 months ago

Isaac-Ito-MW commented 2 years ago

For the Vehicle component, build a new referenced subsystem using the Vehicle Body block and Tire blocks from Simscape Driveline.

miyangcao commented 6 months ago

Hi, I am learning to build project models with powertrain brockset.Can you share some of the process of building a project? For the large number of subsystems and signals in the project, how to build the organizational structure and reference model step by step?

Isaac-Ito-MW commented 6 months ago

There are various ways to organize a large project.

Here is my approach, which may or may nor work for your situation: Put related files under a folder. For example, create "Components" folder and then create "Components > Vehicle", "Components > MotorDriveUnit", etc. Then in each component folder, put a subsystem reference file, a harness model, simulation scripts, test files and so on.

Another approach is to collect similar files in a folder. For example, put subsystem reference files in one folder. Put test files in another folder. I avoid this approach if possible because finding related files for a component is hard.

When you reorganize a large project, it is very useful to keep things working. Make sure all models, scripts, and functions run without errors all the time. Using unit test (and potentially using it in CI) is very helpful for that purpose.

miyangcao commented 4 months ago

Thank you for your answer, your reply is very helpful. I am trying to use the powertrain brockset , do you have any books or materials that can help you learn quickly ? What companies or academics can answer my questions?

Isaac-Ito-MW commented 4 months ago

You can ask your questions at MATLAB Answers: https://www.mathworks.com/matlabcentral/answers/index/