All Projects → NTNU-IHB → FMU-proxy

NTNU-IHB / FMU-proxy

Licence: MIT License
Tool that allows Functional Mock-up Units (FMUs) to be accessed through language independent RPC calls by wrapping the original FMU into a new one with network capabilities.

Programming Languages

kotlin
9241 projects
Thrift
134 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to FMU-proxy

RaPId
RaPId (a recursive acronym for "Rapid Parameter Identification") utilizes different optimization and simulation technologies to provide a framework for model validation and calibration of any kind of dynamical systems, but specifically catered to power systems.
Stars: ✭ 35 (-7.89%)
Mutual labels:  fmi, fmu, fmi-standard
awesome-fmi
A curated list of Functional Mock-up Interface (FMI) libraries, tools and resources.
Stars: ✭ 86 (+126.32%)
Mutual labels:  fmi, fmu, fmi-standard
FMI4j
FMI4j is a software package for dealing with Functional Mockup Units (FMUs) on the JVM
Stars: ✭ 17 (-55.26%)
Mutual labels:  fmi, fmu, fmi-standard
FMUComplianceChecker
FMI Compliance Checker for validation of FMUs 1.0 and 2.0
Stars: ✭ 33 (-13.16%)
Mutual labels:  fmi, fmi-standard
JuliaFMI
Simulator for FMUs in Julia (WIP)
Stars: ✭ 20 (-47.37%)
Mutual labels:  fmi, fmu
fmi-standard.org
Website of the Functional Mock-up Interface (FMI)
Stars: ✭ 34 (-10.53%)
Mutual labels:  fmi, fmi-standard
cocolian-rpc
使用Apache Thrift作为容器,Google Protobuf作为协议的一个RPC框架。
Stars: ✭ 19 (-50%)
Mutual labels:  rpc, apache-thrift
modest-py
FMI-compliant Model Estimation in Python
Stars: ✭ 40 (+5.26%)
Mutual labels:  fmi, fmu
moleculer-go
moleculer go implementation
Stars: ✭ 17 (-55.26%)
Mutual labels:  rpc
spring-boot-protocol
springboot功能扩充-netty动态协议,可以支持各种网络协议的动态切换(单端口支持多个网络协议).支持mmap,sendfile零拷贝,http请求批量聚合
Stars: ✭ 68 (+78.95%)
Mutual labels:  rpc
simple-rpc-plus
使用netty和zookeeper技术实现的远程调用框架
Stars: ✭ 16 (-57.89%)
Mutual labels:  rpc
Python-notes
Python related technologies used in work: crawler, data analysis, timing tasks, RPC, page parsing, decorator, built-in functions, Python objects, multi-threading, multi-process, asynchronous, redis, mongodb, mysql, openstack, etc.
Stars: ✭ 104 (+173.68%)
Mutual labels:  rpc
tidalRPC
Discord Rich Presence for Tidal
Stars: ✭ 15 (-60.53%)
Mutual labels:  rpc
polix
🚀 Node.js Web Framework
Stars: ✭ 32 (-15.79%)
Mutual labels:  rpc
rpcq
The RPC framework and message specification for @rigetti Quantum Cloud Services.
Stars: ✭ 67 (+76.32%)
Mutual labels:  rpc
Pudding
Pudding 是一款迷你级分布式服务框架
Stars: ✭ 24 (-36.84%)
Mutual labels:  rpc
thinkgo
Public libraries and components for glang development.
Stars: ✭ 14 (-63.16%)
Mutual labels:  rpc
wapc-rust
Rust-based WebAssembly Host Runtime for waPC-compliant modules
Stars: ✭ 75 (+97.37%)
Mutual labels:  rpc
csgo richpresence
Discord Rich Presence support for Counter-Strike: Global Offensive!
Stars: ✭ 16 (-57.89%)
Mutual labels:  rpc
electron-ipc-bus
An IPC bus for Electron.
Stars: ✭ 23 (-39.47%)
Mutual labels:  rpc

FMU-proxy (work in progress)

License: MIT contributions welcome

Join the chat at https://gitter.im/NTNU-IHB/FMU-proxy CI

The main goal of the Functional Mock-up Interface (FMI) standard is to allow simulation models to be shared across tools. To accomplish this, FMI relies on a combination of XML-files and compiled C-code packaged in a zip archive. This archive is called a Functional Mock-up Unit (FMU) and uses the extension .fmu. In theory, an FMU can support multiple platforms, however this is not always the case and depends on the type of binaries the exporting tool was able to provide. Furthermore, a library providing FMI support may not be available in a particular language or platform, and/or it may not support the whole standard. Another issue is related to the protection of Intellectual Property (IP). While an FMU is free to only provide the C-code in its binary form, other resources shipped with the FMU may be unprotected.

In order to overcome these challenges, we present an open-source framework for working with FMUs across languages and platforms.

FMU-proxy is different from other frameworks for distributed FMU invocations such as DACCOSIM, FMI GO! and Coral in that it completely separates itself from the master algorithm (logically and physically). FMU-proxy is a completely standalone project, which provides access to FMUs over the wire. And just that.

The idea is that other applications should use FMU-proxy whenever FMUs are required to run distributed, rather than having each application creating their own solution.


fmu-proxify

fmu-proxify is a CLI that transforms a co-simulation FMU compatible with either version FMI 1.0 or 2.0 into a proxified version of the same FMU. Internally, the proxy FMU wraps the original FMU in a server program. Each new instance of the original FMU runs in a separate process.

This allows you to:

  • Import FMI 1.0 models in software that otherwise only supports FMI 2.0.
  • Instantiate multiple instances of FMUs that only allows one instance per process.
  • The ability to run the FMU on some remote resource
    • Which in turn allows FMUs to run on otherwise unsupported platforms.
Usage: fmu-proxify [-h] [-d=<destFile>] [-r=<remoteAddress>] FMU-FILE
      FMU-FILE            Path to the FMU to proxify.
  -d, --dest=<destFile>   Where to save the FMU (defaults to current folder).
  -h, --help              Print this message and quits.
  -r, --remote=<remoteAddress>
                          Optional host to connect to. e.g. 127.0.0.1:9090

By default, the generated FMU seemingly behaves like a regular FMU. However, internally the FMU is communicating with the original FMU over TCP/IP. When targeting localhost, this all happens automatically.

To install the necessary tools, run ./gradlew build. The CLI tool is then located under fmu-proxify/build/install
Likewise, the booter executable needed to spawn processes on a different computer when not targeting localhost is located under fmu-proxy-booter/build/install

Running the FMU on another computer

  1. The target computer needs to start fmu-proxy-booter
    ./fmu-proxy-booter <port>

  2. Generate the FMU with the option --remote <hostname:port>
    (or modify proxySettings.txt inside an existing FMU)

  3. Load the FMU as usual.

Environment setup

FMU-proxy relies on Java and thus requires a suitable environment to run.

Windows
  1. JAVA_HOME should point to a JDK8+ installation.
  2. %JAVA_HOME%\jre\bin\server must be added to PATH.
Linux

On linux things should just work after installing the JDK.

Publications


Want to import FMUs in C++? Check out FMI4cpp
Want to develop or import FMUs in Java? Check out FMI4j
Want to develop FMUs in Python? Check out PythonFMU
Need a complete co-simulation framework with SSP support? Check out Vico

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].