Simulating Smart Temperature Control in Electric Kettles with COMSOL: A Multiphysics Modeling Guide

Summary
Develop a numerical model for the temperature maintenance process in electric kettles using COMSOL Multiphysics. This article explores how free convection, thermostat control, heat transfer, and species transport interact in a common household appliance—from theory to MATLAB implementation.

Introduction

Picture this: you’ve just boiled water for tea, but get distracted by a phone call. Ten minutes later, your electric kettle has kept the water perfectly warm—not too hot, not too cold. This seemingly simple “keep warm” function actually involves a sophisticated dance of physics.

Natural convection, often overlooked in everyday life, plays a starring role here. The same phenomenon that drives ocean currents and weather patterns also governs the gentle circulation of water in your kettle. From chemical reactors to fermentation vessels, understanding these convective flows is key to optimizing thermal systems.

What makes this problem particularly interesting is the coupling of multiple physical processes:

  • Heat Conduction: Energy flowing through the glass walls and steel heating plate
  • Natural Convection: Gravity-driven water circulation caused by temperature differences
  • Heat Loss: Energy escaping from the kettle surface to the surrounding air
  • Species Transport: How dissolved substances get mixed by the swirling water
  • Thermostat Control: The on-off switching logic that maintains your target temperature

In this article, we build a 2D axisymmetric COMSOL model to simulate these phenomena, drawing inspiration from the classic “Free Convection in a Water Glass” example in the COMSOL Application Gallery.

mindmap
  root((Electric Kettle Simulation))
    Physics
      Heat Conduction
      Natural Convection
      Species Transport
      Heat Loss
    Control
      Thermostat Logic
      Hysteresis Control
    COMSOL Setup
      Laminar Flow
      Heat Transfer
      Transport of Species
      Events Interface
    Results
      Temperature Field
      Flow Patterns
      Species Mixing
      Energy Balance

Physical Problem Description

Geometric Model

To keep the simulation tractable, we simplify the electric kettle as an axisymmetric frustum-shaped container. Thanks to rotational symmetry, we can capture all the essential physics in a 2D model—dramatically reducing computational cost without sacrificing accuracy.

Geometry of the electric kettle
Geometry of the electric kettle

Geometric Parameters:

ParameterValueDescription
R_top7 cmTop radius of kettle
R_bottom7.5 cmBottom radius of kettle
H_kettle16 cmKettle height
T_wall1.3 mmGlass wall thickness
T_bottom3 mmSteel bottom thickness

Physical Processes

Heat Conduction

In the solid regions—the glass walls and steel heating plate—heat travels by conduction, following Fourier’s law:

$$q = -k \nabla T$$

Here, $k$ is the thermal conductivity and $T$ is temperature. For the glass wall, we use the thermal properties of silica glass.

Natural Convection (Boussinesq Approximation)

The magic happens in the water. When the bottom heats up, warmer water becomes less dense and rises, while cooler water near the walls sinks down to take its place. This creates a continuous circulation pattern—classic Rayleigh-Bénard convection.

We model this density variation using the Boussinesq approximation:

$$\rho = \rho_{ref} [1 - \alpha_p (T - T_{ref})]$$

where $\alpha_p$ is the thermal expansion coefficient. The resulting buoyancy-driven flow forms characteristic recirculation cells that efficiently mix and heat the water.

Species Transport

Beyond heat, we also track how dissolved species (think minerals or tea extract) get distributed. The concentration evolves through:

  • Convective transport: Species carried along by the flowing water
  • Diffusion: Molecules spreading from high to low concentration

This coupling beautifully demonstrates how natural convection accelerates mixing far beyond what diffusion alone could achieve.

Thermostat Control Logic

The thermostat employs a hysteresis control strategy to prevent rapid on-off cycling:

1
2
When T_avg > 50.5°C → Turn off heater (HeaterState = 0)
When T_avg < 49.5°C → Turn on heater (HeaterState = 1)

The heating plate temperature switches according to state:

  • Heating state: T_heater = 80°C
  • Off state: T_heater = 25°C (room temperature)

COMSOL Model Setup

Physics Interfaces

Translating our physical understanding into COMSOL requires four key physics interfaces:

