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 (extendsPartialResistance);resistance_2– a new-style Elbow (extendsPartialResistancenew) 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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.System | system | ||
| TRANSFORM.Fluid.FittingsAndResistances.TeeJunctionVolume_withResistances | tee | resistance_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_T | IN1 | ||
| Modelica.Fluid.Sources.FixedBoundary | OUT2 | ||
| Modelica.Fluid.Sources.FixedBoundary | OUT3 | ||
| Modelica.Blocks.Sources.Ramp | input_mflow | Inlet flow rate ramps up, splitting between the two outlets |