modelAdiabatic

Adiabatic process

Extends from ThermofluidStream.Interfaces.SISOFlow (Base Model with basic flow eqautions for SISO).

Information

Adiabatic process suitable for modeling both hydraulic pumps and turbines (incompressible media) as well as compressors, blowers, fans, and turbines (compressible media) with a fixed isentropic efficiency eta_is.

The following quantities can be specified either as parameters or as time-varying input signals:

  • Pressure difference: dp = p_out - p_in
  • Pressure ratio: pRatio = p_out / p_in
  • Outlet pressure: p_out

Different assumptions can be used to calculate the adiabatic reversible reference process, see UsersGuide.AdiabaticThermodynamicModels.

The power can optionally be an EnergyFlowInput or an EnergyFlowOutput; see UsersGuide.EnergyFlow for details. During simulation, the physical positive direction of power is visualized on the icon layer by an orange arrow.

The model supports four possible operating modes:

  1. If the outlet state is set and the power is not an input, the model is balanced.
    In this case, the power P is computed from the given specific enthalpy difference dh and mass flow rate m_flow: P = m_flow*dh.
  2. If the outlet state is set and the power is an input, the model is locally overdetermined.
    This condition is indicated by a plus symbol on the icon layer. The mass flow rate is then computed from the given power P and specific enthalpy difference dh: m_flow = P/dh. In this case zero specific enthalpy difference dh = 0 can cause the simulation to fail. To obtain an overall balanced system, a locally underdetermined component, such as Sink_free , must be connected.
  3. If the outlet state is not set and the power is an input, the model is balanced.
    In this case, the specific enthalpy difference dh is calculated from the given mass flow rate m_flow and power P: dh = P/m_flow. In this case, zero mass flow rate m_flow = 0 can cause the simulation to fail. Determining the outlet pressure p_out from dh introduces one implicit nonlinear equation. This implicit equation can be avoided by enabling enableFilter. The filter behavior can be tuned using the time constant TC, the nominal pressure difference dp_nom, and the nominal power P_nom. Note that all three parameters are signed quantities.
  4. If the outlet state is not set and the power is not an input, the model is not permissible.
    In this case, both the power P and the specific enthalpy difference dh are unknown, and the equation P = m_flow*dh cannot be balanced. This condition is indicated by a prominent red lightning symbol.