InterfaceIdentifierPurpose
Laminar FlowspfSimulate buoyancy-driven water flow
Heat Transfer in FluidshtSimulate heat conduction and convection
Transport of Diluted SpeciestdsTrack species concentration distribution
EventsevImplement thermostat switching logic

Multiphysics Coupling

Non-Isothermal Flow: This is where the magic happens. By coupling Laminar Flow with Heat Transfer and enabling the Boussinesq approximation, temperature differences directly drive fluid motion.

Species Transport Coupling: The diluted species interface “rides along” with the velocity field, letting us track how substances get stirred by the convective currents.

Material Properties

Water (Temperature-Dependent Properties)

Water’s physical properties vary significantly with temperature—a critical factor for accurate natural convection modeling:

TemperatureDensity ρ (kg/m³)Viscosity η (mPa·s)Thermal Conductivity k (W/m·K)Heat Capacity Cp (J/kg·K)
20°C998.21.0020.5984182
50°C988.10.5470.6444181
80°C971.80.3550.6704198

Note: The model uses piecewise polynomial fits of these properties. See the Appendix for the complete MATLAB implementation.

Solid Materials

MaterialThermal ConductivityDensityHeat Capacity
Silicate Glass1.38 W/(m·K)2203 kg/m³703 J/(kg·K)
Structural Steel44.5 W/(m·K)7850 kg/m³475 J/(kg·K)

Boundary Conditions

The boundary conditions are carefully chosen to represent realistic physical scenarios:

BoundaryCondition TypeSetting
Heating plate bottomTemperature boundaryT = T_heater_off + (T_heater_on - T_heater_off) × HeaterState
Kettle sidewall exteriorNatural convectionExternal natural convection with heat transfer coefficient, T_amb = 25°C
Water surfaceConvective heat fluxh = 2 W/(m²·K), driven by temperature difference: $q = h(T_{ext} - T)$
Water surfaceSlip wallNo tangential stress (free surface approximation)
Glass-water interfaceNo-slip wallZero velocity at solid boundaries
Axis of symmetryAxial symmetrySymmetry condition for all fields

Note: Because of the relatively low values of heat transfer film coefficients at the top and side surfaces, a significant portion of heat may be conducted through the bottom boundary when the heater is off. The Heat Transfer Module provides a library of heat transfer coefficient functions that can be utilized for more accurate modeling.

Event Control (Thermostat)

The COMSOL Events interface implements the temperature control logic:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
% Discrete state variable
HeaterState = 1  % Initially on

% Indicator states (for detecting temperature crossings)
Upwards = T_avg - 50.5[degC]    % Upward crossing
Downwards = T_avg - 49.5[degC]  % Downward crossing

% Implicit events
When Upwards > 0: HeaterState = 0 (turn off heating)
When Downwards < 0: HeaterState = 1 (turn on heating)

Mesh Configuration

Structured mesh with refinement in boundary layer regions to capture the thin thermal and velocity boundary layers near walls:

  • Water domain: Mapped mesh, maximum element size 1 mm
  • Boundary layers: 6 boundary layer mesh layers
  • Solid regions: Free triangular mesh
Mesh of the electric kettle
Mesh of the electric kettle

Solver Settings

Time Stepping

  • Time range: 0 to 3 minutes
  • Time step: 3 seconds
  • Relative tolerance: 1×10⁻³
  • Absolute tolerance: 2.5×10⁻⁵

Nonlinear Solver

Fully Coupled solver with direct solver (PARDISO). This approach handles the strong coupling between momentum, energy, and species transport equations effectively.

Results and Discussion

Let’s see what our simulation reveals!

Temperature Field Evolution

Temperature field animation
Temperature field animation showing the evolution

The simulation starts with water at a uniform 49°C—just below the thermostat’s lower threshold. As soon as the heater kicks in, we see the physics spring to life.

The temperature distribution shows characteristic features of Rayleigh-Bénard convection:

  • Hot thermal plumes rising from the heating plate
  • Cold water descending along the cooler side walls
  • Gradual homogenization due to convective mixing

Natural Convection Flow Field

Velocity field streamline plot showing recirculation zones
Velocity field streamline plot showing recirculation zones

