MESH: A free electromagnetic solver for far-field and near-field radiative heat transfer for layered periodic structures
We describe MESH (M ultilayer E lectromagnetic S olver for H eat transfer), a free software that combines rigorous coupled wave analysis (RCWA) and scattering matrix formalism to simulate the radiative heat transfer both in the near-field and far-field regimes for layered three-dimensional structures made of planar layers. Each layer can have in-plane one-dimensional or two-dimensional periodicity. In this paper, we provide detailed discussions of the algorithms of MESH, which enables it to be a flexible tool for different types of radiative heat transfer simulations. We also discuss aspects of the codes related to parallelization and user scripting.