Open Source code

Please use the codes below freely, citing the source and possibly contributing by adding material parameters. We tested both codes against analytical solutions, full 3D solvers or experiments, and they produce consistent results.


In our GitHub page, you can find Python code to:
  1. Calculate the ultrafast temperature profile and temporal evolution in multilayers using a N-temperature model (N = 1, 2, 3) by solving the heat diffusion equation in 1D

  2. Calculate the absorption profile of light propagating in multilayers using the Transfer Matrix Method (TMM)