# How could I define the gas and ion not in the garfieldpp list

**URL:** <https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106>\
**Category:** Garfield++\
**Created:** [March 11, 2025, 7:39am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106 "2025-03-11T07:39:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dm-leo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dm-leo/32/29761_2.png) [@dm-leo](https://root-forum.cern.ch/u/dm-leo)\
**Post date:** [March 11, 2025, 7:39am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/1 "2025-03-11T07:39:29Z")

</div>

Dear all,  
I am beginner of Garfieldpp. I want to simulate the induced ion signal in SeF6, which is not defined in the medium gas. So is there a method to define SeF6 besides hacking the file /garfield/Source/ MediumGas.cc ?  
The ion is still not defined in Ion mobility data. But with the help of quantum chemistry, I could calculate it. How could I use the calculating mobility result in simulation?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 11, 2025, 8:21am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/2 "2025-03-11T08:21:44Z")

</div>

I guess @hschindl can help you.

---

<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:** [March 11, 2025, 8:45am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/3 "2025-03-11T08:45:02Z")

</div>

Hi,  
do you mean SF6? Magboltz does have cross-sections for SF6.

There is also a mobility file included in the `Data` directory of the project source tree, but it’s for negative ions:

> **[Data/IonMobility\_SF6-\_SF6.txt · master · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Data/IonMobility_SF6-_SF6.txt?ref_type=heads)**
>
> http://garfieldpp.web.cern.ch/garfieldpp/

If you have a set of mobilities as function of the electric field, you can just create a file in the same format and load the data in Garfield++.

---

<div class="post-metadata">

**Author:** ![dm-leo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dm-leo/32/29761_2.png) [@dm-leo](https://root-forum.cern.ch/u/dm-leo)\
**Post date:** [March 11, 2025, 9:21am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/4 "2025-03-11T09:21:19Z")

</div>

No, I mean SeF6, selenium hexafluoride. Of course it’s not common gas so it’s hard to find some information about it.

---

<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:** [March 11, 2025, 9:22am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/5 "2025-03-11T09:22:18Z")

</div>

Dear @dm-leo, if you really mean SeF6 and not SF6 you are quite in uncharted territory. That gas is not implemented in Magboltz, and it also has not cross sections uploaded in lxcat [1].  
I would suggest you study some literature to understand how much the behaviour of SeF6 differs from SF6, (under the pressure, temperature and concentration conditions of your setup), such as [2], but you can find maybe more and better yourself. If the differences are not substantial, you could get some first estimates using SF6 instead of SeF6.

[1] [https://www.lxcat.net/data/set\_specA.php](https://www.lxcat.net/data/set_specA.php)  
[2] [Redirecting](https://doi.org/10.1016/S1387-3806(00)00277-3)

---

<div class="post-metadata">

**Author:** ![dm-leo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dm-leo/32/29761_2.png) [@dm-leo](https://root-forum.cern.ch/u/dm-leo)\
**Post date:** [March 11, 2025, 9:29am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/6 "2025-03-11T09:29:51Z")

</div>

Hi,Piet  
I do have studied some researches about SeF6. And by some methods about quantum chemistry and density functional theory, the reduced mobility of SeF5- and collision cross section in SeF6 gas were calculated (not from experiment). Maybe the W value and Fano factor of SF6 could be used for simulation of SeF6. Maybe it’s hard to define a new gas and new ion if there is no detail information in garfieldpp?

---

<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:** [March 11, 2025, 10:02am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/7 "2025-03-11T10:02:25Z")

</div>

Dear @dm-leo  
You can create a file with your calculated values of the reduced mobility of SeF5-, in a similar way as [SF6- mobility](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Data/IonMobility_SF6-_SF6.txt?ref_type=heads). For defining SeF6 in Magboltz, you will have to implement this in [Magboltz (Fortran)](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Magboltz/magboltz.f?ref_type=heads), but before embarking on such a titanic work, i would compare your calculated SeF6 and SF6 cross sections and if possible use SF6 for your simulations.

---

<div class="post-metadata">

**Author:** ![dm-leo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dm-leo/32/29761_2.png) [@dm-leo](https://root-forum.cern.ch/u/dm-leo)\
**Post date:** [March 12, 2025, 2:34am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/8 "2025-03-12T02:34:38Z")

</div>

Thanks. And the Fortran code is terrible to me 😱. The collision cross section (ion interact with gas molecule) was calculated by the Mason-Schamp’s first approximation of two-temperature theory. It’s a pity that I can’t find the information about ion- gas interaction (but lots of datas about electron - ion and electron -gas) to compare.

---

<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:** [March 26, 2025, 2:35am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106/9 "2025-03-26T02:35:34Z")

</div>

Closed on March 26, 2025, 2:35am UTC

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