public void transferHeat(double amount) {
		if (getNumberOfAtoms() <= 0)
			return;
		double k0 = getKE();
		if (k0 < ZERO)
			assignTemperature(1);
		for (int i = 0; i < numberOfAtoms; i++) {
			Atom a = atom[i];
			k0 = EV_CONVERTER * a.mass * (a.vx * a.vx + a.vy * a.vy);
			if (k0 <= ZERO)
				k0 = ZERO;
			k0 = (k0 + amount) / k0;
			if (k0 <= ZERO)
				k0 = ZERO;
			k0 = Math.sqrt(k0);
			a.vx *= k0;
			a.vy *= k0;
		}
	}