Questions tagged [pyfmi]

52 questions
0
votes
0 answers

error while loading fmu with pyfmi's method load_fmu

I try to load an FMU with PyFMI's load_fmu method. It throws the following Error: File "src\pyfmi\fmi.pyx", line 8109, in pyfmi.fmi.load_fmu pyfmi.fmi.FMUException: The FMU version could not be determined. Removing…
FelixS
  • 1
  • 1
0
votes
1 answer

How to initialize PYFMI models in parallel?

I am using pyfmi to do simulations with EnergyPlus. I recognized that initializing the individual EnergyPlus models takes quite some time. Therefore, I hope to find a way to initialize the models in parallel. I tried the python library…
Scrox
  • 169
  • 1
  • 1
  • 12
0
votes
1 answer

How to combine Python 3 with standard JModelica dependent on Python 2?

I would like to install Python 3 with PyFMI at my Windows computer where I already have JModelica 2.10 with Python 2. My idea is thus to compile Modelica models to FMUs in Python 2 as necessary but then develop scripts in Python 3 to run the FMUs…
janpeter
  • 681
  • 8
  • 22
0
votes
1 answer

How to export my OMNeT++ model as an FMU( Functional Mockup Unit)?

I am trying to co-simulate MATLAB and OMNeT++. For the co-simulation interface, I am using Ptolemy-VirGIL to connect the two models as FMUs. MATLAB export is quite easy but I cannot find a way to export my OMNeT++ model as an FMU. Kindly help.
Rajat Pratap
  • 29
  • 1
  • 5
0
votes
1 answer

OpenModelica and JModelica deliver significantly different results

Following this question, I'm trying to compare the results of the simulation between JModelica and OpenModelica. The Modelica file is identical to the above-mentioned post and the JModelica wrapper is the corrected version: #%% from pymodelica…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
0 answers

can't retrieve the results back from JModelica to Python

Following this question, I'm trying to compile and simulate a Modelica model with JModelica. The model is: package friction1D function coulombFriction input Real relVel; input Real shearForce; input Real normalForce; input Real…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
-2
votes
0 answers

Pyfmi one step simulation in a for loop?

I'm trying to perform step by step simulation of a fmu in a for loop. The goal is to dynamically change the input of the model coming from python while keeping variables states between loops. For now I am trying to simulate a battery fmu in a for…
Magleno
  • 1
  • 1
1 2 3
4