Lithium ion battery simulation for EV - Simscape language integration fucntion

1 次查看(过去 30 天)
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

回答(1 个)

Sabin
Sabin 2023-2-4
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'.

社区

更多回答在  Power Electronics Control

类别

Help CenterFile Exchange 中查找有关 Electrical Systems 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by