# What is the exact mean of weighting potential?

**URL:** <https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025>\
**Category:** Garfield++\
**Created:** [May 25, 2023, 8:29am UTC](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025 "2023-05-25T08:29:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [May 25, 2023, 8:29am UTC](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025/1 "2023-05-25T08:29:30Z")

</div>

The class ComponentNeBem3d was used to calculate the weighting field and weighting potential between two plane electrode with 2cm space, the result of the intermediate position between the two plane is:  
weighting field=( -0.00000000, 0.00000000 0.49638254)  
weighting potential=0.04966208

it seems the weighting potential is less one order of magnitude than normal value.

---

<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:** [May 25, 2023, 9:54am UTC](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025/2 "2023-05-25T09:54:36Z")

</div>

I guess @hschindl can 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 25, 2023, 11:31am UTC](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025/3 "2023-05-25T11:31:37Z")

</div>

Hi,  
I’ve forwarded your question to the author of neBEM. He will take a look in the coming days.

---

<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:** [June 5, 2023, 12:15pm UTC](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025/4 "2023-06-05T12:15:57Z")

</div>

Here is the reply from Supratik (author of neBEM):

> Fortunately, this is a simple issue of not taking care of a DC shift that is introduced into the solution to maintain total system charge zero.  
> To get rid of the shift, please modify the ComputeProperties.c.Towards the end of function WtFldPFAtPoint (ComputeProperties.c), potential is being evaluated as  
> \*Potential = totPot \* InvFourPiEps0 …  
> Please add the following lines after the pre-compilation directive block ifdef:  
> if(OptSystemChargeZero)  
> (\*Potential) += WtFieldChDen[IdWtField][NbSystemChargeZero]; // respect total system charge constraint  
> This should take care of the problem.  
> I thank the user who checked the value of weighting potential and reported the problem.

The proposed fix has been implemented in this merge request:

> **[Take care of DC shift introduced into the solution to maintain total system...](https://gitlab.cern.ch/garfield/garfieldpp/-/merge_requests/360)**
>
> Take care of a DC shift in the weighting potential that is introduced into the solution to maintain total system charge zero. Fix implemented by

Should be fixed now. Let us know if the problem persists!

---

<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 19, 2023, 12:16pm UTC](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025/5 "2023-06-19T12:16:27Z")

</div>

Closed on June 19, 2023, 12:16pm UTC

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