Modelica.Fluid.Vessels gives error when called. #1
Unanswered
90PlusWorks
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm calling this from the StirlingTypeAlpha_ex01 or StirlingTypeAlpha_ex02 or StirlingTypeAlpha_ex03 code:
Modelica.Fluid.Vessels.ClosedVolume volume(redeclare package Medium = engineAir, V = 0.1 * Modelica.Constants.pi / 4 * 0.1 ^ 2, nPorts = 2, use_portsData=false) annotation(
Placement(visible = true, transformation(origin = {10, 170}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
and it gives the same error for all three:
[2] 13:52:49 Translation Error
[Modelica.Fluid.Vessels: 253:9-254:130]: Non-array modification ‘false‘ for array component ‘fixed‘, possibly due to missing ‘each‘.
In line 252-3 of Vessels, this is the line:
// Note: should use fluidLevel_start - portsData.height
Real[nPorts] s(each start = fluidLevel_max)
"Curve parameters for port flows vs. port pressures";
Since nPorts = 2, and "each" is not missing, what other error could do this?
All reactions