ModiaSim / Modia.jl

Modeling and simulation of multidomain engineering systems
MIT License
319 stars 37 forks source link

[Feature request] GUI #95

Open tshort opened 5 years ago

tshort commented 5 years ago

A GUI to edit components might make a good Google Summer of Code project.

One approach to implementing a GUI might be the CImGui package (discourse announcement). In the ImGui ecosystem, there is interesting work around different node editors. See this issue. Try the "ImGui Node Graph Editor" widget here, an online demo of one implementation.

HildingElmqvist commented 5 years ago

I have started working on a Modia connection editor. I am using the Genie.jl framework. The plan is to get a summer intern to accelerate the development. I agree that defining a Google Summer of Code project might be an option.

CImGui seem to be overkill for this. I would prefer to keep it simple and Julia/Javascript/HTML5-based.

nxtruong commented 5 years ago

I'm really interested in a GUI for Modia. Why don't you utilize OpenModelica's OMEdit GUI? Although OMEdit doesn't run in Julia, you can use it as an external program and interface it with Modia as an engine. Also, I think it'd be great to have interoperability between Modelica and Modia, specifically a way to automatically translate from Modelica to Modia, or to load Modelica models/libraries into Modia/Julia. That way Modia users have immediate access to many Modelica libraries out there (for example https://simulationresearch.lbl.gov/modelica/ is in my interest).

hyperkomplexe commented 4 years ago

Or the javascript library Draw2D http://www.draw2d.org/draw2d/ which looks quite nice.

An example of what could be done is shown in the Brainbox app, which uses Draw2D. https://freegroup.github.io/brainbox/

That said, I'm not sure how well it scales. Whatever is used should be tested for large models.

HildingElmqvist commented 4 years ago

We are working on a connection editor for Modia and also a 3D composition editor for Modia3D. It is based on three.js.

I have tried out draw2d and although it has some nice features, I don't consider it sufficient due to lack of support for 3D.

BYuXi commented 4 years ago

We are working on a connection editor for Modia and also a 3D composition editor for Modia3D. It is based on three.js.

I have tried out draw2d and although it has some nice features, I don't consider it sufficient due to lack of support for 3D.

I have seen the information of modator on modia3D, but I don't know what its content is? Including the range it supports, the architecture, and its release time. In addition, if I understand correctly, are you saying that draw2D can support component connections, but does not support the functions under the 3D modelling, right?

JosePereiraUA commented 3 years ago

Hi, any updates on a Julia-based node graph editor / connection editor? I'm actively looking for something like this for ages, and there's not an easy and simple solution. Any help would be much appreciated!

ufechner7 commented 1 year ago

Have a look at https://github.com/robertobucher/pysimCoder for some ideas how to write such a GUI...