The streamlines tell a beautiful story of organized chaos. Buoyancy drives clear recirculation patterns—convection cells that act like tiny heat pumps, efficiently moving energy from the hot bottom to the cooler top.

Notice how:

  • Central upward flow of heated water
  • Peripheral downward flow of cooled water
  • Multiple recirculation cells may form depending on the Rayleigh number

Species Concentration Distribution

Species concentration distribution plot
Species concentration distribution plot

Here’s where things get practical. Imagine you’ve dropped a tea bag or dissolved some minerals. The species transport results show how convection dramatically speeds up mixing:

  • Initial concentration hotspots quickly spread throughout the kettle
  • Convection outpaces diffusion by orders of magnitude
  • Concentration contours follow the flow streamlines like tracer particles

Average Temperature Curve

Average temperature vs. time curve
Average temperature vs. time curve

The thermostat does its job beautifully! The average water temperature oscillates between 49.5°C and 50.5°C—exactly as designed. The sawtooth pattern reveals:

  • Rapid initial heating when heater is on
  • Gradual cooling when heater is off due to heat loss to the environment
  • Hysteresis prevents rapid on-off switching

Heat Flux Analysis

BoundaryHeat Flux DirectionDescription
Heating plate (when on)Inflow (+Q_in)Primary heat source
SidewallOutflow (-Q_wall)Convective loss to ambient
Water surfaceOutflow (-Q_top)Convective and radiative loss
Heat flux analysis plot
Heat flux analysis plot

At quasi-steady state, energy in equals energy out: $Q_{in} \approx Q_{wall} + Q_{top}$

Summary: The Complete Workflow

flowchart LR
    A[Build\n Geometry] --> B[Define\n Materials]
    B --> C[Set\n Boundary Conditions]
    C --> D[Configure\n Events]
    D --> E[Generate\n Mesh]
    E --> F[Run\n Simulation]
    F --> G[Analyze\n Results]
  1. Build Geometry: Create 2D axisymmetric model of kettle with water domain and solid regions
  2. Define Materials: Assign temperature-dependent water properties and solid material properties
  3. Set Boundary Conditions: Configure heating plate, sidewall convection, and water surface conditions
  4. Configure Events: Implement thermostat hysteresis control logic
  5. Generate Mesh: Create structured mesh with boundary layer refinement
  6. Run Simulation: Execute time-dependent solver with appropriate tolerances
  7. Analyze Results: Examine temperature fields, flow patterns, and species distribution

Conclusions and Future Work

What We Learned

This simulation journey revealed several interesting insights:

  1. Convection dominates: The high Rayleigh number confirms that natural convection—not conduction—is the primary heat transfer mechanism. The beautiful recirculation patterns in our streamline plots prove it.

  2. Smart thermostat design: The hysteresis strategy works exactly as intended, keeping water within ±0.5°C of the target while avoiding the rapid on-off cycling that would plague a simple threshold controller.

  3. Where the heat goes: Most heat escapes through the sidewalls rather than the water surface—a consequence of the larger contact area with the glass.

  4. Mixing for free: Natural convection dramatically accelerates species transport, dispersing dissolved substances far faster than diffusion alone.

Model Limitations

No model is perfect. Ours makes several simplifying assumptions:

  • 2D axisymmetric geometry (can’t capture 3D asymmetric effects)
  • No evaporation at the water surface (important at higher temperatures)
  • Spatially uniform heating plate temperature
  • Perfect thermal contact at material interfaces

Where to Go From Here

Several exciting extensions await:

  • Phase change: Add boiling and evaporation models for high-temperature operation
  • Realistic heating: Model the actual Joule heating distribution in the heating element
  • Full 3D: Capture asymmetric effects from handles and spouts
  • Smarter control: Implement PID control for improved energy efficiency
  • Surface effects: Include Marangoni convection at the water-air interface

References

  1. COMSOL Multiphysics Documentation - Heat Transfer Module
  2. COMSOL Application Gallery - Free Convection in a Water Glass
  3. Incropera, F.P., DeWitt, D.P., Bergman, T.L., & Lavine, A.S. Fundamentals of Heat and Mass Transfer (7th ed.). Wiley.
  4. COMSOL Application Gallery - Nonisothermal Flow Examples