Further assumptions for the adiabatic process:

  • Steady-state conditions: dE_sys/dt = 0, dm_sys/dt = 0
  • No heat transfer: Q_flow = 0
  • Losses accounted for via isentropic efficiency: eta_is
  • No net external forces on the system: The control volume is not subject to acceleration as a rigid body, i.e. \sum F_external = 0.
  • Rigid boundary, no expansion work: w_exp = 0
  • Negligible kinetic and potential energy changes: Differences between inlet and outlet are neglected, i.e. g*z_2 + 1/2*c_2^2 ≈ g*z_1 + 1/2*c_1^2.
  • Constant composition: No change in species mass fractions across the control volume, i.e. X_in = X_out.

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
BooleaniconIsCompressioniconType == ThermofluidStream.Idealized.Types.Icons.PressureChange.Compression= true, if iconType == Compression; auxiliary variable
Medium.SpecificEnergyeps_dhModelica.Constants.eps
SI.MassFlowRateeps_m_flowModelica.Constants.eps
SI.HeatFlowRateeps_PModelica.Constants.eps
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Advanced
BooleanconsiderInertance (from SISOFlow)dropOfCommons.considerInertance=true, if transient momentum (inertance) term is considered; disable only for advanced use
Utilities.Units.InertanceL (from SISOFlow)dropOfCommons.LInertance
StateSelectm_flowStateSelect (from SISOFlow)StateSelect.defaultState selection for mass flow rate
Booleanclip_p_out (from SISOFlow)= false, if dr_corr=0 (correction of inertial pressure difference)
Medium.AbsolutePressurep_min (from SISOFlow)dropOfCommons.p_minMinimum steady-state output pressure
Initialization › Mass flow rate
InitializationMethodsinitM_flow (from SISOFlow)ThermofluidStream.Utilities.Types.InitializationMethods.noneInitialization method for mass flow rate
SI.MassFlowRatem_flow_0 (from SISOFlow)0Initial value for mass flow rate
Utilities.Units.MassFlowAccelerationm_acceleration_0 (from SISOFlow)0Initial value for derivative of mass flow rate
Specification
IconTypeiconTypeThermofluidStream.Idealized.Types.Icons.PressureChange.CompressionDefines the initial icon prior to simulation
OutletSpecificationoutletSpecThermofluidStream.Idealized.Types.OutletSpecification.Adiabatic.PressureDifferenceQuantity used to define the outlet state
ValueSpecificationoutletValueSpecThermofluidStream.Types.ValueSpecification.FixedSpecifies whether the quantity is fixed or prescribed
SI.PressureDifferencedp_fixed0Fixed pressure difference (dp = p_out - p_in)
RealpRatio_fixed1Fixed pressure ratio (pRatio = p_out/p_in)
Medium.AbsolutePressurep_out_fixedMedium.p_defaultFixed outlet pressure
Advanced specification
PowerSignalpowerSignalThermofluidStream.Idealized.Types.EnergyFlowSignalMode.DisabledPower signal configuration
BooleanspecifyOutlettrue= true, if the outlet state is explicitly specified
Efficiency
ValueSpecificationetaSpecThermofluidStream.Types.ValueSpecification.FixedSpecifies whether the isentropic efficiency is fixed or prescribed
SI.Efficiencyeta_fixed1Fixed isentropic efficiency
Outlet pressure filter (for specifyOutlet == false and powerSignal == Input)
BooleanenableFiltertrue=true to enable a first order filter for the outlet pressure
SI.TimeTC1Filter time constant
SI.PowerP_nom1000Nominal power (influences filter time constant)
SI.PressureDifferencedp_nom1e5Nominal pressure difference (influences filter time constant)
SI.PressureDifferencedp_start0Pressure difference start value (filter initialization)
Warnings
AssertionLevelassertionLevelAssertionLevel.warningAssertion level (pressure drop)
Layout › Display parameters
BooleanshowOutletSpecificationtrue= true to show the fixed outlet specification value (either dp_fixed, pRatio_fixed or p_out_fixed)
BooleanshowEfficiencytrue= true to show the fixed isentropic efficiency value eta_is_fixed
BooleanshowPowerDirectiontrue= true to show the actual power direction

Connectors

TypeNameDefaultDescription
Inletinlet (from SISOFlow)
Outletoutlet (from SISOFlow)
Modelica.Blocks.Interfaces.RealInputoutletSpec_prescribedPrescribed outlet specification [SI-units]
Modelica.Blocks.Interfaces.RealInputeta_prescribedPrescribed isentropic efficiency [-]
EnergyFlow.Interfaces.EnergyFlowInputP_inP_in_internalPower (dircted into the system) [W]
EnergyFlow.Interfaces.EnergyFlowOutputP_out-PPower (directed out of the system) [W]

Components

TypeNameDefaultDescription
SI.MassFlowRatem_flow (from SISOFlow)inlet.m_flowMass flow rate
SI.Pressuredr_corr (from SISOFlow)Correction of inertial pressure difference
SI.Pressuredp (from SISOFlow)Pressure difference
Medium.AbsolutePressurep_in (from SISOFlow)Medium.pressure(inlet.state)Inlet pressure
Medium.SpecificEnthalpyh_in (from SISOFlow)Medium.specificEnthalpy(inlet.state)Inlet specific enthalpy
Medium.MassFraction[Medium.nXi]Xi_in (from SISOFlow)Medium.massFraction(inlet.state)Inlet mass fractions
Medium.AbsolutePressurep_out (from SISOFlow)Outlet pressure
Medium.SpecificEnthalpyh_out (from SISOFlow)Outlet specific enthalpy
Medium.MassFraction[Medium.nXi]Xi_out (from SISOFlow)Outlet mass fractions
SI.Efficiencyeta_isIsentropic efficiency
SI.SpecificEnthalpydhDifference in specific enthalpy dh = h_out - h_in
RealpRatiop_out/p_inPressure ratio
SI.PowerPPower (technical work flow rate)
SI.PowerP_in_internalPower directed into the system (calculated based on the outlet pressure)
RealsingularityRegime=+1.0 for dh:=P/m_flow -> infty, =-1 for m_flow:=P/dh -> infty, =0.0 else
ThermodynamicModeladiabaticModelAdiabatic process calculation

Contents

NameDescription
ThermodynamicModel

Revisions

  • 2026-08, by Silvan Keim (silvan.keim@dlr.de):
    Improved icon.
  • 2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
    Initial version.