modelPrescribed3

Example - Isochoric process

Extends from ThermofluidStream.Idealized.Tests.Processes.Isochoric.PartialPrescribed (Base class), Modelica.Icons.Example (Icon for runnable examples).

Information

This example illustrates several variants of using the Isochoric process defined by parameters (mass flow rate and heat flow rate given)

Components

TypeNameDefaultDescription
SI.MassFlowRatem_flow (from PartialPrescribed)firstOrder.yMass flow rate
Medium.AbsolutePressurep_in (from PartialPrescribed)inletPressure.yInlet pressure
Medium.TemperatureT_in (from PartialPrescribed)inletTemperature.yInlet temperature
SI.TemperatureDifferencedT (from PartialPrescribed)temperatureDifference.yTemperature difference
Medium.TemperatureT_out (from PartialPrescribed)T_in + dTOutlet temperature
Medium.Densityrho (from PartialPrescribed)Medium.density(state_in)Density
Medium.ThermodynamicStatestate_in (from PartialPrescribed)Medium.setState_pTX(p_in, T_in, Medium.X_default)Inlet state
Medium.ThermodynamicStatestate_out (from PartialPrescribed)Medium.setState_dTX(rho, T_out, Medium.X_default)Outlet state
SI.SpecificEnthalpyh_in (from PartialPrescribed)Medium.specificEnthalpy(state_in)Inlet specific enthalpy
SI.SpecificEnthalpyh_out (from PartialPrescribed)Medium.specificEnthalpy(state_out)Outlet specific enthalpy
SI.Pressurep_out (from PartialPrescribed)Medium.pressure(state_out)Outlet pressure
SI.SpecificEnergyu_in (from PartialPrescribed)h_in - p_in/rhoInlet specific internal energy
SI.SpecificEnergyu_out (from PartialPrescribed)h_out - p_out/rhoOutlet specific internal energy
SI.SpecificEnergydu (from PartialPrescribed)u_out - u_inSpecific internal energy difference
SI.HeatFlowRateQ_flow (from PartialPrescribed)m_flow*duHeat flow rate
ThermofluidStream.DropOfCommonsdropOfCommons (from PartialPrescribed)
Modelica.Blocks.Sources.SawToothinletPressure (from PartialPrescribed)
Modelica.Blocks.Sources.SawToothinletTemperature (from PartialPrescribed)
Modelica.Blocks.Sources.SawToothtemperatureDifference (from PartialPrescribed)
Modelica.Blocks.Sources.RealExpressionoutletTemperature (from PartialPrescribed)
Modelica.Blocks.Sources.SawToothmassFlowRate (from PartialPrescribed)
Modelica.Blocks.Continuous.FirstOrderfirstOrder (from PartialPrescribed)
Modelica.Blocks.Sources.RealExpressionheatFlowRate (from PartialPrescribed)
EnergyFlow.Sources.PrescribedEnergyFlowenergyFlowSource (from PartialPrescribed)
ThermofluidStream.Boundaries.Sourcesource
.ThermofluidStream.Boundaries.Sink_msink
ThermofluidStream.Idealized.Processes.IsochoricisochoricCycle
.ThermofluidStream.Boundaries.Sourcesource1
.ThermofluidStream.Boundaries.Sink_msink1
ThermofluidStream.Idealized.Processes.IsochoricisochoricFlow

Revisions

  • 2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
    Initial version.