Giter VIP home page Giter VIP logo

beutlich / lastlib Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 2.0 2.06 MB

Modelica libraries for experimental tool-generic FMU import to solve the online-minimum problem (presented at the 17th meeting of the Modelica Users’ Group Saxony)

Home Page: https://tinyurl.com/lastlibfmu

License: BSD 2-Clause "Simplified" License

Modelica 67.50% Makefile 0.21% C 32.10% Gnuplot 0.19%
modelica fmi fmi-standard modelica-library

lastlib's Introduction

LastLib

Experimental Modelica library for tool-generic FMU import to determine the online-minimum of a transient variable. It was first presented at the 17th meeting of the Modelica Users’ Group Saxony.

Library description

LastLib consists of tool-specific Modelica wrappers for the imported Last.fmu to obtain the value of the last valid simulation step.

An overview of the library and early experiments is provided in

Thomas Beutlich. Experiments and an FMI Idea on the Online-Minimum Problem. Presentation given at the 17th Modelisax Meeting, Dresden, Germany, November 2017. URL: tinyurl.com/lastlibfmu.

Supported Modelica tools

  • Dymola (both Linux and Windows)
  • OpenModelica (with C runtime)
  • SimulationX

Example

The primary use-case of LastLib is the calculation of the online-minimum. The provided example model MinimumTest.Test demonstrates the usage of the LastLib within the minimum block MinimumTest.Minimum.

Minimum Plot

License

LastLib is released under the terms of the Simplified BSD License.

Acknowledgement

  • The Last.fmu is based on the FMU SDK.

Development and contribution

You may report any issues with using the Issues button.

Contributions in shape of Pull Requests are always welcome.

lastlib's People

Contributors

beutlich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lastlib's Issues

Start value of the minimum

Hi,

Thanks for the great library! I noticed after the latest commit that the computation of the minimum does not start from the specified y_start value. See the screenshot bellow. I get this result on Linux OM v1.16.5.

image

Call to fmiTerminate

When a simulation crashes (due to external reasons), I get the following output:

[ERROR][Last] [error][FMU status:Error] fmiTerminate: Illegal call sequence.

I guess it's not really a big deal, but maybe you want to know about it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.