Questions tagged [jmodelica]

An extensible Modelica-based open source platform for optimization, simulation, and analysis of complex dynamic systems.

From the docs:

JModelica.org is an extensible Modelica-based open source platform for optimization, simulation and analysis of complex dynamic systems. The main objective of the project is to create an industrially viable open source platform for optimization of Modelica models, while offering a flexible platform serving as a virtual lab for algorithm development and research.

JModelica.org is distributed under the GPL v.3 license approved by the Open Source Initiative.

JModelica.org at a glance:

  • Model your systems using the object-oriented and equation-based language Modelica
  • Solve your complex simulation and optimization problems using state of the art numerical algorithms
  • Automate your work in the Python scripting environment
  • Visualize your results
111 questions
7
votes
3 answers

How to construct a balanced connector for liquids in Modelica?

Status of the post: 200313 Got an answer with code DEMO_v42 that I accept for the bounty! 200310 I comment on two key papers suggested yesterday. Still do not understand how to update DEMO_v41. 200309 I want to underline that the key problem is how…
janpeter
  • 681
  • 8
  • 22
7
votes
1 answer

What are the differences between diffferent Modelica Simulation Environments?

There are different Modelica Simulation Environments, including Dymola, Wolfram SystemModeler, OpenModelica, and Jmodelica. So, I try to load a thermal fluid library(ThermoSysPro https://github.com/Dwarf-Planet-Project/ThermoSysPro), but except…
Jack
  • 1,094
  • 6
  • 16
6
votes
3 answers

Replacement of deprecated function cardinality(c) in Modelica

In the documentation it is indicated, that cardinality() function is deprecated and should no longer be used. However, it is still used in the libraries such as ThermoSysPro. e.g. if (cardinality(C) == 0) then some code end if; where C is…
Tomillo
  • 157
  • 7
5
votes
2 answers

Sensitivity Analysis using PyFMI - FMU in for-loop

Main goal Sensitivity analysis of a district heating network. Approach Modelica model of the system (in Dymola) using the AixLib and BuildingSystem libraries Export model as FMU co-simulation Use SALib (sensitivity analysis python library) to…
T. Sergi
  • 203
  • 2
  • 9
5
votes
1 answer

Python/Pyomo error within JModelica

I have installed a commercial solver package (OCT) for JModelica (python-based) --> When I want to open JModelica via "Ipython" i get the following error message: Traceback (most recent call last): File…
AssMero
  • 239
  • 1
  • 5
5
votes
1 answer

FMU Export of Python Code or Python Interface with FMI Standard for Use in EnergyPlus Co-Simulation

My research group has developed python code for a new building component that we would like to co-simulate with EnergyPlus. For reuseability and market impact we would like this connection to be as easy as possible for inexperienced users and…
Justin Shultz
  • 199
  • 1
  • 11
4
votes
2 answers

Multidimensional Tables in Modelica Block

I started to use openmodelica few days ago. I created a lot of tables where Data is defrost efficiency, first row is Air temperature which is my first input and first column is Leaving water temperature from the condenser which is my second input.…
dav
  • 41
  • 3
4
votes
2 answers

Setting up Jupyter Notebook for JModelica

I would like to use Jupyter Notebook for editing JModelica python scripts; however after installing, the Jupyter notebook cannot locate key libraries, such as pymodelica. Here is the process I followed to install Jupyter Notebook for JModelica…
alkey
  • 986
  • 4
  • 16
  • 33
4
votes
1 answer

Saving only the relevant variables in the JModelica output files

I have noticed that the output file from JModelica saves everything, which means that the complex models create enormous files, particularly for long simulations. Is it possible to only save the relevant variables in the output file? I have read…
alkey
  • 986
  • 4
  • 16
  • 33
4
votes
1 answer

Repeated components with pattern dependent parameters

Imagine there is a repeating pattern of components (e.g., dynamic pipe) which has a parameter (e.g., length) which will change depending on where in the pattern it resides. I proposed that it might be possible by omitting the "each" prefix before…
Scott G
  • 2,194
  • 1
  • 14
  • 24
3
votes
3 answers

JModelica on Ubuntu 18.04

Hello JModelica community. I already managed to compile JModelica on CentOS, but I am still failing on Ubuntu 18.04. The compilation itself is successful, but running from pyjmi.examples import cstr_casadi cstr_casadi.run_demo() fails…
Yannick
  • 177
  • 1
  • 10
3
votes
1 answer

JModelica combined with CasADi to get linearized models in Python

I recently found the paper "MAKING MODELICA MODELS AVAILABLE FOR ANALYSIS IN PYTHON CONTROL SYSTEMS LIBRARY" explaining how to use JModelica in combination with CasADi to get linearized models in Python. This is exactly what I am looking for, but…
Yannick
  • 177
  • 1
  • 10
3
votes
1 answer

Pause JModelica and Pass Incremental Inputs During Simulation

Hi Modelica Community, I would like to run two models in parallel in JModelica but I'm not sure how to pass variables between the models. One model is a python model and the other is an EnergyPlusToFMU model. The examples in the JModelica…
Justin Shultz
  • 199
  • 1
  • 11
3
votes
1 answer

Access to verified function libraries (e.g., bessel functions) in Dymola/Modelica

I am in need of Bessel functions in Modelica along with a host of possible functions in the future that already exist in external C/Fortran/Python/etc libraries. I know there is some sort of ability to call external functions as that is how LAPACK…
Scott G
  • 2,194
  • 1
  • 14
  • 24
3
votes
1 answer

Modelica Standard Library component AbruptAdaptor

Tested with: MSL Versions: 3.2.1, 2013-08-14, build 2 (2013-08-14 08:44:41Z) 3.2.1, 2013-08-14, build 4 (2015-09-30 09:15:00Z) Below is a model with 4 components: Mass flow source (M_bound) AbruptAdapter (abruptAdapter) Dynamic Pipe…
Scott G
  • 2,194
  • 1
  • 14
  • 24
1
2 3 4 5 6 7 8