Contenido principal

Phase-Change Thermal Mass

R2026b

Mass of two-phase material in thermal systems

Since R2026b

  • Phase-Change Thermal Mass block

Libraries:
Simscape / Foundation Library / Thermal / Thermal Elements

Description

The Phase-Change Thermal Mass block represents a mass of two-phase material in a thermal network. In each phase, the rate of temperature increase is proportional to the heat flow rate into the material and inversely proportional to the mass and the specific heat of the phase. Phase 1 has lower energy than phase 2. The material absorbs or releases latent heat during phase transition while maintaining its temperature at the phase transition temperature.

For example, this plot illustrates the phase change process for water, from the solid to the liquid state.

Phase change plot, with energy added per unit mass along the x-axis and temperature along the y-axis

The block uses the equations

Q=mc1dTdt, if T<TtQ=mLdF2dt, if T=TtQ=mc2dTdt, if T>Tt

where:

  • m is the mass.

  • Q is the heat flow rate into the mass.

  • T is the temperature of the mass.

  • Tt is the Phase transition temperature.

  • c1 and c2 represent the Phase 1 specific heat and Phase 2 specific heat, respectively.

  • L is the Latent heat of phase transition.

  • F2 is the phase 2 mass fraction.

Use this block to model systems like ice storage air conditioners that freeze water at night, during off-peak hours, and then use this stored ice during the day to provide cooling. You can also use this block to model phase-change materials in electronics and battery cooling applications.

By default, the block has one thermal conserving port. Because the block positive direction is from the port toward the block, the heat flow is positive if it flows into the block.

In some applications, it is customary to display mass in series with other elements in the block diagram layout. To support this use case, the Number of thermal ports parameter lets you display a second port on the opposite side of the block icon. The two-port variant is purely graphical: the two ports have the same temperature, so the block functions the same whether it has one or two ports.

The physical signal port F2 outputs the mass fraction of phase 2 during simulation. If you start the simulation when the material is in transition between phase 1 and phase 2, you must specify the initial mass fraction of phase 2 by using the Initial mass fraction of Phase 2 parameter. If you start the simulation when the material is either in phase 1 or phase 2, you must specify the temperature at the start of simulation by using the Initial temperature parameter. Depending on the initial phase, the initial temperature must be either lower or higher than the phase transition temperature.

Ports

Output

expand all

Physical signal output port that measures the mass fraction of phase 2 during simulation.

Conserving

expand all

Thermal conserving port that connects the mass to the physical network.

Second thermal conserving port that lets you connect the mass in series with other elements in the block diagram. This port has the same temperature as port M, therefore the difference between the one-port and two-port block representations is purely graphical.

Dependencies

To enable this port, set the Number of thermal ports parameter to 2.

Parameters

expand all

Mass of two-phase material. The mass is constant during simulation.

Specific heat of the material in phase 1. The default value is for solid water.

Specific heat of the material in phase 2. The default value is for liquid water.

Temperature at which the phase transition happens.

Energy per unit of mass that needs to be transferred in or out during phase transition. The default value is for transition of ice into water.

Material phase at the start of simulation:

  • Phase 1 — The two-phase material is completely in phase 1.

  • Transition between Phase 1 and Phase 2 — The two-phase material is in transition between phase 1 and phase 2.

  • Phase 2 — The two-phase material is completely in phase 2.

Temperature at the start of simulation. The parameter value depends on the initial phase of material:

  • If Initial phase is Phase 1, the initial temperature must be lower than the Phase transition temperature parameter value.

  • If Initial phase is Phase 2, the initial temperature must be higher than the Phase transition temperature parameter value.

Dependencies

To enable this parameter, set the Initial phase parameter to Phase 1 or Phase 2.

Mass fraction of material in phase 2 at the start of simulation.

Dependencies

To enable this parameter, set the Initial phase parameter to Transition between Phase 1 and Phase 2.

How to connect the block to the rest of the circuit:

  • 1 — The block has one conserving port that connects it to the thermal circuit. When the block has one port, attach it to a connection line between two other blocks.

  • 2 — Selecting this option exposes the second port, which lets you connect the block in series with other blocks in the circuit. Because the two ports have the same temperature, the block functions the same as if it had one port.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2026b

See Also