-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overriding final parameters #3970
Comments
@AHaumer @christiankral any comment? |
On my opinion this is not solely an example issue as the current implementation (being in line with the MLS) does not allow to parameterize the polyphase machine core loss parameters for m > 3 based on the record The reason for parameter Integer m=3 "Number of phases" annotation(Evaluate=true);
...
parameter Machines.Losses.CoreParameters statorCoreParameters(
final m=m,
PRef=0,
VRef=100,
wRef=2*pi*fsNominal)
"Stator core loss parameter record; all parameters refer to stator side"
annotation (Dialog(tab="Losses"));
... The propagation of the parameter Up to now I have only one solution to this issue.
|
My propsoal also requires to change the actual implementation of parameter Machines.Losses.CoreParameters rotorCoreParameters(
final m=3,
PRef=0,
VRef=1,
wRef=1)
"Rotor core loss parameter record; all parameters refer to rotor side"
annotation (Dialog(tab="Losses")); to |
Maybe it's backwards compatible, but being "weaker" is not a sufficient condition to ensure this. To be sure, one needs to also check that the (While I know it isn't a popular idea in our community, a remedy to this is often to declare the variability as |
Changing it to a constant does not guarantee that it is backward compatible. (I will review the actual change later.) |
Reverting #1783 change implies that we have a number of final parameters that are part of records where the entire record gets a new value.
In most cases it's the same value (since the new record is using the same record class), and it could be that we should refine the specification to handle that better; that's a separate issue.
However, in
Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase
the value ofaimcM.statorCoreParameters.m
is 3 - which is unusual for a 5-phase machine.There are at least 4 models with this mismatch in MSL, all in ComparisonPolyphase packages specifically:
Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase
Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase
Since they are intended for comparison it doesn't seem that critical - it more means that one variant works and the other does not.
The text was updated successfully, but these errors were encountered: