add flux calculation program