new file: anasen_fem/dielectrics.dat

modified:   anasen_fem/garfield_sim.py
This commit is contained in:
Vignesh Sitaraman 2026-04-25 12:26:45 -04:00
parent 1a01f332e6
commit 307d5dfc44
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,2 @@
1
13 1.0

View File

@ -4,7 +4,8 @@ import sys
# 1. FIX: Manually load the Garfield library if it's not in the ROOT namespace
# Update this path to your actual installation location
garfield_lib_path = "/home/vs19g/garfieldpp/install/lib/libGarfield.so"
# garfield_lib_path = "/home/vs19g/garfieldpp/install/lib/libGarfield.so" #panguin path
garfield_lib_path = "/home/vsitaraman/garfieldpp/install/lib/libGarfield.so" #laptop path
if os.path.exists(garfield_lib_path):
ROOT.gSystem.Load(garfield_lib_path)
@ -48,7 +49,7 @@ fm = ROOT.Garfield.ComponentElmer()
fm.Initialise("wires2d/mesh.header",
"wires2d/mesh.elements",
"wires2d/mesh.nodes",
"wires2d/dielectrics.dat", # Dielectrics (leave as empty string)
"dielectrics.dat", # Dielectrics (leave as empty string)
"wires2d/elstatics.result",
"mm")