rumoca 0.7.28

Modelica compiler written in RUST
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test type causality propagation
// Mimics MSL's Modelica.Blocks.Interfaces pattern
package Interfaces
  connector RealInput = input Real;

  connector RealOutput = output Real;

  block SISO "Single input single output"
    RealInput u "Input";
    RealOutput y "Output";
  end SISO;
end Interfaces;

block Der "Derivative block"
  extends Interfaces.SISO;
equation
  y = der(u);
end Der;