modelPrescribed2

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 time-varying inputs (outlet state 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.Idealized.Boundaries.Sink_freesink
ThermofluidStream.Idealized.Processes.IsochoricdT2c
ThermofluidStream.Boundaries.Sourcesource2
ThermofluidStream.Idealized.Boundaries.Sink_freesink2
ThermofluidStream.Idealized.Processes.IsochoricT_out2c
.ThermofluidStream.Boundaries.Sourcesource1
ThermofluidStream.Idealized.Boundaries.Sink_freesink1
ThermofluidStream.Idealized.Processes.IsochoricdT2
.ThermofluidStream.Boundaries.Sourcesource3
ThermofluidStream.Idealized.Boundaries.Sink_freesink3
ThermofluidStream.Idealized.Processes.IsochoricT_out2

Revisions

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