private void transferHeatToType(byte elementID, double amount) {
		if (typeList == null) {
			typeList = new ArrayList<Atom>();
		} else {
			typeList.clear();
		}
		for (int i = 0; i < numberOfAtoms; i++) {
			if (atom[i].id == elementID)
				typeList.add(atom[i]);
		}
		if (typeList.isEmpty())
			return;
		transferHeatToParticles(typeList, amount);
	}