in the model below i have a convection component that is composed of 4 elements (table(4,1)). what i did is define the product and the const componant as a table of 4 elemnts but the coefficient table do not accept this definition.
is there any way to calculate the product of the constant “const” and a intrepoleted value from the coeffcient table and inserted as GC input for the convection components
code :
model test
Modelica.Blocks.Sources.TimeTable coefficient(table = [0, 10722; 64, 10746; 68, 10568; 74, 8656; 524, 0; 530, 1508; 534, 2885; 538, 4298; 542, 5486; 548, 6780; 552, 7469; 558, 8335; 562, 8846; 566, 9297; 570, 9535; 576, 9831; 582, 10211; 586, 10342; 590, 10461; 594, 10603; 600, 10686]) annotation(
Placement(transformation(origin = {-72, 46}, extent = {{10, -10}, {-10, 10}}, rotation = 180)));
Modelica.Blocks.Math.Product product annotation(
Placement(transformation(origin = {14, 8}, extent = {{-10, -10}, {10, 10}})));
Modelica.Blocks.Sources.Constant const(k = 10) annotation(
Placement(transformation(origin = {-72, -32}, extent = {{10, -10}, {-10, 10}}, rotation = 180)));
Modelica.Thermal.HeatTransfer.Components.Convection convection_serpentin_1[4] annotation(
Placement(transformation(origin = {68, 8}, extent = {{-10, 10}, {10, -10}}, rotation = -90)));
equation
connect(const.y, product.u2) annotation(
Line(points = {{-61, -32}, {-51, -32}, {-51, 2}, {1, 2}}, color = {0, 0, 127}));
connect(coefficient.y, product.u1) annotation(
Line(points = {{-61, 46}, {-51, 46}, {-51, 14}, {1, 14}}, color = {0, 0, 127}));
connect(product.y, convection_serpentin_1[1].Gc) annotation(
Line(points = {{26, 8}, {58, 8}}, color = {0, 0, 127}));
connect(product.y, convection_serpentin_1[2].Gc) annotation(
Line(points = {{26, 8}, {58, 8}}, color = {0, 0, 127}));
connect(product.y, convection_serpentin_1[3].Gc) annotation(
Line(points = {{26, 8}, {58, 8}}, color = {0, 0, 127}));
connect(product.y, convection_serpentin_1[4].Gc) annotation(
Line(points = {{26, 8}, {58, 8}}, color = {0, 0, 127}));
annotation(
uses(Modelica(version = "3.2.3")));
end test;