Skip to content

Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage breaks balancing rules. #4697

@qlambert-pro

Description

@qlambert-pro

leakageWithCoefficient.R_mUsefulTot does not have a declaration equation, but a modifier (on line 6 in Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage) gives it a binding.

According to Section 4.8 This is only allowed for parameters, constants and non-connector inputs.

In a declarations of a component of a model or block class, modifiers shall only contain redeclarations of replaceable elements and binding equations. The binding equations in modifiers for components may in these cases only be for parameters, constants, inputs and variables having a default binding equation. For the latter case of variables having a default binding equation the modifier may not remove the binding equation using break, see section 7.2.7

One solution would be to move the modifier into this own equation.
Another one would be to add a constant source to connect to leakageWithCoefficient.R_mUsefulTot but R_mUsefulTot doesn't t have an icon in Modelica.Magnetic.QuasiStatic.FluxTubes.Basic.LeakageWithCoefficient which means that it can't be done graphically.

I just want to mention a related ongoing discussion in the language design group.

Metadata

Metadata

Assignees

No one assigned

    Labels

    L: Magnetic.QuasiStaticIssue addresses Modelica.Magnetic.QuasiStaticexampleIssue only addresses example(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions