# Is there a limit on the number of planes you can create in Garfield++?

**URL:** <https://root-forum.cern.ch/t/is-there-a-limit-on-the-number-of-planes-you-can-create-in-garfield/55001>\
**Category:** Garfield++\
**Created:** [May 23, 2023, 3:30pm UTC](https://root-forum.cern.ch/t/is-there-a-limit-on-the-number-of-planes-you-can-create-in-garfield/55001 "2023-05-23T15:30:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Regener](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sebastian_regener/32/33427_2.png) [@Sebastian\_Regener](https://root-forum.cern.ch/u/Sebastian_Regener)\
**Post date:** [May 23, 2023, 3:30pm UTC](https://root-forum.cern.ch/t/is-there-a-limit-on-the-number-of-planes-you-can-create-in-garfield/55001/1 "2023-05-23T15:30:31Z")

</div>

Hello all, I am in the process of learning Garfield++. I am currently working on trying to make set of planes each spaced a distance from each other and with there own defined potentials. I would like to look at the weighted field. Does anyone know if there is a limit on the number of planes that Garfield allows you to place for a simulation? If so would I have to explore making a 3D mesh for this sim?

Thanks for the help!

---

<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:** [May 23, 2023, 3:56pm UTC](https://root-forum.cern.ch/t/is-there-a-limit-on-the-number-of-planes-you-can-create-in-garfield/55001/2 "2023-05-23T15:56:25Z")

</div>

Hi,  
in one `ComponentAnalyticField` object you can have at most two _x_ and two _y_ planes. But you could create multiple `ComponentAnalyticField` instances if you want to build a “stack”.

---

<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:** [June 6, 2023, 3:57pm UTC](https://root-forum.cern.ch/t/is-there-a-limit-on-the-number-of-planes-you-can-create-in-garfield/55001/3 "2023-06-06T15:57:03Z")

</div>

Closed on June 6, 2023, 3:57pm UTC

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