# Problem with Silvaco TCAD to Garfield++

**URL:** <https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914>\
**Category:** Garfield++\
**Created:** [June 22, 2026, 8:08pm UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914 "2026-06-22T20:08:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahaines561](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahaines561/32/39947_2.png) [@ahaines561](https://root-forum.cern.ch/u/ahaines561)\
**Post date:** [June 22, 2026, 8:08pm UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/1 "2026-06-22T20:08:29Z")

</div>

I am working on modeling a silicon diode and electron avalanche simulation and am looking to import electric field maps and geometry profiles generated in Silvaco TCAD (specifically .str structure and .sta files). Looking through Garfield++ implementation, classes like ComponentTcad3d and ComponentTcad2d appear to be explicitly tailored for Synopsys Sentaurus formats (.grd and .dat outputs). Does anyone have a solution for Silvaco to Garfield++ conversion steps?

Thank you.

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [June 24, 2026, 4:16am UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/2 "2026-06-24T04:16:00Z")

</div>

@hschindl Can you 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:** [June 24, 2026, 5:58am UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/3 "2026-06-24T05:58:33Z")

</div>

Hi,  
sorry for my late reply! Indeed, ComponentTcad2d/3d can only read Synopsys Sentaurus maps at the moment. I made a (short-lived) attempt to implement an interface for Silvaco some time ago, but then got stuck because I didn’t know how to parse/interpret the Silvaco files. If you have a description of the format, i. e. a recipe for parsing the file and reconstructing the mesh, let’s give it another try!

---

<div class="post-metadata">

**Author:** ![ahaines561](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahaines561/32/39947_2.png) [@ahaines561](https://root-forum.cern.ch/u/ahaines561)\
**Post date:** [June 25, 2026, 1:34pm UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/4 "2026-06-25T13:34:16Z")

</div>

Hi,

Thanks for the follow up. I have been working on implementing a Silvaco TCAD interpreter for Garfield++ as part of my research under Dr. Tricoli at BNL. I’ve parsed the files and reconstructed the mesh format. I am currently sorting out my CERN Gitlab account access, but I will be opening a Merge Request with the implementation so you can hopefully review it. I can also provide you with a document detailing the interals of the Silvaco output files.

Thanks,  
Alec

alechaines561 at gmail dot com if you would like to talk further.

---

<div class="post-metadata">

**Author:** ![ahaines561](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahaines561/32/39947_2.png) [@ahaines561](https://root-forum.cern.ch/u/ahaines561)\
**Post date:** [June 29, 2026, 3:26pm UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/5 "2026-06-29T15:26:29Z")

</div>

Hello @hschindl ,

I worked out the .str/.sta format and wrote a reader for it in Garfield++. It adds LoadSilvaco and InitaliseSilvaco() to Component TcadBase, filing the members as the Sentaurus reader does so ComponentTcad2d and everything else remains unchanged ex: ComponentTcad2d tcad; tcad.InitializeSilvaco(“\_.sta”);. I validated it on a 2D AC-LGAD field map (59685 vertices, 118260 triangles, 13 regions). A few notes on scope. It handles 2D triangular meshes only; the grammar is the same in 3D (tetrahedral t records, non-zero z) but I had no 3D sample to validate against for now, so InitialiseSilvaco returns false for N != 2. It keys on Silvaco quantity codes (120/121 = Ex/Ey, 100 = potential) rather than fixed columns, so it should generalize to other 2D ATLAS solutions; I’ve tested it on Silvaco 5.22 (ATHENA) and 5.38 (ATLAS). One thing worth flagging: query points coinciding almost exactly with a mesh vertex can return status -6 from the shared InTriangle point location, which affects the Sentaurus path identically it’s a edge case issue, and in transport it’s easily handled with a drift time window. github dot com/ahaines561/garfieldpp-silvaco is my github repo I’ve made for the project as I dont have a CERN account (I can’t send links as a new user). ComponentTcadBase.cc and ComponentTcadBase.hh should be the latest versions as of when I send this message. If you would like to read more on the internals of the Silvaco files I’ve provided a .pdf file. If you would like to test out the field interpolator I’ve also provided .sta files in the file silvaco-dat. Let me know if you’d like me to adjust anything if it would be useful in the toolkit or explain anything further.

Thanks for Garfield++,  
Alec Haines

---

<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:** [July 2, 2026, 9:56am UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/6 "2026-07-02T09:56:01Z")

</div>

Hi Alec,

this is absolutely amazing, thanks so much! I’ve committed and pushed your additions to ComponentTcadBase to the repository: [Import Silvaco TCAD field maps (!631) · Merge requests · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/merge_requests/631)  
Do you think we could also add a small working example to the repository (perhaps together with a short tutorial on the website)?  
Would importing a weighting fields/potentials work the same way as with Sentaurus Device?  
We can also continue discussing via e-mail (or set up a Zoom call) if you prefer…  
Thanks again!  
Heinrich

---

<div class="post-metadata">

**Author:** ![ahaines561](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahaines561/32/39947_2.png) [@ahaines561](https://root-forum.cern.ch/u/ahaines561)\
**Post date:** [July 6, 2026, 4:24pm UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/7 "2026-07-06T16:24:02Z")

</div>

Hello @hschindl ,

A small working example and a short tutorial for the website sound like a great idea; I talked it over with my PI, and he agrees.

Regarding the weighting fields and potentials, that functionality isn’t implemented yet. I need to review some specific Silvaco files from a group mate to see how they are structured for those fields. Once I get a look at those and implement the import logic, I’ll be sure to update the documentation and examples accordingly. I’m also currently working on a few minor fixes to the existing implementation.

Moving the discussion to email or Zoom sounds perfect. My email is alechaines561 at gmail dot com.

Have a good week,  
Alec Haines

---

<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:** [July 20, 2026, 4:24pm UTC](https://root-forum.cern.ch/t/problem-with-silvaco-tcad-to-garfield/64914/8 "2026-07-20T16:24:31Z")

</div>

Closed on July 20, 2026, 4:24pm UTC

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