Problem with Attachment coefficient plotting using Garfield ++

hello, I am a GARFIELD++ newbie and I was trying to plot the electron transport coefficients after generating the gas file for (Ar) for example using Magboltz, but for some reason it does not plot the attachment coefficient for (He, Ar or Xe) but it does for elements/Isotopes like (H2 and D2), I included my programs so we can find out why this happens!

//gasgen
	MediumMagboltz gas;
	gas.SetComposition("ar", 100.);
	// Set temperature [K] and pressure [Torr].
	gas.SetPressure(760.*3.);
	gas.SetTemperature(273.15+20.);

	gas.SetFieldGrid(100., 100000., 20, true);
	
	
	gas.GenerateGasTable(10);
	gas.WriteGasFile("ar");
TApplication app("app", &argc, argv);
	
	MediumMagboltz gas;
	ViewMedium view;
	view.SetMedium(&gas);
	
	gas.LoadGasFile("ar");
	
	TCanvas c1("c1", " ", 800, 800);
	view.SetCanvas(&c1);
	view.PlotElectronVelocity('e');
	
	TCanvas c2("c2", " ", 800, 800);
	view.SetCanvas(&c2);
	view.PlotElectronDiffusion('e');
	
	TCanvas c3("c3", " ", 800, 800);
	view.SetCanvas(&c3);
	view.PlotElectronTownsend('e');
	
	TCanvas c4("c4", " ", 800, 800);
	view.SetCanvas(&c4);
	view.PlotElectronAttachment('e');
	

	app.Run();

@hschindl I guess I need your help, thanks in advance!!

He, Ar, Xe don’t have attachment cross-sections.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.