Lithium ion battery simulation for EV - Simscape language integration fucntion

5 vues (au cours des 30 derniers jours)
Peadar Crudden
Peadar Crudden le 20 Fév 2018
Réponse apportée : Sabin le 4 Fév 2023
I am trying to model the response of a Lithium-ion battery for use in an EV to a drive cycle and recieve the error in 'Capture_1'. The source code for the custom Em block is shown in Capture_2 through Capture_5.
I have run out of ideas on how to solve this problem as I have not encountered it before and the Mathworks support on this doesn't provide much insight for me.
Thanks in advance

Réponses (1)

Sabin
Sabin le 4 Fév 2023
The integ operator lets you perform time integration of an expression in the equations section of a Simscape file without declaring and initializing extra variables.
The full syntax is:
integ(expr,t_L)
where:
expr is a Simscape language expression.
t_L is the lower integration limit, specified as a delay time relative to the current time. This operand is optional.
The upper integration limit is the current simulation time. If you omit the lower limit, the integration starts from the simulation start time. expr can be of any type. It will automatically be converted to a double.
integration variable.
expr is assumed to have zero history for times prior to start of simulation.
t_L must be a scalar nonnegative constant or parametric expression with the unit of time.
The return unit of integ is the unit of its operand multiplied by a unit of time.
It looks like tinit = {0,'S'} and t = {0,'S'}, the correct unit of time is small 's' not capital 'S'.

Communautés

Plus de réponses dans  Power Electronics Control

Catégories

En savoir plus sur Energy Storage dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by