change boundary condition to zeroGradient in weightedSum field