data99
data99

Reputation: 59

Instantiation of equation

I am trying to model a pump system. The system consists of a controller, two ON/OFF valves, and a swept volume acting as a chamber. The controller is responsible for the state of the valves as well as filling the volume and pumping it. When connecting all the components together, i started getting errors saying " Failed to instantiate equation between components ", for example between the swept volume and the first valve. I tried to delete the valves from the whole system and connect the piston directly to the source, but i then got an error saying "Failed to instantiate equation .." between the piston displacment and its input.

I couldn't understand where is my problem to be exact. Is it with the model themselves that they cannot be connected together or am i missing something else?

I am not an expert in modelica obviously, but i got the basics of course.

To make things clearer, here's the link to my model:

https://www.dropbox.com/s/g9dr40jame3lk2n/pumpsystem.zip?dl=0

Any help would be appreciated.

Upvotes: 1

Views: 275

Answers (1)

marco
marco

Reputation: 6645

OpenModelica complains about obsolete connections. You have many connections in your model between components which don't exist anymore.

For example:

connect(ChamberController.PistonDisplacment, sweptVolume1.flange) annotation(...);
connect(close.on, ChamberController.deflate)  annotation(...);

To remove these connections, simply click the link in the Messages Browser, which will bring you directly to the correct position in the code.

enter image description here

Upvotes: 2

Related Questions