# Problems about fieldView

**URL:** <https://root-forum.cern.ch/t/problems-about-fieldview/54957>\
**Category:** Garfield++\
**Created:** [May 20, 2023, 12:49pm UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957 "2023-05-20T12:49:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [May 20, 2023, 12:49pm UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957/1 "2023-05-20T12:49:36Z")

</div>

The electric field map drawn by **class ViewField** is a little strange.  
This is my model, the upper pixel ( readout ) is applied voltage 0V, the lower layer is applied voltage -600V.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/2/8/289213d6cb3713bcd3c8a326c0834dcf7cd7e145.png)  
The electric field map ( YZ plane ) drawn by comsol is shown below  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/d/9/d908f877aba9e6d0974ade4144db419f77e4670a.png)  
**When I use ViewField to draw the electric field ( potential ), I found the map very strange.**  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/a/6a5ff18f352abbfc1c98f0fd7ac083b100f4ddee.png)

I want to plot a field map like that in comsol to ensure that the data is imported correctly. Can you help me have a look? @hschindl  
Here are my codes and data.  
[mplist.txt](https://root-forum.cern.ch/uploads/short-url/b5WSYZARfF9zHh3RnHjbIscEjnA.txt) (13 Bytes)  
[potential.txt](https://root-forum.cern.ch/uploads/short-url/crobyGp7ZcN0yqF0uBeJGTlt6g6.txt) (1.8 MB)  
[mesh.zip](https://root-forum.cern.ch/uploads/short-url/hoRvx8rIJBHvfmCLykE6ZWr6Jzl.zip) (971.7 KB)  
[pixelCZT2.C](https://root-forum.cern.ch/uploads/short-url/i7mqVXel7jj22gkyYEDQNK0YLYo.C) (2.5 KB)  
[weight-potential.txt](https://root-forum.cern.ch/uploads/short-url/zWL5RKPLqJxNaa9n7lNrzTs3YuZ.txt) (686.8 KB)

---

<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 22, 2023, 11:21am UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957/2 "2023-05-22T11:21:22Z")

</div>

may be @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 23, 2023, 5:16am UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957/3 "2023-05-23T05:16:21Z")

</div>

I get a message `Error parsing mesh.mphtxt.` when trying to load the field map. Did you maybe send an old version?

---

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [May 23, 2023, 5:39am UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957/5 "2023-05-23T05:39:03Z")

</div>

I’m Sorry ,This is the latest data  
[mesh.zip](https://root-forum.cern.ch/uploads/short-url/uA1Y1JV8fs707QldwL3lsdH26zu.zip) (1.4 MB)  
[mplist.txt](https://root-forum.cern.ch/uploads/short-url/b5WSYZARfF9zHh3RnHjbIscEjnA.txt) (13 Bytes)  
[potential.txt](https://root-forum.cern.ch/uploads/short-url/8j3apWpo7odDmYRhdECiY4R4H0H.txt) (661.1 KB)  
[weight-potential.txt](https://root-forum.cern.ch/uploads/short-url/auB85kBiJbFvIrz0YBy7doy1WPP.txt) (686.8 KB)

---

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [May 30, 2023, 1:26pm UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957/6 "2023-05-30T13:26:02Z")

</div>

@hschindl hello,I’m sorry to bother you, but may I ask if you have solved this problem？

---

<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 13, 2023, 1:26pm UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957/7 "2023-06-13T13:26:04Z")

</div>

Closed on June 13, 2023, 1:26pm UTC

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