- If you are starting with Simscape, make sure you watch all video of the training carefully. You will start from scratch and build your models gradually. By jumping within or between the videos you may miss important points.
- I suggest you work with an ideal torque source first before replacing by an actual engine. Hereby you can check whether the torque is enough to obtain the desired accelerations.
- Find attached an example for tabulated torque data for an engine. Make sure you rename the variables accordingly
- You can use callbacks (File -> Model Properties -> Callbacks) to execute code when opening / running the model. Consider running the scripts containing all the parameters here.
- CTRL + R can be used to rotate blocks. That's clearly nitpicking ;-)
How do I use a generic engine block successfully within my vehicle simscape model?
18 ビュー (過去 30 日間)
古いコメントを表示
I have been using the Mathworks "Formula Student: Physical Modeling Training" tutorial videos to create an accurate vehicle simscape model. Part 4 discusses how to model powertrain and I have been having an issue with this.
I am using a torque curve data from an engine dyno to input in to the generic engine block. However the power output drops to zero when a gear change is implemented in the simulation. The torque also seems to feedback data that I would not expect. I am using a three gear subsystem set up as shown:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160695/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160696/image.png)
Running the simulation gives a high initial value of Power which exponentially decreases to zero. If I change the initial rpm of the engine then I achieve a power graph which is more representable, both of which can be seen below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160697/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160699/image.png)
This graph shows for a run in a constant gear. If I change gear the power rises initially and then drops back to zero gradually. I am new to Simscape and I am not sure if I have run with an incorrect parameter or need to model this differently. Any help or suggestions would be great.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160700/image.png)
Thanks, Ryan
0 件のコメント
採用された回答
Christoph Hahn
2017 年 2 月 14 日
Hi Ryan,
I had a look at your model. Overall your model looks meaningful to me.
Here a few comments:
In hope that is helpful.
Cheers Christoph
PS I didn't see the same behavior as you were observing. That's mainly because I had to come up with my own tire data and tabulated torque data (find attached) as you only submitted your model without its parameters.
0 件のコメント
その他の回答 (2 件)
Christoph Hahn
2017 年 2 月 14 日
Hi Ryan,
can you please attach the model (or a simplified one). I would like to try and see whether I experience sth similar.
Cheers Christoph
Christoph Hahn
2017 年 2 月 17 日
Hi Ryan,
I had a look at the model you sent in the mail. Here a few comments:
- The description of the vehicle body says: “Connection H is the mechanical translational conserving port associated with the horizontal motion of the vehicle body. The resulting traction motion developed by tires should be connected to this port.” I attached a screenshot how it could look like. Find the models on FileExchange.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172608/image.png)
- Make sure you use natural numbers for gears.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172610/image.png)
Cheers Christoph
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Engines & Motors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!