# Time to generate .gas file using Magboltz

**URL:** <https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729>\
**Category:** Garfield++\
**Created:** [June 13, 2025, 7:37am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729 "2025-06-13T07:37:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![wjsdms0721](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/e5b9ba/32.png) [@wjsdms0721](https://root-forum.cern.ch/u/wjsdms0721)\
**Post date:** [June 13, 2025, 7:37am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/1 "2025-06-13T07:37:58Z")

</div>

Hi.

I am generating gas file using ./generate in example in Geant4GarfieldInterface. I have some issue making Xe 100% 10 bar 173 Kelvin gas file with 440 kV/cm E field.  
It is generating now but there is no ionisation rate Garfield++ says and making some error in picture. And I am generating gas file with ncoll = 500 but it is taking more than 3 days now.

Is there anybody how to solve this issue?

 ![Screenshot 2025-06-13 at 16.37.18](https://root-forum.cern.ch/uploads/default/original/3X/9/c/9c3293204cf1b862341ce9cb1707add7e8a264ac.png)

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [June 13, 2025, 8:01am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/2 "2025-06-13T08:01:15Z")

</div>

Ncol=500 is an extremely high precision. Is this justified? How long does it take to generate your file with more standard, but already very high precision ncol=10?

---

<div class="post-metadata">

**Author:** ![wjsdms0721](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/e5b9ba/32.png) [@wjsdms0721](https://root-forum.cern.ch/u/wjsdms0721)\
**Post date:** [June 13, 2025, 8:20am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/3 "2025-06-13T08:20:55Z")

</div>

Actually I have already tried ncoll = 20 but Garfield says there is no ionisation rates just like in the figure. Since some says low ncoll may occur error so, I have grown it. Is there any doubtable reason for this error except ncoll?  
I am not sure but ncoll = 20 took around 1 or 2 day to simulation.

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [June 13, 2025, 9:10am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/4 "2025-06-13T09:10:50Z")

</div>

Can you do a print-out of your gastable or make a plot of the townsend coefficient and other swarm parameters?

---

<div class="post-metadata">

**Author:** ![wjsdms0721](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/e5b9ba/32.png) [@wjsdms0721](https://root-forum.cern.ch/u/wjsdms0721)\
**Post date:** [June 14, 2025, 5:08am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/5 "2025-06-14T05:08:17Z")

</div>

Sorry for late reply. This is table using ./printTable program. Its ncoll = 20 and I stopped generating file ncoll = 500.

 ![Screenshot 2025-06-14 at 14.06.36](https://root-forum.cern.ch/uploads/default/original/3X/1/7/17a4ea6e68f30df81f4133e48f224f9d3bbf87ef.png)

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [June 14, 2025, 9:47am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/6 "2025-06-14T09:47:19Z")

</div>

Hi,  
the message “present gas table has no ionisation rates” is printed when you call the `EnablePenningTransfer`. This doesn’t really matter for your simulation though since in pure noble gases there is no Penning effect. The error message `No ionisable medium at initial position` must be due to something else.

I’m still curious why you get the “gas table has no ionisation rates” warning. If you could upload your `.gas` file, I’ll have a look if there are really no ionisation rates stored in the gas file or if there is an issue with the import of the file.  
Also, as Piet already commented, `ncol = 500` seems indeed excessive.

---

<div class="post-metadata">

**Author:** ![wjsdms0721](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/e5b9ba/32.png) [@wjsdms0721](https://root-forum.cern.ch/u/wjsdms0721)\
**Post date:** [June 15, 2025, 4:29am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/7 "2025-06-15T04:29:58Z")

</div>

Hi,

Thanks for your answer. This is .gas file I used in txt file.  
[xe\_100.gas.txt](https://root-forum.cern.ch/uploads/short-url/rwNwi8sKcQB57iaqMqCsIh2Yren.txt) (59.0 KB)

And in the log output file after I operate Geant4 Garfield Interface program, it says Avalanche = 0 and Ionisation = 0. Is it have any connection with this problem?

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [June 15, 2025, 11:31am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/8 "2025-06-15T11:31:51Z")

</div>

Hi,  
thanks for the gas file! I’m afraid I don’t manage to reproduce the issue you encountered. I used the following simple program to import your gas file and set the Penning transfer probability:

```cpp
MediumMagboltz gas;
gas.LoadGasFile("xe_100.gas");
gas.PrintGas();
gas.EnablePenningTransfer(0.5, 0.);

```

The output I got is

```auto
MediumMagboltz::EnablePenningTransfer:
    Global Penning transfer parameters set to:
    r = 0.5
    lambda = 0 cm
MediumMagboltz::EnablePenningTransfer:
    Warning: present gas table has no eligible excitation rates.
    Ignore this message if you are using microscopic tracking only.

```

which makes sense because in pure Xe there are indeed no excitation levels that are eligible for excitation transfer.  
In any case, you should remove the call to the function `EnablePenningTransfer` from your program, it doesn’t make sense for pure Xe.

I also noticed that your gas file has an extremely narrow range of electric fields, covering 439999 - 440001 V/cm, with 19 steps. Is that on purpose?

---

<div class="post-metadata">

**Author:** ![wjsdms0721](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/e5b9ba/32.png) [@wjsdms0721](https://root-forum.cern.ch/u/wjsdms0721)\
**Post date:** [June 16, 2025, 12:57am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/9 "2025-06-16T00:57:53Z")

</div>

Hi,

I set E field to minimise time to generate .gas file. I only simulate on uniform 440 kV/cm. If there is any worry to simulation because of it, please let me know.

Also, what you are saying is that my gas file is normally generated, is it right? I also checked EnablePenningTransfer is not on simulation src code and first warning is removed!

```auto
MediumMagboltz::EnablePenningTransfer:
    Warning: present gas table has no ionisation rates.
    Ignore this message if you are using microscopic tracking only.

```

Thanks for your solution 🙂

But a serious warning about TrackHeed is still here. Is it problem about Garfield structure not gas file?

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [June 17, 2025, 1:17pm UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/10 "2025-06-17T13:17:50Z")

</div>

Hi,  
ok, I see. If you only need the transport parameters at 440 kV/cm, then the range of the electric field is indeed ok. But then you don’t need to use 19 grid points…

The error message `No ionisable medium at initial position.` means pretty much what it says. Can you check your program to make sure the starting point of your delta electrons are indeed in an active medium?

---

<div class="post-metadata">

**Author:** ![wjsdms0721](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/e5b9ba/32.png) [@wjsdms0721](https://root-forum.cern.ch/u/wjsdms0721)\
**Post date:** [June 22, 2025, 2:12am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/11 "2025-06-22T02:12:43Z")

</div>

Hi,  
sorry for late answer.

I have checked if position of particle is in the gas for a number of times and it is.

However, I tried editing `physics.mac` and have seen that error is removed when line number 21 - 25 is removed. I think it is deeply connected to the error and its solve.

Do you have any idea of it?

ps. line 21 - 25 may be about PAI model.

 ![Screenshot 2025-06-22 at 11.08.02](https://root-forum.cern.ch/uploads/default/original/3X/d/1/d10a32418f614a77ecaef03faf9f611c795cbe6a.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 6, 2025, 2:13am UTC](https://root-forum.cern.ch/t/time-to-generate-gas-file-using-magboltz/63729/12 "2025-07-06T02:13:23Z")

</div>

Closed on July 6, 2025, 2:13am UTC

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