Fluid Connectors - Incompressible

Gallery
Tutorial
Click on the image to view it full size

The Modelica By Example target code is:


connector Incompressible
    Modelica.SIunits.Pressure p;
    flow Modelica.SIunits.VolumeFlowRate q;
end Incompressible;
An equivalent Modelica connector VolumeFlowElement can be generated via SysPhS as part of a minimal incompressible fluid system:

model IncompressibleContext
  IncompressibleContext _IncompressibleContext;
  model IncompressibleContext
    IncompressibleA a;
    IncompressibleB b;
  equation
    connect(a.io,b.io);
  end IncompressibleContext;
  model IncompressibleA
    VolumeFlowElement io;
  end IncompressibleA;
  model IncompressibleB
    VolumeFlowElement io;
  end IncompressibleB;

  connector VolumeFlowElement
    flow VolumeFlowRate q;
    Pressure p;
  end VolumeFlowElement;

  type VolumeFlowRate=Real(unit="m³/s");
  type Pressure=Real(unit="Pa");
end IncompressibleContext;

Note that in order to be a valid ConservedQuantityKind the Volume from the SysPhS library must in fact be incompressible volume, although this is not otherwise documented.

Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)
External links