modelSmoothAdaptor

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

Information

Unit test for SmoothAdaptor with a 15° cone half-angle. The port_a diameter is ramped from 0.005 m through the fixed port_b diameter (0.01 m) to 0.015 m, so the adaptor transitions from a contraction to an expansion (and the design flow switches between confuser and diffuser behaviour). Two parallel circuits are exercised: from_dp is pressure-driven and from_mflow is driven by a sinusoidal (sign-changing) mass flow rate, verifying both loss directions and flow reversal.

Components

TypeNameDefaultDescription
TRANSFORM.Fluid.FittingsAndResistances.SmoothAdaptorfrom_dp
Modelica.Fluid.Sources.FixedBoundaryOUT_dp
Modelica.Fluid.Sources.FixedBoundaryOUT_mflow
Modelica.Fluid.Sources.MassFlowSource_TIN_mflow
Modelica.Fluid.Sources.Boundary_pTIN_p
Modelica.Blocks.Sources.RealExpressioninput_p
Modelica.Blocks.Sources.Sineinput_mflow
Modelica.Fluid.Systemsystem
TRANSFORM.Fluid.FittingsAndResistances.SmoothAdaptorfrom_mflow
Modelica.Blocks.Sources.Rampdimension_aport_a diameter ramps through port_b (0.01) -> expansion then contraction