ModelingToolkitStandardLibrary.jl icon indicating copy to clipboard operation
ModelingToolkitStandardLibrary.jl copied to clipboard

Propagation of variable names and variable comments

Open baggepinnen opened this issue 2 years ago • 2 comments

Our library components, like

Blocks.StateSpace

currently chooses names for, e.g., the input and output variables, u[1:3], y[1:2] etc. I'd like to have to option to either provide these names upon construction or change them after construction:

u[1:3] -> [:fan_speed, :heater_duty_cycle, :solar_irradiance]

In addition, one could associate comments with variables like in modelica. This would be nice irrespective of the ability to prvide variable names since comments can contain much more information than a variable name

baggepinnen avatar Jun 17 '22 06:06 baggepinnen

Via the meta data system?

ValentinKaisermayer avatar Jun 17 '22 06:06 ValentinKaisermayer

That was what I had in mind at least, not sure if there are better ways?

baggepinnen avatar Jun 17 '22 06:06 baggepinnen