Design simulation of protein and patchy polymers