simulink - SIMSCAPE 中的锂电池模型并行化错误
问题描述
我在 simscape 上有一个锂电池模型。我拿
- 瞬时电压值 [电压]
- 全容量 [安培秒]
- 初始 SOC[%] 作为输入并具有输出:
- Cout : 剩余容量 [安培秒]
- SOC:剩余 SOC [%]
- “+”和“-” Simscape 电气端子
当我将它们串联连接时它可以工作,但是当我将它们并联连接时它会给我如下所示的错误。笏可能是什么原因?我该如何解决?
谢谢。
component v_ysk
inputs
v_ins = {0,'1'};
c_full = {0, 'A*s'};
c_initial = {0,'A*s'};
end
outputs
c_out ={0,'A*s'};
soc = {0,'1'};
end
nodes
p=foundation.electrical.electrical % +:right
n=foundation.electrical.electrical % -:right
end
parameters (Size =variable)
end
variables(Access=private)
i = { 0, 'A' };
v = { 0 ,'V'};
end
branches
i : p.i -> n.i;
end
equations
c_out == c_initial + integ(i);
v == p.v - n.v;
soc == (c_out/c_full)*100;
if (c_out>0 && c_out<= c_full)
v == {v_ins,'V'};
else
v == {v_ins , 'V'};
end
end
结尾
解决方案
这里 integ 是问题的根源。我使用了实际上相同的 .der 而不是 integ。
推荐阅读
- linux-kernel - 从缓冲区创建结构散点列表数组
- microsoft-teams - 将应用程序与 Microsoft Teams 集成的用户名和密码
- git - 调试 Git LFS - 为什么我的包文件在 git lfs 导入后没有缩小?
- git - git revert 合并没有效果?
- c++ - TCP连接被拒绝c ++
- python - 使用 python 和烧瓶更改 css
- r - 为什么 plm 中的 make.pbalanced 在中型数据集上如此缓慢?
- python - Tkinter - 调整窗口大小,而不改变框架/小部件的尺寸
- laravel - Laravel:在此服务器上找不到资源
- db2 - 从 db2 到 hdfs 的 sqoop 导入问题