Hello, when I was calculating the gas file, the program made an error in the figure below. I checked the user’s guide, but I couldn’t find a solution. How to solve this problem.
This is my code.
const double pressure = 15 * AtmosphericPressure;
const double temperature = 293.15;
// Setup the gas.
MediumMagboltz gas;
gas.SetComposition("Xe", 100.);
gas.SetTemperature(temperature);
gas.SetPressure(pressure);
// Set the field range to be covered by the gas table.
const size_t nE = 20;
const double emin = 0.;
const double emax = 2000000.;
// Flag to request logarithmic spacing.
constexpr bool useLog = true;
gas.SetFieldGrid(emin, emax, nE, useLog);
const int ncoll = 10;
// Run Magboltz to generate the gas table.
gas.GenerateGasTable(ncoll);
// Save the table.
gas.WriteGasFile("xe_15atm.gas");