Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Simulation pump error process crashed

Simulation pump error process crashed

Hello,

I begin with Modelica. I must simulate a power plant with boiler, condenser, turbine and pump. Also I am trying to simulate only one pump but I have a error message :
Process crashed
Simulation process exited with code -1

I don't understand why.

My model is

model pompe
  ThermoPower.Water.SourcePressure sourcepressure1(use_in_p0 = true, use_in_h = true, p0 = 10000000) annotation(Placement(visible = true, transformation(origin = {-40,0}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  ThermoPower.Water.ThroughMassFlow throughmassflow1(w0 = 200, use_in_w0 = true) annotation(Placement(visible = true, transformation(origin = {0,0}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  ThermoPower.Water.Pump pump1(V = 0.01, hstart = 0, wstart = 0, usePowerCharacteristic = false, n0 = 120, w0 = 200, dp0 = 3000000, redeclare function flowCharacteristic = ThermoPower.Functions.PumpCharacteristics.quadraticFlow(q_nom = {0,0.001,0.0015}, head_nom = {60,30,0}), initOpt = ThermoPower.Choices.Init.Options.steadyState) annotation(Placement(visible = true, transformation(origin = {40,0}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  ThermoPower.Water.SinkPressure sinkpressure1(use_in_p0 = true, p0 = 1000000) annotation(Placement(visible = true, transformation(origin = {80,0}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  Modelica.Blocks.Sources.Constant pressure_in(k = 100000) annotation(Placement(visible = true, transformation(origin = {-60,40}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  Modelica.Blocks.Sources.Constant enthalpy_in(k = 1000000) annotation(Placement(visible = true, transformation(origin = {-60,80}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  Modelica.Blocks.Sources.Constant massflow_in(k = 150) annotation(Placement(visible = true, transformation(origin = {-20,80}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  inner ThermoPower.System system annotation(Placement(visible = true, transformation(origin = {-80,-80}, extent = {{-10,-10},{10,10}}, rotation = 0)));

  Modelica.Blocks.Sources.Constant pressure_out(k = 600000) annotation(Placement(visible = true, transformation(origin = {60,80}, extent = {{-10,-10},{10,10}}, rotation = 0)));
equation
  connect(pressure_out.y,sinkpressure1.in_p0) annotation(Line(points = {{71,80},{75.98569999999999,80},{75.98569999999999,8.960570000000001},{75.98569999999999,8.960570000000001}}));
  connect(massflow_in.y,throughmassflow1.in_w0) annotation(Line(points = {{-9,80},{-3.89118,80},{-3.89118,7.13382},{-3.89118,7.13382}}));
  connect(enthalpy_in.y,sourcepressure1.in_h) annotation(Line(points = {{-49,80},{-35.8312,80},{-35.8312,10.0522},{-35.8312,10.0522}}));
  connect(pressure_in.y,sourcepressure1.in_p0) annotation(Line(points = {{-49,40},{-44.1,40},{-44.1,10.7007},{-44.1,10.7007}}));
  connect(pump1.outfl,sinkpressure1.flange) annotation(Line(points = {{46,7},{68.5796,7},{68.5796,0.860832},{68.5796,0.860832}}));
  connect(throughmassflow1.outlet,pump1.infl) annotation(Line(points = {{10,0},{31.2769,0},{31.2769,1.72166},{31.2769,1.72166}}));
  connect(sourcepressure1.flange,throughmassflow1.inlet) annotation(Line(points = {{-30,0},{-9.18221,0},{-9.18221,-0.573888},{-9.18221,-0.573888}}));
  annotation(Icon(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})), Diagram(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})));
end pompe;


Thank you for your help

There are 0 guests and 0 other users also viewing this topic
You are here: