Open traversaro opened 6 years ago
Investigate importing of ngspice netlist importing: this is just a simple script https://github.com/OpenModelica/OMCompiler/blob/master/Compiler/scripts/ngspicetoModelica.py .
The ModelicaML project is implementing UML to Modelica conversion, see https://www.openmodelica.org/?id=139:modelicaml .
An interesting part is how they implement the model2text part, relying on support on that on the Eclipse side, using technology such as http://www.eclipse.org/modeling/m2t/?project=acceleo and MOFM2T ( http://www.omg.org/spec/MOFM2T/ ). In general, model transformation languages may be more useful to use rather than template engines (that are used mostly in web-based technologies) such as Mustache, they we are currently using in the prototype.
An interesting template language that is explicitly designed to generate Modelica code is Modelica Text Template Language Susan (references: Towards a Text Generation Template Language for Modelica ).
However, I do not know if it easy to use outside of OpenModelica, and the dependency on OpenModelica may be quite an heavy one (especially compare do the single header libraries nlohmann/json
and kainjow/Mustache
on which we depend now).
Something to Modelica
CAD to Modelica MultiBody
http://www.mathematica-journal.com/issue/v10i1/contents/MathModelicaPaper/MathModelicaPaper_3.html https://www.modelica.org/events/modelica2006/Proceedings/sessions/Session6c1.pdf http://elib.dlr.de/90918/1/ECP14096913_BaumgartnerPfeiffer.pdf
http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=4488946 (CAD ---> Simscape XML ---> Modelica)
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.66.8557&rep=rep1&type=pdf
Catia to Modelica
http://www.ep.liu.se/ecp/043/063/ecp09430113.pdf
UML to Modelica
https://www.researchgate.net/publication/262358751_Generating_Modelica_Models_from_Software_Specifications_for_the_Simulation_of_Cyber-Physical_Systems http://ieeexplore.ieee.org/document/6928811/
Building to Modelica
http://www.ibpsa.org/proceedings/bausimPapers/2014/p1143_final.pdf
Modelica to Something
(Not directly related)
https://www.inf.ethz.ch/personal/cellier/Pubs/Sim/modelica_11.pdf http://ieeexplore.ieee.org/document/4735662/ http://elib.dlr.de/57284/1/07_02_Rohnsch_paper.pdf
CATIA Piping 3D to Modelica
http://www.ep.liu.se/ecp/118/056/ecp15118517.pdf (include discussion of automatic layout of generated models)