When I choose to simulate temperature effects of battery, it takes too much time to simulate
    5 views (last 30 days)
  
       Show older comments
    
I am trying to simulate the battery performance during charge and discharge and when I choose to simulate temperature effects of battery, it takes too much time to simulate. I am now working with a variable-step solver with automatic solver selection ans a Continuous powergui block. I tried to change the solver type and the relative tolerance but the simulation still slow.
R2019b
0 Comments
Answers (1)
  CHANDRA BABU GUTTIKONDA
 on 30 Aug 2025
        Simulating battery temperature effects in MATLAB R2019b can be slow because it adds thermal-electrical coupling, making the system stiff and computationally heavy. To improve performance, try switching to a stiff solver like ode15s, increase the relative tolerance slightly, and set a reasonable max step size. Simplifying the thermal model or using a discrete powergui block can also help.
0 Comments
See Also
Categories
				Find more on Sources in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
