# The results of the two examples are different

**URL:** <https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182>\
**Category:** Garfield++\
**Created:** [December 26, 2021, 7:25am UTC](https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182 "2021-12-26T07:25:21Z")\
**Posts on this page:** 4\
**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:** [December 26, 2021, 7:25am UTC](https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182/1 "2021-12-26T07:25:21Z")

</div>

Hello, I ran two examples of GEM and COMSOL today. But in both cases, the electron and ion trajectory maps are not the same.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/e/3/e311e7048913c5a6e222b04cdef28479f96bfb99.jpeg)

On the left is the trajectory graph of the GEM example, and on the right is the trajectory graph of COMSOL, and apparently the COMSOL results do not include the structure of the detector.

I looked at the code for the two examples and found that only the files read were different, the GEM read the ANSYS files and the COMSOL read the COMSOL files. The rest of the code is the same for both examples.

I’m not sure why?

---

<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:** [December 28, 2021, 10:13am UTC](https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182/2 "2021-12-28T10:13:26Z")

</div>

Indeed, the field map in the Comsol example only includes the mesh elements in the gas but not the ones in the dielectric (which are useful for visualisation purposes but are not necessary for the simulation).

---

<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:** [December 29, 2021, 1:36am UTC](https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182/3 "2021-12-29T01:36:35Z")

</div>

alright, thank you very much.

---

<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:** [January 12, 2022, 1:37am UTC](https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182/4 "2022-01-12T01:37:14Z")

</div>

Closed on January 12, 2022, 1:37am UTC

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