# The problem in generating the gas file

**URL:** <https://root-forum.cern.ch/t/the-problem-in-generating-the-gas-file/48690>\
**Category:** Garfield++\
**Created:** [February 7, 2022, 11:43am UTC](https://root-forum.cern.ch/t/the-problem-in-generating-the-gas-file/48690 "2022-02-07T11:43:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 7, 2022, 11:43am UTC](https://root-forum.cern.ch/t/the-problem-in-generating-the-gas-file/48690/1 "2022-02-07T11:43:12Z")

</div>

I want to generate a nitrogen gas file, but when it comes to the writegasfile step , the results notice that “Cannot open file N2-740Torr.gas.”

```auto
MediumMagboltz::RunMagboltz: Results:
    Drift velocity along E: 0.00224173 cm/ns +/- 0.09%
    Drift velocity along Bt: 0.00000000 cm/ns +/- 0.00%
    Drift velocity along ExB: 0.00000000 cm/ns +/- 0.00%
    Lorentz angle: 0.000 degree
    Longitudinal diffusion: 0.01791853 cm1/2 +/- 2.01%
    Transverse diffusion: 0.02597449 cm1/2 +/- 1.44%
    Townsend coefficient: 0.0000 cm-1 +/- 0.00%
    Attachment coefficient: 0.0000 cm-1 +/- 0.00%
**MediumMagboltz::WriteGasFile:**
 **Cannot open file N2-740Torr.gas.**

```

---

<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:** [February 7, 2022, 2:36pm UTC](https://root-forum.cern.ch/t/the-problem-in-generating-the-gas-file/48690/2 "2022-02-07T14:36:21Z")

</div>

Is it possible that you don’t have write privileges in the folder where you execute the program?

---

<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:** [February 21, 2022, 2:37pm UTC](https://root-forum.cern.ch/t/the-problem-in-generating-the-gas-file/48690/3 "2022-02-21T14:37:15Z")

</div>

Closed on February 21, 2022, 2:37pm UTC

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