# Garfield++

**URL:** https://root-forum.cern.ch/c/garfieldxx/25.md?page=16

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

**Page:** 17

---

## [Accessing Townsend coefficients (alpha, gamma)](https://root-forum.cern.ch/t/accessing-townsend-coefficients-alpha-gamma/44642)

<div class="topic-metadata">

**Author:** [@ikempf](https://root-forum.cern.ch/u/ikempf)\
**Replies:** 2\
**Last updated:** [April 29, 2021, 12:43pm UTC](https://root-forum.cern.ch/t/accessing-townsend-coefficients-alpha-gamma/44642 "2021-04-29T12:43:50Z")

</div>

Hi! I was wondering whether there is a way to get the first Townsend ionisation coefficient (alpha) from the simulations. In the user manual in section 2.5.1 on the drift tube it is stated: First, we prepare a table o…

---

## [Garfield program not running at 100% cpu load](https://root-forum.cern.ch/t/garfield-program-not-running-at-100-cpu-load/44522)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 4\
**Last updated:** [April 25, 2021, 5:14pm UTC](https://root-forum.cern.ch/t/garfield-program-not-running-at-100-cpu-load/44522 "2021-04-25T17:14:35Z")

</div>

Hi, As the title suggests, I have recently come across an issue where the execution of a Garfield++ code does not run at 100% of CPU load. This problem causes the program to take longer to execute as well as wasting “re…

---

## [Ion mobility of Isobutane in Garfield++](https://root-forum.cern.ch/t/ion-mobility-of-isobutane-in-garfield/44446)

<div class="topic-metadata">

**Author:** [@Kri](https://root-forum.cern.ch/u/Kri)\
**Replies:** 3\
**Last updated:** [April 19, 2021, 9:10am UTC](https://root-forum.cern.ch/t/ion-mobility-of-isobutane-in-garfield/44446 "2021-04-19T09:10:26Z")

</div>

Hi, I am trying to simulate a gas cell with isobutane gas using Garfield++. But I could not find the ion mobility table for Isobutane gas in the papers that I read, since the file is already not given in the downloaded …

---

## [Can't shared libraly named libmagboltz.so.11 in Garfield++](https://root-forum.cern.ch/t/cant-shared-libraly-named-libmagboltz-so-11-in-garfield/44449)

<div class="topic-metadata">

**Author:** [@Anantachai\_Lakrathok](https://root-forum.cern.ch/u/Anantachai_Lakrathok)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 2:32pm UTC](https://root-forum.cern.ch/t/cant-shared-libraly-named-libmagboltz-so-11-in-garfield/44449 "2021-04-17T14:32:17Z")

</div>

Daer Friends, I made an execute file to run a macro on Garfield++. Nevertheless, it can’t open a shared object file " libmagboltz.so.11 ". If you know how can solve the problem please lets me know. Thank you so much f…

---

## [Incorporating TRIM into Garfield Simulations](https://root-forum.cern.ch/t/incorporating-trim-into-garfield-simulations/43881)

<div class="topic-metadata">

**Author:** [@Jason\_Forson](https://root-forum.cern.ch/u/Jason_Forson)\
**Replies:** 3\
**Last updated:** [March 9, 2021, 8:58pm UTC](https://root-forum.cern.ch/t/incorporating-trim-into-garfield-simulations/43881 "2021-03-09T20:58:23Z")

</div>

Hello, So this program uses Garfield++ to simulate a ionization chamber filled with Isobutane gas at 58 torr and releases Al-26 Ions into it from the bottom. I’ve been trying to improve the simulations by incorporating …

---

## [How to get induced current signal from a special shape of anode](https://root-forum.cern.ch/t/how-to-get-induced-current-signal-from-a-special-shape-of-anode/43735)

<div class="topic-metadata">

**Author:** [@hatiden1](https://root-forum.cern.ch/u/hatiden1)\
**Replies:** 10\
**Last updated:** [March 4, 2021, 2:42pm UTC](https://root-forum.cern.ch/t/how-to-get-induced-current-signal-from-a-special-shape-of-anode/43735 "2021-03-04T14:42:47Z")

</div>

Hello, I simulate the zp1200(a geiger muller tube) by using Garfield++,the model structure as figure 1, and the electric field and the mesh generated from the COMSOL as figure 2. Could you tell me how to get the induce…

---

## [Interface of geant4 and garfield](https://root-forum.cern.ch/t/interface-of-geant4-and-garfield/43293)

<div class="topic-metadata">

**Author:** [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Replies:** 20\
**Last updated:** [February 15, 2021, 1:30pm UTC](https://root-forum.cern.ch/t/interface-of-geant4-and-garfield/43293 "2021-02-15T13:30:35Z")

</div>

@hschindl hi, i have installed the garfield and run its example geant4garfieldinterface. and also produced some graphs from the geant4 example TestEm5. but now i want to interface and want to use the output of geant4 i…

---

## [Garfield running issue](https://root-forum.cern.ch/t/garfield-running-issue/43076)

<div class="topic-metadata">

**Author:** [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Replies:** 5\
**Last updated:** [January 19, 2021, 4:56pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076 "2021-01-19T16:56:34Z")

</div>

i have installed the garfield and it was running right but now i’m again running an example by creating build with in the example directory and then copying that build and sourcing all and cmake but at the time of make t…

---

## [Compile error with TVector3](https://root-forum.cern.ch/t/compile-error-with-tvector3/43156)

<div class="topic-metadata">

**Author:** [@Satoko\_Asahi](https://root-forum.cern.ch/u/Satoko_Asahi)\
**Replies:** 4\
**Last updated:** [January 19, 2021, 11:22am UTC](https://root-forum.cern.ch/t/compile-error-with-tvector3/43156 "2021-01-19T11:22:56Z")

</div>

Hi, I want to use a TVector3 in my Garfield++ code, but it gives me a following compile error, and I don’t know where exactly my problem comes from. Undefined symbols for architecture x86\_64: “vtable for TVector3”, re…

---

## [Garfield installation issue](https://root-forum.cern.ch/t/garfield-installation-issue/42604)

<div class="topic-metadata">

**Author:** [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Replies:** 65\
**Last updated:** [January 4, 2021, 5:46am UTC](https://root-forum.cern.ch/t/garfield-installation-issue/42604 "2021-01-04T05:46:51Z")

</div>

i’m installing garfield and during that installation i’m having troubled during this. any one help for its installation. thanks for your time.

---

## [Warning energy out of range, increase electron energy integration range](https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/42823)

<div class="topic-metadata">

**Author:** [@Jason\_Forson](https://root-forum.cern.ch/u/Jason_Forson)\
**Replies:** 2\
**Last updated:** [December 22, 2020, 4:35pm UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/42823 "2020-12-22T16:35:55Z")

</div>

Hello, So my Garfield installation otherwise seems to work just fine, the simulations work just fine, gas files made by others work just fine. I just have problems when I try generate Gas files myself. Here’s the code. …

---

## [Photon collision rates could not be calculated?](https://root-forum.cern.ch/t/photon-collision-rates-could-not-be-calculated/42670)

<div class="topic-metadata">

**Author:** [@zhong](https://root-forum.cern.ch/u/zhong)\
**Replies:** 2\
**Last updated:** [December 21, 2020, 1:53am UTC](https://root-forum.cern.ch/t/photon-collision-rates-could-not-be-calculated/42670 "2020-12-21T01:53:46Z")

</div>

Hi I want to use Garfield++ to simulate some gas files The gas parameters are set like this, This prompt appears when running the file,But the program can continue to run I would like to ask how to solve such …

---

## [Segmentation Fault when Generating Gas File](https://root-forum.cern.ch/t/segmentation-fault-when-generating-gas-file/42800)

<div class="topic-metadata">

**Author:** [@Jason\_Forson](https://root-forum.cern.ch/u/Jason_Forson)\
**Replies:** 2\
**Last updated:** [December 20, 2020, 4:58pm UTC](https://root-forum.cern.ch/t/segmentation-fault-when-generating-gas-file/42800 "2020-12-20T16:58:12Z")

</div>

Hello, So my Garfield installation seems to work fine and I can use gas files made by others just fine. I just have a problem when I try to run the gas file generator, as it spits me out with a Segmentation Fault quickl…

---

## [More than one cylindrical components](https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687)

<div class="topic-metadata">

**Author:** [@mugiwara](https://root-forum.cern.ch/u/mugiwara)\
**Replies:** 2\
**Last updated:** [December 13, 2020, 3:38pm UTC](https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687 "2020-12-13T15:38:53Z")

</div>

Hello, I want to create 3 2d “cylindrical” components,with some holes in them,in a specific location in y/x axis and pass them to a sensor.Is it possible by using Garfield++ or will I need Ansys/Elmer/Comsol ? Thank yo…

---

## [Garfield++ message meaning](https://root-forum.cern.ch/t/garfield-message-meaning/42533)

<div class="topic-metadata">

**Author:** [@masato](https://root-forum.cern.ch/u/masato)\
**Replies:** 2\
**Last updated:** [November 30, 2020, 9:24pm UTC](https://root-forum.cern.ch/t/garfield-message-meaning/42533 "2020-11-30T21:24:51Z")

</div>

Hi, I’m using Garfield++, Gmsh, and Elmer to perform gas amplification simulations of electrons. I’m referring to the lem example. The simulation can run to the end, but halfway through I will often get the following …

---

## [What is needed in a mobility file?](https://root-forum.cern.ch/t/what-is-needed-in-a-mobility-file/42099)

<div class="topic-metadata">

**Author:** [@Pete](https://root-forum.cern.ch/u/Pete)\
**Replies:** 2\
**Last updated:** [November 4, 2020, 7:14am UTC](https://root-forum.cern.ch/t/what-is-needed-in-a-mobility-file/42099 "2020-11-04T07:14:10Z")

</div>

Hi, I have recently gone through this paper, http://dx.doi.org/10.1006/adnd.1995.1004, which is, I think, where all of the mobility data currently available in Garfield++ is from based on this q&a that I found, https://…

---

## [Is it possible to plot the drift lines offline?](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988)

<div class="topic-metadata">

**Author:** [@Khang\_Pham](https://root-forum.cern.ch/u/Khang_Pham)\
**Replies:** 3\
**Last updated:** [October 28, 2020, 3:36pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988 "2020-10-28T15:36:25Z")

</div>

I have noticed that it takes a lot of time for the drift lines of electrons and ions to be plotted. So, is there any way to save the drift data for later processing?

---

## [Is it possible to parallelize Garfield?](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641)

<div class="topic-metadata">

**Author:** [@Pete](https://root-forum.cern.ch/u/Pete)\
**Replies:** 24\
**Last updated:** [October 15, 2020, 8:20am UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641 "2020-10-15T08:20:43Z")

</div>

I have recently noticed that when I run my program, only one processor is used, which takes a really long time to execute. I narrow things down to this while loop that takes the majority of the runtime: double xc = 0.…

---

## [How to calculate the induced current for a drift chamber](https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820)

<div class="topic-metadata">

**Author:** [@littlepi](https://root-forum.cern.ch/u/littlepi)\
**Replies:** 2\
**Last updated:** [October 12, 2020, 10:40am UTC](https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820 "2020-10-12T10:40:32Z")

</div>

Dear Garfield++ experts, I am using Garfield++ to simulate a charged particle pass through a drift chamber cell. I need to calculate the total current induced by the avalanche electrons and ions. The attached picture sh…

---

## [Creating gas table under low pressure](https://root-forum.cern.ch/t/creating-gas-table-under-low-pressure/41750)

<div class="topic-metadata">

**Author:** [@catohh](https://root-forum.cern.ch/u/catohh)\
**Replies:** 2\
**Last updated:** [October 7, 2020, 1:21pm UTC](https://root-forum.cern.ch/t/creating-gas-table-under-low-pressure/41750 "2020-10-07T13:21:37Z")

</div>

When I want to run Magboltz to create a gas table under 1Pa, I got the error(see screenshot).

---

## [Garfield++ installation Cmake](https://root-forum.cern.ch/t/garfield-installation-cmake/41462)

<div class="topic-metadata">

**Author:** [@zhong](https://root-forum.cern.ch/u/zhong)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 11:10am UTC](https://root-forum.cern.ch/t/garfield-installation-cmake/41462 "2020-09-17T11:10:11Z")

</div>

Hi I’m just beginning to learnGarfield++. I tried to install Garfield++ using this link http://garfieldpp.web.cern.ch/garfieldpp/getting-started/, no errors were reported during the installation using the cmake GARFIE…

---

## [Looking for ways to optimize code for faster execution](https://root-forum.cern.ch/t/looking-for-ways-to-optimize-code-for-faster-execution/41431)

<div class="topic-metadata">

**Author:** [@Pete](https://root-forum.cern.ch/u/Pete)\
**Replies:** 4\
**Last updated:** [September 16, 2020, 7:59am UTC](https://root-forum.cern.ch/t/looking-for-ways-to-optimize-code-for-faster-execution/41431 "2020-09-16T07:59:37Z")

</div>

I am simulating an electron avalanche using the same method as shown in the GEM example. For my case, there are two main differences: Instead of creating 10 random electrons at a given z0, the primary electrons are cre…

---

## [Is it possible to add two lines of strips on the same plane?](https://root-forum.cern.ch/t/is-it-possible-to-add-two-lines-of-strips-on-the-same-plane/41016)

<div class="topic-metadata">

**Author:** [@Khang\_Pham](https://root-forum.cern.ch/u/Khang_Pham)\
**Replies:** 13\
**Last updated:** [September 3, 2020, 8:40pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-add-two-lines-of-strips-on-the-same-plane/41016 "2020-09-03T20:40:59Z")

</div>

I need some help with adding some strips onto a cathode plane. At the moment, I have a plane at y=0, simulated by AddPlaneY(0.,v,“cathode\_plane”). Next, I want to add in two lines of strips onto two different locations o…

---

## [Plotting the electric field profile](https://root-forum.cern.ch/t/plotting-the-electric-field-profile/41154)

<div class="topic-metadata">

**Author:** [@Satoko\_Asahi](https://root-forum.cern.ch/u/Satoko_Asahi)\
**Replies:** 3\
**Last updated:** [August 27, 2020, 2:37am UTC](https://root-forum.cern.ch/t/plotting-the-electric-field-profile/41154 "2020-08-27T02:37:05Z")

</div>

Hi All, I created a cell with 1 wire (open circle) with a positive HV and 9 wires (black dots) without any HV applied as attached picture (see celllayout.pdf). They are 1 cm apart of each other. When I try to check the …

---

## [Never ending execution](https://root-forum.cern.ch/t/never-ending-execution/40950)

<div class="topic-metadata">

**Author:** [@Christian](https://root-forum.cern.ch/u/Christian)\
**Replies:** 3\
**Last updated:** [August 12, 2020, 5:25pm UTC](https://root-forum.cern.ch/t/never-ending-execution/40950 "2020-08-12T17:25:28Z")

</div>

Hi! Since I couldn’t find any topic here on this subject I’m going to create one. Everytime my code ends running, my terminal keeps stuck at this never ending/doing nothing mode. So whenever my program finishes executi…

---

## [Garfield ++ example](https://root-forum.cern.ch/t/garfield-example/40834)

<div class="topic-metadata">

**Author:** [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Replies:** 5\
**Last updated:** [August 12, 2020, 10:22am UTC](https://root-forum.cern.ch/t/garfield-example/40834 "2020-08-12T10:22:08Z")

</div>

Hi i installed Garfield using the link http://garfieldpp.web.cern.ch/garfieldpp/getting-started/ Now i am trying to run Gem example using the same link At the very last step i got this error(see screenshot)

---

## [Garfield++ Installation](https://root-forum.cern.ch/t/garfield-installation/40820)

<div class="topic-metadata">

**Author:** [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Replies:** 19\
**Last updated:** [August 10, 2020, 1:39pm UTC](https://root-forum.cern.ch/t/garfield-installation/40820 "2020-08-10T13:39:48Z")

</div>

Hi, I am using this link to install Garfield++ into Ubuntu with ROOT-6.18.04 and GEANT4.10.06.p01. When i typed command $ cmake $GARFIELD\_HOME -DCMAKE\_INSTALL\_PREFIX=$GARFIELD\_HOME/garfieldpp-install error occured…

---

## [Need Help with Simulating Electron Avalanche](https://root-forum.cern.ch/t/need-help-with-simulating-electron-avalanche/40630)

<div class="topic-metadata">

**Author:** [@Khang\_Pham](https://root-forum.cern.ch/u/Khang_Pham)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 12:21pm UTC](https://root-forum.cern.ch/t/need-help-with-simulating-electron-avalanche/40630 "2020-07-27T12:21:57Z")

</div>

I need some help with creating electron avalanches. At the moment, I am able to simulate and plot electron avalanches from a track of proton. As shown in the picture below: From what I can understand by tinkering with…

---

## [Plotting Drift Velocity as a function of Electric field with Garfield++](https://root-forum.cern.ch/t/plotting-drift-velocity-as-a-function-of-electric-field-with-garfield/40522)

<div class="topic-metadata">

**Author:** [@etastar](https://root-forum.cern.ch/u/etastar)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 10:03am UTC](https://root-forum.cern.ch/t/plotting-drift-velocity-as-a-function-of-electric-field-with-garfield/40522 "2020-07-20T10:03:33Z")

</div>

Hello, I would like to plot the drift velocity as a function of the drift field. Consider for example the simple GEM example where the the ANSYS files are loaded (no gas file). Appreciate help with a short example. M…

---

## [How to make a 3D version of something similar to the DriftTube example](https://root-forum.cern.ch/t/how-to-make-a-3d-version-of-something-similar-to-the-drifttube-example/40117)

<div class="topic-metadata">

**Author:** [@Khang\_Pham](https://root-forum.cern.ch/u/Khang_Pham)\
**Replies:** 4\
**Last updated:** [July 1, 2020, 8:59am UTC](https://root-forum.cern.ch/t/how-to-make-a-3d-version-of-something-similar-to-the-drifttube-example/40117 "2020-07-01T08:59:51Z")

</div>

I am trying to simulate something that is somewhat similar to the given DriftTube example. What I want to do is to have a cathode plate on the bottom, some anode wires (3) above the plate, and in the drift region between…

[Previous page](https://root-forum.cern.ch/c/garfieldxx/25.md?page=15)

[Next page](https://root-forum.cern.ch/c/garfieldxx/25.md?page=17)
