You can do this with something along the lines of
For instance a modified version of this for is available at Thermal contact resistance problem · GitHub