Answer Question
How to calculate component parameters from parent module parameters?
I am setting up a module that includes a governor, engine, synchronous machine and exciter. Each of these requires parameters describing different, related ratings - power, current, line-to-ground voltage, or line-to-line voltage. I would like to create module parameters to allow the user to specify these.
So far, I've been able to do this by creating module parameters for all four values, then creating import blocks for them inside the module, then referring to these signals by name from the parameter sheets of the subcomponents. But only two of these values are really independent, and it seems messy and possibly dangerous to require the user to specify all four of them (they may choose incompatible values).
So my question is, is there some way to just request rated power and LL voltage as module parameters, and then automatically compute the other values from these for the subcomponents? (E.g. Rated current = rated power / LL voltage / sqrt(3).)
Thanks for any help you can give!
So far, I've been able to do this by creating module parameters for all four values, then creating import blocks for them inside the module, then referring to these signals by name from the parameter sheets of the subcomponents. But only two of these values are really independent, and it seems messy and possibly dangerous to require the user to specify all four of them (they may choose incompatible values).
So my question is, is there some way to just request rated power and LL voltage as module parameters, and then automatically compute the other values from these for the subcomponents? (E.g. Rated current = rated power / LL voltage / sqrt(3).)
Thanks for any help you can give!