Opened 11 years ago
Last modified 7 years ago
#2670 new defect
Possible support for Modelica_LinearSystems2 — at Version 1
Reported by: | Adrian Pop | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description (last modified by )
The library: Modelica_LinearSystems2
https://github.com/modelica/Modelica_LinearSystems2
is used quite a lot for model analysis and various plots (bode, etc.)
This ticket is to investigate if is possible to support it.
As far as I've seen for example having a look at this file:
https://github.com/modelica/Modelica_LinearSystems2/blob/release/Modelica_LinearSystems%202.3.1/Utilities/Import/linearize2.mo
is that it should be possible but we would need
some support for some of Dymola-specific annotations and API:
- translateModel /
Dialog(__Dymola_translatedModel)
- linearization (we already support it but with some differences)
- SetVariable/SetParameter (we already support these but with some differences)
- simulateModel (we already support it but with some differences)
- readMatrixSize/readMatrix/readStringMatrix (we already support these but with some differences)
annotation (__Dymola_interactive=true)
: not sure what this does
Besides the above things we need plotting support from Modelica code as for example used in this file:
https://github.com/modelica/Modelica_LinearSystems2/blob/release/Modelica_LinearSystems%202.3.1/Utilities/Plot/diagram.mo
- createPlot
- plotArray
- more plot functions from the library
I guess these plot functions need to be combined with annotation (__Dymola_interactive=true)
somehow to be able to
display the plots.