Setting DHW system heat source
I'm trying to set the DHW system heat source for various prototype buildings. I am planning to get the current heat source for the DHW loop and setting certain parameters associated with it. However, when changing the parameters for the heat source, I do not want to edit the heat source if it is used for heating in other loops. I only want to edit the heat pump source for the DHW loop. How should I go about obtaining this heat source object and setting its parameters?