I have a parameter under section protected that is needed for further calculations:
parameter Integer Ns = integer(ceil(L / dx))
It shouldn't be modified that's why I placed it there. However, I want to access this parameter while building my general model. Particularly to access it in the other component that I could do something like:
Ns = componentName.Ns
But as it is under protected section it is not possible. I did a work around by simply adding another parameter in general section:
parameter Integer N=Ns
However, this parameter appears in the GUI and can be modified, which I would like to avoid by all means.
Is there any solution for this? I hope it is clear what I mean.
final
. mbe.modelica.university/components/subsystems/propagation – matthfinal
, though how do I make it for theInteger
? Particularly in this lineparameter Integer Ns = integer(ceil(L / dx))
– Tomillofinal parameter Integer Ns = integer(ceil(L / dx))
? – matth