Examples Folder

Base examples

The pyfmi example package.

Module fmi_bouncing_ball_cs

pyfmi.examples.fmi_bouncing_ball_cs.run_demo(with_plots=True, version='2.0')[source]

Demonstrates how to use PyFMI for simulation of Co-Simulation FMUs (version 1.0 or 2.0).

Module fmi_bouncing_ball

pyfmi.examples.fmi_bouncing_ball.run_demo(with_plots=True, version='2.0')[source]

Demonstrates how to use JModelica.org for simulation of ME FMUs version 1.0 and 2.0.

Module fmi_bouncing_ball_native

pyfmi.examples.fmi_bouncing_ball_native.run_demo(with_plots=True)[source]

This example shows how to use the raw (JModelica.org) FMI interface for simulation of an FMU.

FMU = bouncingBall.fmu (Generated using Qtronic FMU SDK (http://www.qtronic.de/en/fmusdk.html) )

This example is written similair to the example in the documentation of the ‘Functional Mock-up Interface for Model Exchange’ version 1.0 (http://www.functional-mockup-interface.org/)

Module fmi20_bouncing_ball_native

pyfmi.examples.fmi20_bouncing_ball_native.run_demo(with_plots=True)[source]

This example shows how to use the raw (JModelica.org) FMI interface for simulation of an FMU.

FMU = bouncingBall.fmu (Generated using Qtronic FMU SDK (http://www.qtronic.de/en/fmusdk.html) )

This example is written similar to the example in the documentation of the ‘Functional Mock-up Interface for Model Exchange’ version 2.0 (http://www.functional-mockup-interface.org/)

Module fmu_with_input

pyfmi.examples.fmu_with_input.run_demo(with_plots=True)[source]

Demonstrates how to simulate an FMU with inputs.

See also simulation_with_input.py

Module fmu_with_input_function

pyfmi.examples.fmu_with_input_function.run_demo(with_plots=True)[source]

Demonstrates how to simulate an FMU with an input function.

See also simulation_with_input.py