Did I find the right examples for you? yes no

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

src/p/y/PyFMI-1.4/src/pyfmi/examples/fmi_bouncing_ball_native.py   PyFMI(Download)
import numpy as N
 
from pyfmi import load_fmu
 
curr_dir = O.path.dirname(O.path.abspath(__file__));
 
    #Load the FMU by specifying the fmu and the directory
    bouncing_fmu = load_fmu('bouncingBall.fmu',path_to_fmus_me1)
 
    Tstart = 0.5 #The start time.

src/p/y/PyFMI-1.4/src/pyfmi/examples/fmu_with_input_function.py   PyFMI(Download)
import pylab as p
 
from pyfmi import load_fmu
 
curr_dir = O.path.dirname(O.path.abspath(__file__));
 
    # Load the dynamic library and XML data
    model = load_fmu(fmu_name)
 
    # Simulate

src/p/y/PyFMI-1.4/src/pyfmi/examples/fmi_bouncing_ball_cs.py   PyFMI(Download)
import numpy as N
 
from pyfmi import load_fmu
 
curr_dir = O.path.dirname(O.path.abspath(__file__));
    """
    fmu_name = O.path.join(path_to_fmus,'bouncingBall.fmu')
    model = load_fmu(fmu_name)
 
    res = model.simulate(final_time=2.)

src/p/y/PyFMI-1.4/src/pyfmi/examples/fmi_bouncing_ball.py   PyFMI(Download)
import numpy as N
 
from pyfmi import load_fmu
 
curr_dir = O.path.dirname(O.path.abspath(__file__));
    """
    fmu_name = O.path.join(path_to_fmus,'bouncingBall.fmu')
    model = load_fmu(fmu_name)
 
    res = model.simulate(final_time=2.)

src/p/y/PyFMI-1.4/src/pyfmi/examples/fmu_with_input.py   PyFMI(Download)
import pylab as p
 
from pyfmi import load_fmu
 
curr_dir = O.path.dirname(O.path.abspath(__file__));
 
    # Load the dynamic library and XML data
    model = load_fmu(fmu_name)
 
    # Set the first input value to the model