Questions tagged [dymola]

Dymola is a commercial modeling and simulation environment based on the open Modelica modeling language.

Dymola is a commercial modeling and simulation environment based on the open Modelica modeling language.

645 questions
0
votes
1 answer

How to understand the failure of solving nonlinear equation systems in the Modelica model?

With the following setup in Dymola, the model in Modelica Standard Library (Modelica.Fluid.Examples.HeatingSystem) would cause a lot of errors about failing to solve nonlinear equations, even though in the end, nonlinear solver handles this issue…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

How to add marks for new connections in the expandable connectors?

I got a model that uses the expandable connector as a signal bus, there are marks for each signal line, but when I connect a new block component to the signal bus, there is no mark. My question is : How could I add marks for new connections? I have…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

How to set the default solver in Dymola?

The default solver in Dymola is DASSL, how could I change the default solver in Dymola environment? Another question is : If I want to set a default solver for a particular model, how could I use annotation to do this?
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Solver of proof in Dymola

I am new with Dymola but do you know if a solver of proof exists in Dymola. I am looking for a solver like SLDV in Simulink. SLDV is used in order to identify hidden design errors in models. It can formally verify that the design meets functional…
Eloise
  • 37
  • 4
0
votes
0 answers

Why can Visual Studio 2017 Developer Command Promt only open "stdio.h" in Administrator mode?

I am trying to do simulation using Delmia. This requires a functioning C compiler. When i test my C compiler in Delmia, which tries to compile a very simple source file that includes stdio.h, I get the error "Cannot open include file: 'stdio.h': No…
Lars Lort
  • 23
  • 5
0
votes
0 answers

Dymola-Simulink interface: Error in newDymolaGuiJava

I am working on a model in Dymola and use the Dymola S-block in Simulink to compile the model and then run the model in Simulink. After a few compilations, the interface stops working with the error in the Matlab workspace as Error using…
0
votes
1 answer

Error during simulation using Newton solver in Dymola but end with success

I meet an error of using newton solver to solve nonlinear equation in Dymola, but the simulation ends with success, just like another question here, my question is: In the list of solvers, there is no newton solver, why would Dymola use newton…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

how to do multi-loop PID Tuning in the Modelica model?

Tuning the PID parameter is crucial in the control system development, here is an example of how to do this for just one PID controller. https://www.claytex.com/tech-blog/tuning-pid-gains-dymola-modelling/ But if there are multiple PID controllers…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Thermal Systems library - How to access gas under 200 K?

Im trying to develop a model of a tuna freezer that operates a low temperatures down to -90 degree Celsius. The process is LNG ca -140 degree Celsius -> air cycle ca. -120 degree Celsius -> dry air freezing chamber -90 degree Celsius. The problem Im…
0
votes
3 answers

how to connect multi-dimensional components with multi-dimensional connectors in Modelica?

I tried to connect a 2-dimensional component array to a 1-dimensional component array including 1-dimensional connectors, but when checking the model, there is an error showing unmatched dimensions. But I could connect a 1-dimensional component…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Why i met Division by zero error in this model under Modelica platform

I'm making the internal combustion engine model. And below is the error message i met. dymosim started ... "dsin.txt" loading (dymosim input file) The following error was detected at time: 0 Error: Singular inconsistent scalar system for der(u) = (…
JAGUN KOO
  • 135
  • 5
0
votes
1 answer

How can make the logic avoiding discrete derivative in the when clause in Modelica?

i'm making the logic calculating the p(pressure) of the internal combustion engine. equations consist of several cases called 'Period' in when clause. when Period==1 then p = pre(p) * ( T / pre(T)) ^( Gamma/(Gamma-1)); elsewhen Period==0 or…
JAGUN KOO
  • 135
  • 5
0
votes
1 answer

How to make Real value to circulate in the range in Modelica?

I'm coding the rotating machinery and using the Angle type value, converted from the time like the code below. der(thetta)=(180/pi)*from_rpm(omega) "convert time to Angle"; But, Using only this code, the angle value keep increasing. Then, How can…
JAGUN KOO
  • 135
  • 5
0
votes
1 answer

How to use Multiple And operator in the if statement in modelica?

I'm coding the LMTD method in the heat transfer and met some errors when using the and operators more than two times simultaneously. if (del_T1 > beta) and (del_T2 > beta) and (del_T1<>del_T2) then T_LMTD = (del_T1-del_T2) / ( (log(del_T1)) -…
JAGUN KOO
  • 135
  • 5
0
votes
1 answer

Labelling X and Y axis in Dymola plot

I have drawn a plot using "plotArrays" function in Dymola. I would like to label X-axis in meters(Ideally, I need it to be flexible so that I can later change it to millimeters, micrometers, etc..). I want to label Y-axis similarly in volts which I…