Azzera filtri
Azzera filtri

Lithium ion battery simulation for EV - Simscape language integration fucntion

1 visualizzazione (ultimi 30 giorni)
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

Risposte (1)

Sabin
Sabin il 4 Feb 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'.

Community

Più risposte nel  Power Electronics Control

Categorie

Scopri di più su Electrical Systems in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by