FluidStorage uses end in connect statement
thorade opened this issue · 1 comments
thorade commented
That is valid Modelica, but OpenModelica does not yet support it:
https://trac.openmodelica.org/OpenModelica/ticket/4541
We could (here, in this model) easily rewrite the FluidStorage model to use nEle
instead of end
.
Also, the for-loops could be rewritten from e.g.
for i in 1:nEle-3 loop
connect(vol[i].ports[2], vol[i+1].ports[1]);
end for;
to the shorter form
connect(vol[1:nEle-3].ports[2], vol[2:nEle-2].ports[1]);
thorade commented
The FluidStorage examples do now simulate!
https://libraries.openmodelica.org/branches/history/master/2017-10-19%2009:22:51..2017-10-20%2004:56:35.html