Skip to content

Invalid replaceable package #50

@maltelenz

Description

@maltelenz

There are incompatible classes here:

replaceable package Anode_Medium = Modelica.Media.IdealGases.SingleGases.H2(Temperature(start = system.T_start), AbsolutePressure(start = system.p_start)) constrainedby Modelica.Media.Interfaces.PartialSimpleIdealGasMedium;

Message from Wolfram System Modeler:

Error: VirtualFCS.SubSystems.Hydrogen.SubSystemHydrogen [5:15-5:15] Incompatible classes. .Modelica.Media.IdealGases.SingleGases.H2 is not a subtype of .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium, the constraint was imposed here. The following elements are missing or have incompatible types themselves:
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.MolarMass MM_const;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.SpecificHeatCapacity R_gas;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.Temperature T0;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.Temperature T_max;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.Temperature T_min;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.SpecificHeatCapacity cp_const;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.SpecificHeatCapacity cv_const;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.DynamicViscosity eta_const;
  .Modelica.Media.Interfaces.PartialSimpleIdealGasMedium.ThermalConductivity lambda_const;

The here mentioned in the message is the constrainedby from the code linked above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions