# Plotting Problems encountered while import into Garfield. i'm beginner in garfield++

**URL:** <https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126>\
**Category:** Garfield++\
**Tags:** python, root\
**Created:** [November 2, 2024, 8:24am UTC](https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126 "2024-11-02T08:24:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [November 2, 2024, 8:24am UTC](https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126/1 "2024-11-02T08:24:57Z")

</div>

hello sir, i have successfully created doublegemcell.geo file with just shift the z position of single GEM layer and meshed them for double GEM detector(1st and 2nd GEM) between electrode. After solving solver input file and import in garfield++ but when i draw field map for double layer it only show single layer, similarly electric field map showing double but looks like not well(uncorrect). i have attached screenshot below

 ![Screenshot from 2024-11-02 13-58-45](https://root-forum.cern.ch/uploads/default/original/3X/4/b/4b2bebcfd5a63e97da6eccad5c44a5e9ae2dff67.png)  
 ![Screenshot from 2024-11-02 14-01-13](https://root-forum.cern.ch/uploads/default/original/3X/b/9/b9ee5b66eea26eea5f83d630e82d08861505eaee.png)  
 ![Screenshot from 2024-11-02 14-01-41](https://root-forum.cern.ch/uploads/default/original/3X/e/d/edef3890dbcff459112d98734158b8ce34dcb17d.png)

Sir can you please tell me that in general my doublegemcell.sif is correct or not for gas ionization and avalanche simulation for double layer GEM detector, means did i calculate boundary condition or potential field correctly for double layer GEM detector? i have attached my doublegemcell.sif  
[doublegemcell.sif.txt](https://root-forum.cern.ch/uploads/short-url/qu3dhbpBKflwf6HLskBEB93OqQm.txt) (3.4 KB)

plz suggest me @hschindl @Piet sir 🙏

This is the total height of the first layer, which includes the thickness of the copper and dielectric:  
zOffset1=2⋅tC+tD  
this is how adding 2nd layer with layer layer  
for 2nd layer zOffset2=(2⋅tC+tD)+tG  
my geometry file is shown is

 ![Screenshot from 2024-10-30 17-32-00](https://root-forum.cern.ch/uploads/default/original/3X/7/9/7906e0e073295ce7dc81bafd7a86c784e546e982.png)

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [November 2, 2024, 9:14am UTC](https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126/2 "2024-11-02T09:14:59Z")

</div>

Hi,

Thanks for reaching out. Adding @hschindl in the loop.  
Best,  
D

---

<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:** [November 4, 2024, 5:10pm UTC](https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126/3 "2024-11-04T17:10:19Z")

</div>

Hi,

> [@Dk\_ntm](#):
>
> when i draw field map for double layer it only show single layer

Did you change the range of the plot (`SetArea`) to include the second GEM?

---

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [November 4, 2024, 6:00pm UTC](https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126/4 "2024-11-04T18:00:47Z")

</div>

Thanks for your reply 🙏  
No, i didn’t change the plot (SetArea). Sir can you please tell me that in general my doublegemcell.sif is correct or not for gas ionization and avalanche simulation for double layer GEM detector, means did i calculate boundary condition or potential field correctly for double layer GEM detector?

---

<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:** [November 4, 2024, 8:33pm UTC](https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126/5 "2024-11-04T20:33:33Z")

</div>

I think you’ll need to change the z-range of the `ViewFEMesh` plot such that it also covers the second layer. I agree that the plot of the electric potential looks a bit strange, but let’s first check that your map actually includes the second layer.

---

<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:** [November 18, 2024, 8:34pm UTC](https://root-forum.cern.ch/t/plotting-problems-encountered-while-import-into-garfield-im-beginner-in-garfield/62126/6 "2024-11-18T20:34:18Z")

</div>

Closed on November 18, 2024, 8:34pm UTC

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