Thermal and mechanical phenomena in nanoscale constrained domains