modelTeeJunctionVolume_withResistances

Tee with different-sized legs: mixed old-style and new-style branch resistances

Extends from TRANSFORM.Icons.Example (Icon for runnable examples).

Information

Unit test for TeeJunctionVolume_withResistances exercising its widened resistance interface. The three branch resistances mix both base-class families in a single tee:

  • resistance_1 – the default old-style PressureLoss (extends PartialResistance);
  • resistance_2 – a new-style Elbow (extends PartialResistancenew) on the through-run;
  • resistance_3 – a new-style SmoothAdaptor transitioning the 0.05 m junction down to a 0.02 m branch pipe — i.e. the "small pipe coming off the tee".

The inlet mass flow is ramped and splits between the two outlets according to the per-leg resistances, confirming that the tee now accepts resistances built on either base class through the shared PartialResistanceInterface constraint.

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem
TRANSFORM.Fluid.FittingsAndResistances.TeeJunctionVolume_withResistancesteeresistance_1: default (old-style) PressureLoss; resistance_2: new-style Elbow on the through-run; resistance_3: new-style SmoothAdaptor transitioning the 0.05 m junction to a 0.02 m branch pipe
Modelica.Fluid.Sources.MassFlowSource_TIN1
Modelica.Fluid.Sources.FixedBoundaryOUT2
Modelica.Fluid.Sources.FixedBoundaryOUT3
Modelica.Blocks.Sources.Rampinput_mflowInlet flow rate ramps up, splitting between the two outlets