Model device1
PARAMETERS
outer A as Real;
VARIABLES
X as Real;
EQUATIONS
X = A(1); # value of position 1 of the outer parameter
end
Model device2
PARAMETERS
outer A as Real;
VARIABLES
Y as Real;
EQUATIONS
Y = A(2); # value of position 2 of the outer parameter
end
FlowSheet sample
PARAMETERS
N as Integer;
A(N) as Real;
DEVICES
D1 as device1;
D2 as device2;
SET
N = 2;
A = [0,1];
OPTIONS
Dynamic = false;
end