ombackend.jl
Preliminary backend for the OpenModelica.jl Modelica Compiler
Science Score: 41.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
2 of 4 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.0%) to scientific vocabulary
Repository
Preliminary backend for the OpenModelica.jl Modelica Compiler
Basic Info
Statistics
- Stars: 4
- Watchers: 9
- Forks: 1
- Open Issues: 10
- Releases: 0
Metadata Files
README.md
About OMBackend.jl
OMBackend.jl is one component of the new OpenModelica Compiler infrastructure for Julia. It is able to transform a given Hybrid DAE and simulate it using DifferentialEquations.jl.
Dependencies
- Julia 1.7
- ExportAll.jl
- MetaModelica.jl
- Setfield.jl
- OMCompiler.jl
- DifferentialEquations.jl
And more..
Installation
Install dependencies with:
julia
julia> import Pkg
julia> Pkg.build("OMBackend")
or:
julia
julia> include("deps/build.jl")
Then precompile with:
julia
(v1.7) pkg> activate .
julia> using OMBackend
Running tests
In the folder containing OMBackend:
julia
julia> activate .
Then run:
julia
(OMBackend) pkg> test
As an alternative assuming you have activated OMBackend:
julia
julia> include("test/runtests.jl")
Example use
Assuming you use DAE.jl and a suitable frontend you can use OMBackend to simulate your Modelica models.
model BouncingBallReals
parameter Real e=0.7;
parameter Real g=9.81;
Real h(start=1);
Real v;
equation
der(h) = v;
der(v) = -g;
when h <= 0 then
reinit(v, -e*pre(v));
end when;
end BouncingBallReals;
Simply pass the given DAE or FlatModelica to the function translate.
julia> OMBackend.translate(BouncingBallReals)
julia> OMBackend.simulate("BouncingBallReals", tspan = (0.0, 2.5))

Owner
- Name: John Tinnerholm
- Login: JKRT
- Kind: user
- Location: Linköping
- Company: Linköping University
- Website: jkrt.github.io
- Repositories: 92
- Profile: https://github.com/JKRT
Just another GitHub user... Other Interests: Cars, history, sociology, literature... PhD student at Linköping University:)
Citation (CITATION.bib)
@inproceedings{tinnerholm2021openmodelica,
title={OpenModelica. jl: A modular and extensible Modelica compiler framework in Julia targeting ModelingToolkit. jl},
author={Tinnerholm, John and Pop, Adrian and Heuermann, Andreas and Sj{\"o}lund, Martin},
booktitle={Modelica Conferences},
pages={109--117},
year={2021}
}
@article{tinnerholm2020towards,
title={Towards an Open-Source Modelica Compiler in Julia},
author={Tinnerholm, John and Pop, Adrian and Sj{\"o}lund, Martin and Heuermann, Andreas and Abdelhak, Karim},
year={2020}
}
GitHub Events
Total
- Watch event: 1
- Push event: 2
- Pull request event: 1
Last Year
- Watch event: 1
- Push event: 2
- Pull request event: 1
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| johti | j****7@l****e | 114 |
| AnHeuermann | a****n@f****e | 20 |
| Karim Abdelhak | k****k@f****e | 18 |
| Adrian Pop | a****p@l****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 26
- Total pull requests: 40
- Average time to close issues: 8 months
- Average time to close pull requests: 25 days
- Total issue authors: 2
- Total pull request authors: 4
- Average comments per issue: 0.92
- Average comments per pull request: 0.33
- Merged pull requests: 35
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 5 months
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- JKRT (23)
- AnHeuermann (2)
Pull Request Authors
- JKRT (34)
- adrpo (2)
- kabdelhak (2)
- Aether-create (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/cache v1 composite
- actions/checkout v2 composite
- codecov/codecov-action v1 composite
- julia-actions/julia-processcoverage v1 composite
- julia-actions/julia-runtest v1 composite
- julia-actions/setup-julia v1 composite