Long simulation time by combining BEV and PV modelling in SIMULINK
조회 수: 8(최근 30일)
HAMIZAH SYAZWANI JOHARI 2022년 8월 29일
Hi, I am doing a physical modelling simulation using Simscape of Battery Electric Vehicle equipped with Photovoltaic as additional power source. The model of BEV and PV itself were a success when it is being simulated seperately. The problem is when i combine PV model with my BEV model, the simulation takes a longer time to simulate and it would usually take hours to finish simulating, even though i simulate it for 10 seconds. For the PV Module i use boost DC Converter connect with battery. In order to simulate i need to use discrete powergui and a sample time of 1 micro.
I wish to know how can i reduce the simulation time and make MATLAB SIMULINK simulate it faster. It would be a great help if suggestions on how to solve this problem are presented. Thank you in advance!
Joel Van Sickel 2022년 9월 6일
thank you for sharing your model. I can give you some specifics now. The first issue is that the battery is implemented in Specialized Power Systems (black model) and so is the boost converter, but you have a switching dc motor modelled in simscape (blue model). Combining Specialized power systems with more complex simscape models is not recommended as the ideal solver for specialized power systems is ode23tb, while for simscape, you'd want to use ode15s, ode23t, or daessc. The model also has 2 seperate powergui blocks, one which is set at a discrete rate of 1s which seems wrong due to the fact that you are modelling switching behavior. There is also a battery on the boost converter model and a seperate battery for the car, is this expected? The boost converter doesn't seem to be doing anything in the simulation that I ran. I dug deeper into that and the PWM generator doesn't seem to be working. It looks like the zero crossing detection isn't working. I suggest using one of the shipping PWM generator blocks instead of your own.
I would then drastically simplify this system and build it back up piece by piece. It looks like a lot of stuff was stitched together.
Another really good way to speed things up would be to NOT include the switching effects. Using average models will work much faster and still be useful for simulation analysis.
use the averaged switch option.