modelConductorSingleLayerPCM
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example tests the implementation of the phase-change material (PCM) model.
The phase-change material matPCM is exposed to the same boundary
conditions as the non phase-change material.
In the construction conPCM2, the phase change is around 20.5 °C.
In the construction conPCM, the phase change is around 40.5 °C, which
is above the temperature range simulated in this model.
Therefore, the same result is expected for the PCM material conPCM
as is for two conductors in series.
Note that in case of using matPCM, the internal energy is
the dependent variable, whereas in case of two conductors in series, the temperature
is the dependent variable. However, both models will
produce the same results.
The cheEqu block computes the difference between the heat fluxes,
which should be equal except for the numerical approximation error of the solver.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.HeatTransfer.Data.Solids.Concrete | concrete100 | Non-PCM material | |
| Buildings.HeatTransfer.Data.SolidsPCM.Generic | matPCM | PCM material with phase change near 40 degC | |
| Buildings.HeatTransfer.Data.SolidsPCM.Generic | matPCM2 | PCM material with phase change near room temperature |
Components
Revisions
-
January 29, 2019, by Michael Wetter:
Changed model to use adiabatic boundary condition on the right hand side. This avoids thatder(conPCM.u)is an iteration variable with no start value, which would trigger a warning in JModelica. -
November 9, 2016, by Michael Wetter:
Changed assertion with a computation of the difference.
This is for issue 576. -
October 17, 2014, by Michael Wetter:
Increased tolerance for OpenModelica. -
March 6 2010, by Michael Wetter:
First implementation.