The name attribute is set when a partition is created. To change the name of a partition, set its name attribute to a new name.
[node0] P(part0):: set name=part1[node0] P(part1)::
See "Naming Partitions and Custom Attributes" for partition naming rules.