Questions tagged [pymodelica]
5 questions
2
votes
1 answer
Can we model compressor without outlet boundary condition?
I am modelling a compressor with input taken from the source ( p = 1 atm, T =25 C). I want the compressor to calculate the outlet pressure( given that pressure ratio rp = 6); The code attached here. Can anyone help me?
model Compressor332 "Generic…
2
votes
2 answers
Error calling / running Model via OMShell & OMPython - OpenModelica
I am using the Dimensions model for placing parameters of the system that I use in many different models and call them by using extend, instead of declaring them again for each model. This is a simple example, but in reality, I have the way more of…

Tomillo
- 157
- 7
1
vote
1 answer
Compile modelica to FMU in (open-source and in batch)
A long time ago, I used JModelica/pymodelica to compile modelica models into FMUs, using a simple python script. Now I learn that JModelica is discontinued as an open-source project. (The libraries to run an FMU seems to have been branched out into…

George
- 11
- 3
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