Skip to content

support connections between (causal) variables connect(var1, var2) #3287

@baggepinnen

Description

@baggepinnen

In modelica and JSML one can connect two variables that are marked as output and input. In MTK, we can currently only connect systems that are @connector, and we thus have the RealInput, RealOutput in MTKstdlib. This is awkward, and makes the translation from JSML to MTK difficult.

This request is to allow connect between two variables

@variables u(t) [input = true] y(t) [output=true]

connect(y, u)
connect(y, :analysis_point_name, u)

and these connect statement should normally expand to u ~ y, unless an analysis is requested.

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