Modelica array of partial model
问题 Let A be a partial model and C , D be models which extend A . Given a model partial model X A a[3]; end X; how can I instantiate X, e.g. something along the lines of A X.a = {C,D,C}; Update : I tried 2 variants. One is package P partial model A end A; model B extends A; end B; model C extends A; end C; partial model X A a[3]; end X; model Y extends X(a={c,b,c}); B b; C c; end Y; end P; which fails with the warning "May only set inputs, parameters, and variables with default, but modified a."