# The problem of importing voltage data (field.txt and weighting field.txt) into Garfield++ in COMSOL

**URL:** <https://root-forum.cern.ch/t/the-problem-of-importing-voltage-data-field-txt-and-weighting-field-txt-into-garfield-in-comsol/47832>\
**Category:** Garfield++\
**Created:** [November 26, 2021, 7:32am UTC](https://root-forum.cern.ch/t/the-problem-of-importing-voltage-data-field-txt-and-weighting-field-txt-into-garfield-in-comsol/47832 "2021-11-26T07:32:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [November 26, 2021, 7:32am UTC](https://root-forum.cern.ch/t/the-problem-of-importing-voltage-data-field-txt-and-weighting-field-txt-into-garfield-in-comsol/47832/1 "2021-11-26T07:32:30Z")

</div>

Hello, when the COMSOL file is read in the Garfield++ program, the error message shown in the figure below will appear. I am not sure if it is a problem with the program or the analysis result in COMSOL.

Thank you

 ![error message](https://root-forum.cern.ch/uploads/default/original/3X/a/8/a8883202a25f120d12e1b47e8b272a4a42dec161.jpeg)

This is my model

 ![三电极](https://root-forum.cern.ch/uploads/default/original/3X/d/9/d9801ac948912250771836ea906bb2901d282386.jpeg)

---

<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:** [November 26, 2021, 7:45am UTC](https://root-forum.cern.ch/t/the-problem-of-importing-voltage-data-field-txt-and-weighting-field-txt-into-garfield-in-comsol/47832/2 "2021-11-26T07:45:42Z")

</div>

I think @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:** [November 26, 2021, 8:29am UTC](https://root-forum.cern.ch/t/the-problem-of-importing-voltage-data-field-txt-and-weighting-field-txt-into-garfield-in-comsol/47832/3 "2021-11-26T08:29:01Z")

</div>

Hi,  
the error message seems to suggest that the file containing the list of potentials has much fewer entries than there are nodes in your mesh. Can you check if this is indeed the case? If yes, perhaps something went wrong during the export of this file in COMSOL?

---

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [November 26, 2021, 1:35pm UTC](https://root-forum.cern.ch/t/the-problem-of-importing-voltage-data-field-txt-and-weighting-field-txt-into-garfield-in-comsol/47832/4 "2021-11-26T13:35:45Z")

</div>

Ok, I’m checking the exported data, thank you

---

<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:** [December 10, 2021, 1:36pm UTC](https://root-forum.cern.ch/t/the-problem-of-importing-voltage-data-field-txt-and-weighting-field-txt-into-garfield-in-comsol/47832/5 "2021-12-10T13:36:36Z")

</div>

Closed on December 10, 2021, 1:36pm UTC

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