modelica-3rdparty / OpenHydraulics

A free Modelica package providing components describing 1-dimensional fluid flow in hydraulic circuits.
BSD 3-Clause "New" or "Revised" License
39 stars 25 forks source link

Problems using OpenHydraulics #18

Closed JanZepp closed 2 years ago

JanZepp commented 9 years ago

Hello,

I just started using Modelica and OpenHydraulics and have the following Problems:

Does an "Manual" (which describes the equations used and how to use the components) for this library exist?

I apologise for my bad English. Thank you very much Regards, Jan

xogeny commented 9 years ago

It would help if you indicated which Modelica tool you are using to compile and what models you are attempting to run.

JanZepp commented 9 years ago

Youre right, sorry. I am using OMEdit (should be ne newest Version). Models that don't work:

The junction element I mentioned can be found under Components > Lines > NJunction. I chose n_ports = 3 but there is no possibilty to connect the junction to anything else.

dietmarw commented 9 years ago

I'm afraid this might be (partly) down to OMC not supporting all Modelica features yet. You can find a detailed status of the library coverage on OM's test coverage page of this library: https://test.openmodelica.org/libraries/OpenHydraulics/BuildModelRecursive.html

JanZepp commented 9 years ago

Thank you for this hint. Do you know if it could be similar with the junctions? In the provided examples, junctions are used to split or combine several massflows. It may sound curious but I can't connect these junctions to other components. If i try to define the connection by clicking on the (e.g.) pump port at first and then on the junction, nothing happens (the line doesn't lock). So I tried to add the equations manually, e.g. connect(pump.portP, j1.port[1]) but it wasn't succesful, too.

JanZepp commented 9 years ago

This Problem is solved now. At first, I had to add the code manually (connect(tank1.port, j1.port[1])), afterwards, the connection can be done and the code, that was added manually can be removed again. Not very nice but it works

cparedis commented 9 years ago

Jan: Sorry to hear that you are running into problems. When the library was developed several years ago, it was tested with Dymola and everything worked well (to the best of my knowledge). I do know that the library relies on language features that are not yet fully supported by OpenModelica -- but I believe the library is part of their test suite and that they are working on it. Unfortunately, in my current position, I don't really have the time to debug the library further, especially not in a variety of different tools. I hope you understand.

* Chris *

Chris Paredis Professor of Mechanical Engineering, Woodruff Faculty Fellow Georgia Institute of Technology The G.W. Woodruff School of Mechanical Engineering The H.M. Stewart School of Industrial and Systems Engineering Director, Model-Based Systems Engineering Center 813 Ferst Drive, MARC Rm. 256 Atlanta, GA 30332-0405 E-mail: chris.paredis@me.gatech.edu Phone: +1 (404) 894-5613 http://www.mbsec.gatech.edu/users/cparedis/Calendar Assistant: Lynette McLeod, +1 (404) 894-0413

----- Original Message -----

From: "JanZepp" notifications@github.com To: "cparedis/OpenHydraulics" OpenHydraulics@noreply.github.com Sent: Tuesday, October 6, 2015 5:32:12 AM Subject: [OpenHydraulics] Problems using OpenHydraulics (#18)

Hello, I just started using Modelica and OpenHydraulics and have the following Problems:

  • lots of the examples (Folder circuits) don't work. It seems that there are more variables than equations
  • I can't connect junction components (neither graphically nor by adding the code manually)
  • using the circuitTank always leads to a error message like "V_actual < V_max"

Does an "Manual" (which describes the equations used and how to use the components) for this library exist? I apologise for my bad English. Thank you very much Regards, Jan — Reply to this email directly or view it on GitHub .

JanZepp commented 9 years ago

Thank you very much for the quick support! OM seems to have a great community :+1: I think it will be the best to start creating my own library that consists only of the elements I really need. And also for this task, the OpenHydraulics-library is a good guide.

So, thanks again. Jan

cparedis commented 9 years ago

Great. Yes, feel free to borrow any part of the library you feel will help your effort.

* Chris *

Chris Paredis Professor of Mechanical Engineering, Woodruff Faculty Fellow Georgia Institute of Technology The G.W. Woodruff School of Mechanical Engineering The H.M. Stewart School of Industrial and Systems Engineering Director, Model-Based Systems Engineering Center 813 Ferst Drive, MARC Rm. 256 Atlanta, GA 30332-0405 E-mail: chris.paredis@me.gatech.edu Phone: +1 (404) 894-5613 http://www.mbsec.gatech.edu/users/cparedis/Calendar Assistant: Lynette McLeod, +1 (404) 894-0413

----- Original Message -----

From: "JanZepp" notifications@github.com To: "cparedis/OpenHydraulics" OpenHydraulics@noreply.github.com Cc: "Chris Paredis" chris.paredis@me.gatech.edu Sent: Saturday, October 10, 2015 6:36:19 AM Subject: Re: [OpenHydraulics] Problems using OpenHydraulics (#18)

Thank you very much for the quick support! OM seems to have a great community :+1: I think it will be the best to start creating my own library that consists only of the elements I really need. And also for this task, the OpenHydraulics-library is a good guide. So, thanks again. Jan — Reply to this email directly or view it on GitHub .