modelFixed3
Example - Isobaric process
Extends from ThermofluidStream.Idealized.Tests.Processes.Isobaric.PartialFixed (Base Class), Modelica.Icons.Example (Icon for runnable examples).
Information
This example illustrates several variants of using the Isobaric process for heat transfer defined by parameters (mass flow rate and heat flow rate given).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow (from PartialFixed) | 1 | Mass flow rate |
| Medium.AbsolutePressure | p (from PartialFixed) | 200000 | Pressure (inlet = outlet) |
| Medium.Temperature | T_in (from PartialFixed) | 293.15 | Inlet temperature |
| SI.TemperatureDifference | dT (from PartialFixed) | 10 | Temperature difference |
| SI.AbsolutePressure | p_inf (from PartialFixed) | 100000 | Ambient pressure |
| Medium.Temperature | T_out (from PartialFixed) | T_in + dT | Outlet temperature |
| Medium.ThermodynamicState | state_in (from PartialFixed) | Medium.setState_pTX(p, T_in, Medium.X_default) | Inlet state |
| Medium.ThermodynamicState | state_out (from PartialFixed) | Medium.setState_pTX(p, T_out, Medium.X_default) | Outlet state |
| Medium.Density | rho_in (from PartialFixed) | Medium.density(state_in) | Inlet density |
| Medium.Density | rho_out (from PartialFixed) | Medium.density(state_in) | Outlet density |
| SI.SpecificVolume | v_in (from PartialFixed) | 1/rho_in | Inlet density |
| SI.SpecificVolume | v_out (from PartialFixed) | 1/rho_out | Outlet density |
| Medium.SpecificEnthalpy | h_in (from PartialFixed) | Medium.specificEnthalpy(state_in) | Inlet specific enthalpy |
| Medium.SpecificEnthalpy | h_out (from PartialFixed) | Medium.specificEnthalpy(state_out) | Outlet specific enthalpy |
| Medium.SpecificEnthalpy | dh (from PartialFixed) | h_out - h_in | Specific enthalpy difference |
| Medium.SpecificEnergy | q (from PartialFixed) | dh | Specific heat flow rate |
| SI.HeatFlowRate | Q_flow (from PartialFixed) | m_flow*q | Heat flow rate |
| Medium.SpecificEnergy | u_in (from PartialFixed) | h_in - p/rho_in | Inlet specific internal energy |
| Medium.SpecificEnergy | u_out (from PartialFixed) | h_out - p/rho_out | Outlet specific internal energy |
| Medium.SpecificEnergy | du (from PartialFixed) | u_out - u_in | Specific internal energy difference |
| SI.SpecificEnergy | w_exp (from PartialFixed) | -p*(v_out - v_in) | Specific expansion work |
| SI.SpecificEnergy | w_amb (from PartialFixed) | -p_inf*(v_out - v_in) | Specific ambient pressure work |
| SI.SpecificEnergy | w_exp_net (from PartialFixed) | w_exp - w_amb | Net specific expansion work |
| SI.Power | P (from PartialFixed) | m_flow*w_exp_net | Net power (net expansion work flow rate) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.DropOfCommons | dropOfCommons (from PartialFixed) | ||
| EnergyFlow.Sources.FixedEnergyFlow | energyFlowSource | ||
| ThermofluidStream.Boundaries.Source | source | ||
| ThermofluidStream.Idealized.Processes.Isobaric | isobaricFlow | ||
| .ThermofluidStream.Boundaries.Sink_m | sink | ||
| ThermofluidStream.Boundaries.Source | source1 | ||
| ThermofluidStream.Idealized.Processes.Isobaric | isobaricCycle | ||
| .ThermofluidStream.Boundaries.Sink_m | sink1 |
Revisions
-
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.