Hopsan / hopsan

Hopsan is a free multi-domain system simulation tool developed at the division of Fluid and mechatronic systems at Linköping university.
Apache License 2.0
146 stars 41 forks source link
c-plus-plus fmi hydraulics simulation-modeling transmission-line

Hopsan

Build Status Build status

Hopsan is a free open-source multi-domain system simulation tool developed at the division of Fluid and mechatronic systems at Linkoping university.

Features include:

License

The Hopsan simulation core and support libraries are released under the permissive Apache License 2.0

The GUI applications are released under the copyleft GNU General Public License 3.0

Download and Installation

Windows

You can download official release packages from
https://github.com/Hopsan/hopsan/releases

The Windows version is packaged as a installer or as a portable zip that you can use if you do not have permission to install software on your computer. You can also choose if you want the compiler included for importing and exporting component libraries and models.

If you choose the zip version, no start menu entry for Hopsan will be added, instead go into the bin directory and double-click hopsangui.exe to start.

Chocolatey (a.k.a. Chocolatey Package Manager, App Installer):

choco install hopsan

Ubuntu and Debian Packages

You can download official release packages from
https://github.com/Hopsan/hopsan/releases

Deb packages are built for the current Ubuntu and Debian releases. You should be able to install them by opening them in you package manager, but if that does not work, try to install it manually using.

apt install ./hopsanPackageName

Note that you must specify the package name as a path, otherwise apt will search for the package in the repository.

Snapcraft

https://snapcraft.io/hopsan
If your GNU/Linux distribution supports Snap packages you can install Hopsan from the "Snap Store"
Hopsan

or from the terminal:

snap install hopsan

Application menu entries for HopsanGUI will be added but to start the command line applications use a command like:

hopsan.addresserver
hopsan.cli
hopsan.gui
hopsan.remoteclient
hopsan.server
hopsan.servermonitor

Known issues:

Flatpak

https://flathub.org/apps/details/com.github.hopsan.Hopsan
If your GNU/Linux distribution supports Flatpak you can install Hopsan from Flathub
Download on Flathub

or from a terminal:

flatpak install flathub com.github.hopsan.Hopsan

Run with compiler:
The compiler is not included inside the Hopsan flatpak. If you need to use the compiler then start Hopsan from the command line using the Sdk as runtime. This unfortunately also requires that you install the entire org.kde.Sdk

flatpak run --devel com.github.hopsan.Hopsan

Run other Hopsan applications:
A Hopsan entry that starts HopsanGUI will be added to your application menu, but if you want to start one of the other bundled applications you must use the command line.

# List the contents of the bin directory (to see what other executable are available)
flatpak run --command=ls com.github.hopsan.Hopsan  -l /app/bin

# Start application "hopsancli" from inside the flatpak
flatpak run --command=hopsancli com.github.hopsan.Hopsan [arguments]
# or
flatpak run --command=hopsancli --devel com.github.hopsan.Hopsan [arguments]

Known issues:

Documentation

https://hopsan.github.io/documentation

Issue Tracker and Questions

If you want to report an issue, make a feature request or have a question, please create a new issue in the issue tracker.
If you want to ask a question, please label the issue with the "question" label. https://github.com/Hopsan/hopsan/issues

Links

https://github.com/Hopsan
https://liu.se/en/research/hopsan

Build Instructions

Hopsan is a cross-platform supported application and it should be possible to build on most GNU/Linux based distributions, Microsoft Windows (using MinGW) and Apple macOS.

For detailed instructions see build-instructions.md