GarField++ Gas File Error: "PROGRAM STOPPED TOO MANY PRIMARIES IPRIM"

Hello everyone.

I am attempting to generate a Gas File in Garfield++ consisting 100% of Sulfur Hexafluoride (SF6) gas.

But when I run the executable, I encounter this error: " PROGRAM STOPPED TOO MANY PRIMARIES IPRIM."

For reference here is the code I am running:

#include <iostream>

#include <TCanvas.h>
#include <TROOT.h>
#include <TApplication.h>

#include "Garfield/MediumMagboltz.hh"
#include "Garfield/FundamentalConstants.hh"

using namespace Garfield;

int main(int argc, char * argv[]) {

  TApplication app("app", &argc, argv);
 
  const double temperature = ZeroCelsius+20;
  const double pressure = 1.1 * AtmosphericPressure;
 
  // Setup the gas.
  MediumMagboltz* gas = new MediumMagboltz();
  gas->SetTemperature(temperature);
  gas->SetPressure(pressure);
  gas->SetComposition("SF6", 100);

  // Set the field range to be covered by the gas table.
  const int nFields = 20;
    const double emin = 100;
    const double emax = 100000;
  // Flag to request logarithmic spacing.
  const bool useLog = true;
  gas->SetFieldGrid(emin, emax, nFields, useLog);

  const int ncoll = 10;
  // Switch on debugging to print the Magboltz output.
  gas->EnableDebugging();
  // Run Magboltz to generate the gas table.
  gas->GenerateGasTable(ncoll);
  gas->DisableDebugging();
  // Save the table.
  gas->WriteGasFile("SF6_20.gas");

}

I am not sure what I can do to mitigate this error. I tried changing the number of collisions, I tried 2, 5, 10, 20 and all have resulted in the same error.

Would appreciate any help.

Thank you.

Khalil

Try increasing the lower limit of the electric field range.

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