code: def setField(self, new_value):
          
          self.B = self.B._replace(val=new_value)
docs: Adjust the field of the magnet by the value of ``scalingFactor``.  The adjustment
          is multiplicative, so a value of ``scalingFactor = 1.0`` will result in no change
          of the field.