-1

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 outlet. The total volume of the vessel is constant. Looks simple but stuck with the duality gaz/liquid.

desertnaut
  • 57,590
  • 26
  • 140
  • 166
  • 1
    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Sep 22 '21 at 11:03

1 Answers1

3

It's hard to provide any advice without your code. However, pressure vessels have been modelled in Modelica before and you could take inspiration from the following free libraries:

  • TRANSFORM: e.g. models in TRANSFORM.Fluid.Volumes
  • ThermoPower: e.g. ThermoPower.Water.Accumulator.mo
  • Buildings: e.g. model Buildings.Fluid.Storage.ExpansionVessel.mo
Rene Just Nielsen
  • 3,023
  • 12
  • 15