Questions tagged [modelica]

Modelling language for multi-domain physical and control systems.

The free Modelica language is developed by the non-profit Modelica Association. The Modelica Association also develops the free Modelica Standard Library.

1319 questions
-1
votes
1 answer

Pressurized vessel in modelica

I've been trying to create a pressurized vessel in openmodelica but i'm stuck. The block i'm trying to build is a simple vessel for liquid pressurized by gas. So two input ports (liquid input, gas input) and an output port for pressurized liquid…
-1
votes
1 answer

Classes in Modelica

I have a complex model in Modelica. As I have lots of components in my model, I want to define classes and include some components inside the classes to reduce the complexity of the model. Since I couldn`t find online an example of the use of…
Ulugbey
  • 21
  • 5
-1
votes
1 answer

Generating two random time depedant veariables with different sample periods

Following this question, I'm trying to generate two time-dependent random functions omega1 and tau using this example. The difference is that I need to have two different sample periods of 0.05 and 0.17 for omega1 and tau respectively. I just…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
-1
votes
1 answer

Modelica Flow Simulation says divide by zero

I am trying to simulate the flow in a pipe that starts out partially full, and gradually fills up. Once it is full, the flow equation needs to change. I have tried the following code, but I get a divide by zero error once the pipe is full. …
Adam
  • 742
  • 1
  • 6
  • 23
-1
votes
1 answer

Modelica SemiLinear()

Anyone who knows well Modelica Language, specifically thermo-fluid toolbox? Often there is a semiLinear() function, used to calculate the flow of enthalpy, as it depends flow direction. Anyone who knows the details of this function, if we can…
-1
votes
1 answer

How to extract values from algorithm section?

I'm working with parabolic PDE's mixed with algebraic equation plus all these equation are coupled. I used Euler Method (Dassl is too slow) and big tolerance(for fast simulation) and recive error (for both types) in OM(1.9.1)(" residualFcn[some…
Anel
  • 121
  • 1
  • 2
  • 12
-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
-2
votes
1 answer

What is the problem with this model ? 4D matrix interpolation

I want to create a 4d matrix and interpolate. Dymola shows me this error for all interp values. interpX1 (line 40, column 10: erstellte_Bauteile.QuadriLinearInterpolation) Expected one…
Alex
  • 43
  • 4
-2
votes
1 answer

Error: Compilation of C code failed - Modelica

when I compile my code in Modelica, I get following error: Command Compile failed with following error: User error: ERROR: java exception in com.modelon.oct.modelica.api.InternalAPIException with message: Compilation of generated C code failed I…
alimuradpasa
  • 135
  • 1
  • 10
-2
votes
2 answers

Dymola Issue: "Dymosim.exe has stopped working"

I am running large-scale thermal-fluid system simulation with Dymola 2012. At the end of simulation I received the following warning message: "Dymosim.exe has stopped working". I could workaround this by clicking the "Close program" (another option…
-3
votes
1 answer

Is there an open-source heat exchanger library written in Modelica?

Is there an open-source heat exchanger library written in Modelica which covers different types of heat exchangers? Like on this web page https://en.wikipedia.org/wiki/Heat_exchanger
Jack
  • 1,094
  • 6
  • 16
1 2 3
87
88