ombackend.jl

Preliminary backend for the OpenModelica.jl Modelica Compiler

https://github.com/jkrt/ombackend.jl

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
Last synced: 10 months ago · JSON representation ·

Repository

Preliminary backend for the OpenModelica.jl Modelica Compiler

Basic Info
  • Host: GitHub
  • Owner: JKRT
  • License: other
  • Language: Julia
  • Default Branch: master
  • Homepage:
  • Size: 1.16 MB
Statistics
  • Stars: 4
  • Watchers: 9
  • Forks: 1
  • Open Issues: 10
  • Releases: 0
Created over 6 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

Github Action CI License: OSMC-PL

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))

image

Owner

  • Name: John Tinnerholm
  • Login: JKRT
  • Kind: user
  • Location: Linköping
  • Company: Linköping University

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

All Time
  • Total Commits: 153
  • Total Committers: 4
  • Avg Commits per committer: 38.25
  • Development Distribution Score (DDS): 0.255
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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
Test Infrastructure (3)
Pull Request Labels

Dependencies

.github/workflows/CI.yml actions
  • 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