How Do I Set a Heat Simulation?

How Do I Set a Heat Simulation?#

Date

Category

2025-06-17 15:50:52

Heat

The steps to set up a heat simulation are very similar to those for an FDTD simulation:

  • Create the geometry
    The Scene object hosts the simulation geometry and enables easy integration with multiphysics.

  • Assign materials
    Materials can be defined using SolidMedium, which requires specifying heat capacity and thermal conductivity, or FluidSpec, which represents a non-simulated fluid.

  • Assign boundary conditions
    These can be:

  • Add a heat source
    Use the HeatSource object to define a volume heating source.

  • Define meshing specifications
    The simplest option is to use the UniformUnstructuredGrid mesh type, where you only need to specify the grid size dl. The mesher will automatically generate a mesh that fits the structures while respecting the given resolution. For more information about meshing options, please refer to our technical article heat-solver-introduction.

  • Create the simulation object
    Create a HeatChargeSimulation object.

  • Run the simulation
    Use Web.run, just like with an FDTD simulation.

For a full walkthrough of this process, check out the HeatSolver example notebook.