classNewType

Adding new type

Extends from Modelica.Icons.Information (Icon for general information packages).

Information

Definition of new type ("QuantityX") in Physiolibrary:

  • Define base type Types.QuantityX with SI units in "final unit", default display units and nominal (e.g. value of one display unit at SI units).

Optional:

  • Define typed input and output connectors for QuantityX: Types.RealIO.QuantityXInput and Types.RealIO.QuantityXOutput.
  • Define typed constant for QuantityX: Types.Constants.QuantityXConst
  • Define typed RealInputParameter for QuantityX: Types.RealInputParameters.QuantityX
  • Define typed replaceable variable RealTypes for QuantityX: Types.RealTypes.QuantityX