I have the following code for using array of CombiTable2D.

1. my table name is bend_loss_table[n]
2. source of the table values are in a record located at BendLossTable.loss_table , which is actually a 7 X 10 matrix (formed as per CombiTable2D specs)
3. r_D_ratio & theta are inputs to the 2D table
4. K_bend is the output from the 2D table
5. n is a integer parameter.

The code is:

Modelica.Blocks.Tables.CombiTable2D bend_loss_table[n](table=BendLossTable.loss_table) ;

equation
for i in 1:n loop

bend_loss_table.u1= r_D_ratio[i];
bend_loss_table[i].u2=theta[i];
K_bend[i] = bend_loss_table[i].y;
end for;

K_net=sum(K_bend) ;


But, while checking the model, It shows some error message as :

Type inconsistent definition equation: bend_loss_table[1].table =
BendLossTable.loss_table[1, :, :];

[i]Error: Wrong number of indices in BendLossTable.loss_table[1, :, :]
There should be 2 indices.
Basic type inconsistencies detected
Check aborted.
ERROR: 2 errors were found


I think i'm going wrong in refering the path of the table to the table attribute of the CombiTable2D.

help me out..