If possible I would like to create an array of replaceable media packages that a user can then change each option using available choices.
Below is a typically way to define the medium.
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium
"Coolant medium" annotation (choicesAllMatching=true);
The following is a prototype of what I was hoping could be done where each of the "Mediums" is potentially a different media.
parameter Integer n = 1 "Number of media models";
replaceable package Medium[n] = {Modelica.Media.Interfaces.PartialMedium}
"Coolant medium" annotation (choicesAllMatching=true);
However, this is not acceptable modelica. I've tried using variations on records as well but found no success. Any ideas? Perhaps this is not permitted in Modelica... Thank you.