Git Product home page Git Product logo

fmi-cloud-tutorial's Introduction

FMI in the Cloud

This repository contains the materials and instructions for the tutorial FMI in the Cloud at the 14th International Modelica Conference 2021.

Prerequesites

  • a Google account to run the Python Notebook on Google Colab
  • a clone or local copy of this repository
  • a GitHub account to fork this repository
  • a Conda environment with FMPy to run the Jupyter Notebook locally and to run the Web App
  • a Python IDE or text editor to write the Web App

To create the Conda environment

  • install Miniconda (if you don't already have Conda installed)

  • create a new Conda environment

conda create -n fmi-tutorial -c conda-forge python=3.9 fmpy
  • activate the environment
conda activate fmi-tutorial

Part 1: Create a Jupyter Notebook

Option 1: run the Jupyter Notebook on the cloud

Option 2: run the Jupyter Notebook locally

  • change into the directory where you downloaded or cloned this repository and run
jupyter Heater.ipynb

Part 2: Create a Web App

Resources and inspirations:

Exercises:

  • change the default simulation time to 50 s
  • change the result variables
  • add an additional parameter
  • add the description from the modelDescription.xml below the image
  • create a custom input signal
  • deploy the web app

Part 3: Hackathon and Q&A

Build your own Jupyter Notebooks and Web Apps and ask any questions about FMPy.

  • explore the test FMUs in the FMI Cross-Check
  • fork this repository and share your results!

fmi-cloud-tutorial's People

Contributors

t-sommer avatar

Watchers

 avatar

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.