add a minimal code version for thermal block model