How to scale 1 hour in some seconds for battery simulation?

Hello everyone,
I need to use a 3.91e-7s time step in my simulink model, but with this short time step, it is practically impossible to simulate some hours and observe battery charge and discharge processes. So I would like to know how can I scale 1 hour in 1s of simulation or another thing to solve this problem.
Thanks.

4 comentarios

If you need to use a very short time step, then your problem is highly nonlinear. No magic formula will exist to make it run really fast, just because you want it to run fast.
Frederico Marc
Frederico Marc el 14 de Nov. de 2016
Editada: Frederico Marc el 14 de Nov. de 2016
Hi John D'Errico,
I need a short time step to see a power converter waveforms. This converter is used to charge and discharge a battery. 1h of simulation time with 3.91e-7 time step it would be necessary many many data points and much time in real world.
The point is, if you need a short time step, then you need a short time step. There is no magic. You are not the last person or the first one to want things to run fast, or to have a problem that they want to run faster than it can. Computers are not infinitely fast, and it is easy to throw a problem at them that will run a long time.
Alright then. Thanks John D'Errico!

Iniciar sesión para comentar.

Respuestas (1)

Grégory SEABRA
Grégory SEABRA el 14 de Nov. de 2016
Hi,
you might want to change your battery's equivalent capacity with the same time factor (not the ESR though). By doing so, you'll change your charge/discharge dynamics.
I don't know how your battery is modeled, but you might want to do something like this.
Do you want to simulate the charge and discharge in order to evaluate the efficiency or some THDs? If so, you can also determine some bias points (SOCs, etc...) around wich you will perform a simulation, put all this in a script and let it run successively all the simulations. You would then have only to analyze the results.
But as I asked, it's all about knowing what you want to observe.
Regards,
Greg

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Preguntada:

el 14 de Nov. de 2016

Respondida:

el 14 de Nov. de 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by