Misplaced Pages

Hopsan

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
The topic of this article may not meet Misplaced Pages's notability guidelines for products and services. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.
Find sources: "Hopsan" – news · newspapers · books · scholar · JSTOR (November 2012) (Learn how and when to remove this message)
This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources.
Find sources: "Hopsan" – news · newspapers · books · scholar · JSTOR (November 2012) (Learn how and when to remove this message)
This article may contain excessive or inappropriate references to self-published sources. Please help improve it by removing references to unreliable sources where they are used inappropriately. (November 2012) (Learn how and when to remove this message)
(Learn how and when to remove this message)
Hopsan
A position servo with dynamic pressure feedback modelled in Hopsan
Developer(s)Division of Fluid and Mechatronic Systems, Linköping University
Initial release2011
Stable release2.21.1 / June 22, 2023; 18 months ago (2023-06-22)
Written inC++
PlatformCross-platform
Available inEnglish
Typemodeling, simulation, optimization
LicenseGNU General Public License
WebsiteGitHub repository

Hopsan is a free simulation environment for fluid and mechatronic systems, developed at Linköping University. Although originally developed for simulation of fluid power systems, it has also been adopted for other domains such as electric power, flight dynamics, and vehicle dynamics. It uses bi-directional delay lines (or transmission line elements) to connect different components.

History

The development on Hopsan first began in 1977 at the Division of Hydraulics and Pneumatics at Linköping University. The first version was written in FORTRAN, with a drag-and-drop graphical user interface written in Visual Basic. In addition to the simulation capability it also had features for simulation based optimization. This used the COMPLEX direct search optimization method or a generic algorithm (GA). It also had features for frequency analysis and transfer function analysis, on simulated results. It also supported co-simulation under Simulink. Component models were written as FORTRAN subroutines. A separate tool called COMPGEN, written in Mathematica, was also developed, which can be used to generate component models in a more straightforward way. In 1991 the method of bi-directional delay lines (or transmission line modelling TLM) was introduced for system simulation.

In 2009 the development of the first version of Hopsan was dropped in favor for a brand new generation of the software, written in C++. This working name of the project is Hopsan NG, and the first beta version was released in February 2011. Parts of the source code in Hopsan was used in the OpenModelica Connection Editor (OMEdit) in a collaboration with the OpenModelica project.

Program Overview

The current generation of Hopsan consists of two parts, a graphical user interface and a simulation core library. These are completely separated, so that the core can be used stand-alone, for example in embedded systems or target computers. System models are built using components from the built-in or external libraries. This includes components for hydraulic, pneumatic, electrical, mechanical and control systems (filters, non-linear functions and arithmetic). The library components are pre-compiled, so that no compilation is required during runtime. Custom user models can be created and compiled as separate library files, which can be loaded into Hopsan. There is also a built-in automated equation based component generator using Modelica syntax. Models can also be generated from equations by using Mathematica. Numerical optimization can be performed by a built-in tool, using COMPLEX-RF, COMPLEX-RFP or particle swarm algorithms. It is also possible to perform Monte Carlo sensitivity analysis. The plotting tool is capable of generating frequency spectrums and performing frequency analysis to generate Bode diagrams and Nyquist plots.

Hopsan models can be exported to Simulink. Plot data can be exported to XML, CSV, gnuplot and Matlab. Experiments with including the Hopsan simulation core to LabVIEW Simulation Interface Toolkit by using a wrapper library have been successful. Support for model exchange, both import and export, by using the Functional Mock-up Interface is currently being implemented.

Hopsan is a cross-platform project, with the intention of running on Windows, Unix and Macintosh systems. The current beta release is only available for Windows and Linux, but the intention is to create versions for the other systems as well. The transmission line element method is very suitable for parallel execution, due to physically motivated time delays between certain components. Hopsan has support for dividing simulations in separate threads, making it possible to take advantage of multicore processors.

Features in the graphical user interface include Python scripting, an undo/redo function, XML-based model and configuration files, hydraulic symbols according to the ISO 1219-1 standard and global system parameters that can be shared between components.

References

  1. ^ "HOPSAN website". Retrieved 2011-02-05.
  2. Krus, P.; Jansson, A.; Palmberg, J-O.; Weddfeldt, K. (1990). "Distributed Simulation of Hydromechanical Systems". Third Bath International Fluid Power Workshop.
  3. "OMEdit website". Retrieved 2011-11-06.
  4. Asghar, Syed Adeel; Tariq, Sonia (2010). Design and Implementation of a User Friendly OpenModelica Graphical Connection Editor (M.Sc. thesis). Linköping University.
  5. Larsson, L. Viktor (2017-08-17). Control Aspects of Complex Hydromechanical Transmissions: with a Focus on Displacement Control. Linköping University Electronic Press. ISBN 978-91-7685-483-9.
  6. Braun, R.; Nordin, P.; Eriksson, B.; Krus, P. (2011). "High Performance System Simulation Using Multiple Processor Cores". The Twelfth Scandinavian International Conference on Fluid Power.
  7. Axin, M.; Braun, R.; Dell'Amico, A.; Eriksson, B.; Nordin, P.; Pettersson, K.; Staack, I.; Krus, P. (2010). "Next Generation Simulation Software using Transmission Line Elements". Fluid Power and Motion Control.

External links

Categories: