Skip to content

Integer phase in medium state generally requires newer MSL and future GenerateEvents semantics #1636

Description

@henrikt-ma

As long as the used MSL version is 4.0.0, there are some issues related to the equations for solving for the Integer phase members of medium state records:

Modelica(version="4.0.0")),

In System Modeler, this manifests as translation errors complaining that some variables are not solvable in any equation, and that there are equations with no unknown variables to solve for.

The problem has been discussed here in the context of the Modelica language specification:

Note that a proper fix for this problem requires that the new GenerateEvents semantics become released in an upcoming version of the Modelica language specification, that the MSL switches over to the new version, that MSL makes a new release, and finally that AixLib switches to the new MSL release. However, in reality it might be sufficient that AixLib just switches to MSL 4.1.0 and that Modelica tools implement the new GenerateEvents semantics and apply them also when using libraries made for the 3.6 language version.

A quick look suggests that these examples are affected:

  • AixLib.Fluid.Actuators.Valves.ExpansionValves.Examples.BaseModelStaticHeatPumps
  • AixLib.Fluid.Actuators.Valves.ExpansionValves.Examples.StaticHeatPumpBoundaries
  • AixLib.Fluid.Movers.Compressors.Examples.ModularRotaryCompressor
  • AixLib.Fluid.Movers.Compressors.Examples.RotaryCompressor
  • AixLib.Fluid.Movers.Compressors.Examples.RotaryCompressorPressureHeatLosses
  • AixLib.Fluid.Movers.Compressors.Examples.RotaryCompressorPressureLosses
  • AixLib.Fluid.Movers.Compressors.Validation.EfficiencyModels
  • AixLib.Fluid.Movers.Compressors.Validation.ModularInactiveCompressors
  • AixLib.Fluid.Movers.Compressors.Validation.StaticHeatPumpBoundaries.BaseModelStaticBoundaries
  • AixLib.Fluid.Movers.Compressors.Validation.StaticHeatPumpBoundaries.BaseModelStaticHeatPump
  • AixLib.Fluid.Movers.Compressors.Validation.StaticHeatPumpBoundaries.BaseModelStaticHeatPumpController
  • AixLib.Fluid.Movers.Compressors.Validation.StaticHeatPumpBoundaries.SpecifiedModels.RefrigerantR134aScrollCompressor
  • AixLib.Fluid.Movers.Compressors.Validation.StaticHeatPumpBoundaries.SpecifiedModels.RefrigerantR410aScrollCompressor
  • AixLib.Fluid.Movers.Compressors.Validation.StaticHeatPumpBoundaries.SpecifiedModels.RefrigerantR410aScrollCompressorController

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions