modelConductorSingleLayerPCM

Test model for heat conductor

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

TypeNameDefaultDescription
Buildings.HeatTransfer.Data.Solids.Concreteconcrete100Non-PCM material
Buildings.HeatTransfer.Data.SolidsPCM.GenericmatPCMPCM material with phase change near 40 degC
Buildings.HeatTransfer.Data.SolidsPCM.GenericmatPCM2PCM material with phase change near room temperature

Components

TypeNameDefaultDescription
Buildings.HeatTransfer.Sources.PrescribedTemperatureTATemperature boundary condition
Modelica.Blocks.Sources.Stepstep
Buildings.HeatTransfer.Sources.PrescribedTemperatureTA1Temperature boundary condition
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensorheaFlo2Heat flow sensor
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensorheaFlo1Heat flow sensor
Modelica.Blocks.Math.AddcheEquChecks for equality of the results
Buildings.HeatTransfer.Convection.Interiorconv1Convective heat transfer
Buildings.HeatTransfer.Convection.Interiorconv2Convective heat transfer
Buildings.HeatTransfer.Conduction.SingleLayerconPCMConstruction with phase change around 40 degC
Buildings.HeatTransfer.Conduction.SingleLayercon1Construction without PCM
Buildings.HeatTransfer.Conduction.SingleLayercon2Construction without PCM
Buildings.HeatTransfer.Sources.PrescribedTemperatureTA2Temperature boundary condition
Buildings.HeatTransfer.Convection.Interiorconv3Convective heat transfer
Buildings.HeatTransfer.Conduction.SingleLayerconPCM2Construction with phase change near room temperature

Revisions

  • January 29, 2019, by Michael Wetter:
    Changed model to use adiabatic boundary condition on the right hand side. This avoids that der(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.