# Elmer solver input file problem plz someone help me! i'm beginner in Garfield++

**URL:** <https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027>\
**Category:** Garfield++\
**Created:** [October 27, 2024, 10:07pm UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027 "2024-10-27T22:07:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [October 27, 2024, 10:07pm UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/1 "2024-10-27T22:07:20Z")

</div>

i am encountering with this type of error when i creating & running a .sif file for double layer GEM detector.

ELMER SOLVER (v 9.0) STARTED AT: 2024/10/27 15:26:38  
ParCommInit: Initialize #PEs: 1  
MAIN:  
MAIN: =============================================================  
MAIN: ElmerSolver finite element software, Welcome!  
…

MAIN: Reading Model: case.sif  
LoadInputFile: Scanning input file: case.sif  
LoadInputFile: Scanning only size info  
LoadInputFile: First time visiting  
LoadInputFile: Reading base load of sif file  
ERROR:: LoadInputFile:  
ERROR:: LoadInputFile: Unknown specifier: [target boundaries]  
ERROR:: LoadInputFile: In section: [boundary condition 5]  
ERROR:: LoadInputFile: For property name:[boundary condition 6]  
STOP 1  
here is the sif file. plz suggest me!  
[siffile.ipynb](https://root-forum.cern.ch/uploads/short-url/q8qRy6HOBV5FPQVfohKMWrnWlwj.ipynb) (12.4 KB)

---

<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:** [October 28, 2024, 6:31am UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/2 "2024-10-28T06:31:38Z")

</div>

This is probably more a question for the Elmer forum, but perhaps @jrenner can help.  
Could you also upload your .sif file?

---

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [October 28, 2024, 9:35am UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/3 "2024-10-28T09:35:50Z")

</div>

Here is the .sif file  
[sif.ipynb](https://root-forum.cern.ch/uploads/short-url/inUzAjvBTTP3cYlmJmKUWIUEXqb.ipynb) (6.2 KB)

---

<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:** [October 28, 2024, 12:52pm UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/4 "2024-10-28T12:52:05Z")

</div>

Isn’t that a python notebook that you use to create the .sif file, not the .sif itself?

---

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [October 28, 2024, 3:11pm UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/5 "2024-10-28T15:11:07Z")

</div>

It is a .sif file

Check Keywords Warn

! Set drift distance, E fields, and voltage between GEMs  
! dist: distance in cm  
! Edrift: drift field in V/cm  
! Etrans: transfer field in V/cm  
! Eind: induction field in V/cm  
! deltaV1: voltage (in V) between 1st GEM  
! deltaV2: voltage (in V) between 2nd GEM  
$ldist = {dist\_lower\_electrode}  
$udist = {dist\_upper\_electrode}  
$mdist = {dist\_mid\_electrode}  
$Edrift = {E\_drift}  
$Etrans = {E\_trans}  
$Eind = {E\_ind}  
$deltaV1= {V\_GEM1}  
$deltaV2= {V\_GEM2}  
$WTuel = {wt\_uel}  
$WTucp = {wt\_ucp}  
$WTlcp = {wt\_lcp}  
$WTucp2 = {wt\_ucp2}  
$WTlcp2 = {wt\_lcp2}  
$WTlel = {wt\_lel}  
“”"

gemcell\_sif\_text = “”"  
Header  
Mesh DB “.” “gemcell”  
End

Simulation  
Coordinate System = Cartesian 3D  
Simulation Type = Steady State  
Steady State Max Iterations = 1  
Output File = “gemcell.result”  
Post File = “gemcell.ep”  
End

Constants  
Permittivity Of Vacuum = 8.8542e-12  
End

Body 1  
Equation = 1  
Material = 1  
End

Body 2  
Equation = 1  
Material = 2  
End

Body 3  
Equation = 1  
Material = 3  
End

Body 4  
Equation = 1  
Material = 3  
End

Body 5  
Equation = 1  
Material = 2  
End

Body 6  
Equation = 1  
Material = 3  
End

Body 7  
Equation = 1  
Material = 3  
End

Equation 1  
Active Solvers(1) = 1  
Calculate Electric Energy = True  
End

Solver 1  
Equation = Stat Elec Solver  
Variable = Potential  
Variable DOFs = 1  
Procedure = “StatElecSolve” “StatElecSolver”  
Calculate Electric Field = True  
Calculate Electric Flux = False  
Linear System Solver = Iterative  
Linear System Iterative Method = BiCGStab  
Linear System Max Iterations = 1000  
Linear System Abort Not Converged = True  
Linear System Convergence Tolerance = 1.0e-10  
Linear System Preconditioning = ILU1  
Steady State Convergence Tolerance = 5.0e-7  
! Adaptive Mesh Refinement = True  
! Adaptive Remesh = True  
! Adaptive Save Mesh = True  
! Adaptive Error Limit = 1.0e-12  
End

! Gas  
Material 1  
Relative Permittivity = 1  
Density = 1  
End

! Dielectric  
Material 2  
Relative Permittivity = 3.23  
Density = 2  
End

! Copper  
Material 3  
Relative Permittivity = 1.0e10  
Density = 3  
End

! Upper copper plate of 1st GEM  
Boundary Condition 1  
Target Boundaries = 1  
Potential = $-1_Etrans_mdist - deltaV1 + WTucp  
End

! Lower copper plate  
Boundary Condition 2  
Target Boundaries = 2  
Potential = $-1_Etrans_mdist + WTlcp  
End

! Upper copper plate of 2nd GEM  
Boundary Condition 3  
Target Boundaries = 3  
Potential = $-1_Eind_ldist - deltaV2 + WTucp2  
End

! Lower copper plate of 2nd GEM  
Boundary Condition 4  
Target Boundaries = 4  
Potential = $-1_Eind_ldist + WTlcp2  
End

! Upper electrode  
Boundary Condition 5  
Target Boundaries = 5  
Potential = $-1_Eind_ldist_Etrans_mdist - deltaV1 + deltaV2 - Edrift\*udist + WTuel  
End  
! Lower electrode  
Boundary Condition 6  
Target Boundaries = 6  
Potential = $WTlel  
End

! Set up boundary A for hole 1  
Boundary Condition 7  
Target Boundaries = 7  
End  
! Link to half A of hole 2  
Boundary Condition 8  
Target Boundaries = 8  
Periodic BC = 7  
Periodic BC Potential = Logical True  
End

! Set up boundary B for hole 3  
Boundary Condition 9  
Target Boundaries = 9  
End  
! Link to half B of hole 2  
Boundary Condition 10  
Target Boundaries = 10  
Periodic BC = 9  
Periodic BC Potential = Logical True  
End

! Set up boundary C for hole 1 side  
Boundary Condition 11  
Target Boundaries = 11  
End  
! Link to the side containing hole 3  
Boundary Condition 12  
Target Boundaries = 12  
Periodic BC = 11  
Periodic BC Potential = Logical True  
End

---

<div class="post-metadata">

**Author:** ![jrenner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@jrenner](https://root-forum.cern.ch/u/jrenner)\
**Post date:** [October 29, 2024, 10:36am UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/6 "2024-10-29T10:36:49Z")

</div>

In the Jupyter notebook that was sent, the keyword `End` appears to be missing after the declaration of `Boundary Condition 5`:

```auto
! Upper electrode
Boundary Condition 5
  Target Boundaries = 5
  Potential = $-1*Eind*ldist*Etrans*mdist - deltaV1 + deltaV2 - Edrift*udist + WTuel
  
! Lower electrode
Boundary Condition 6
  Target Boundaries = 6
  Potential = $WTlel
End

```

This seems to have been corrected in the version you sent in the previous message. Did that solve the problem or change the error output?

---

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [October 29, 2024, 11:17am UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/7 "2024-10-29T11:17:35Z")

</div>

yeah thank you! i corrected it but when i running this .sif file, i’m encountering with this problem. And also tell me is my .sif file is correct for double Layer GEM Detector?  
ELMER SOLVER (v 9.0) STARTED AT: 2024/10/29 16:28:56

ParCommInit: Initialize #PEs: 1

MAIN:

MAIN: =============================================================

MAIN: ElmerSolver finite element software, Welcome!

MAIN: This program is free software licensed under (L)GPL

MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.

MAIN: Webpage [Elmer - Elmer - CSC Company Site](http://www.csc.fi/elmer), Email [elmeradm@csc.fi](mailto:elmeradm@csc.fi)

MAIN: Version: 9.0 (Rev: unknown, Compiled: 2024-08-07)

MAIN: Running one task without MPI parallelization.

MAIN: Running with just one thread per task.

MAIN: HYPRE library linked in.

MAIN: MUMPS library linked in.

MAIN: Lua interpreter linked in.

MAIN: =============================================================

MAIN:

MAIN:

MAIN: -------------------------------------

MAIN: Reading Model: case.sif

LoadInputFile: Scanning input file: case.sif

LoadInputFile: Scanning only size info

LoadInputFile: First time visiting

LoadInputFile: Reading base load of sif file

LoadInputFile: Loading input file: case.sif

LoadInputFile: Reading base load of sif file

CheckKeyword: Unlisted keyword: [periodic bc potential] in section: [boundary condition 8]

CheckKeyword: Unlisted keyword: [periodic bc potential] in section: [boundary condition 10]

CheckKeyword: Unlisted keyword: [periodic bc potential] in section: [boundary condition 12]

LoadInputFile: Number of BCs: 12

LoadInputFile: Number of Body Forces: 0

LoadInputFile: Number of Initial Conditions: 0

LoadInputFile: Number of Materials: 3

LoadInputFile: Number of Equations: 1

LoadInputFile: Number of Solvers: 1

LoadInputFile: Number of Bodies: 7

ListTagKeywords: Setting weight for keywords!

ListTagKeywords: No parameters width suffix: normalize by area

ListTagKeywords: Setting weight for keywords!

ListTagKeywords: No parameters width suffix: normalize by volume

Loading user function library: [StatElecSolve]…[StatElecSolver\_Init0]

ERROR:: LoadMesh: Requested mesh \> ./Gemcell \< does not exist!

STOP 1

i have attached the .sif file plz someone help me  
[sif.txt](https://root-forum.cern.ch/uploads/short-url/gJlb97KDD9V2vRUD8K8ueQww8Tb.txt) (3.5 KB)

---

<div class="post-metadata">

**Author:** ![jrenner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@jrenner](https://root-forum.cern.ch/u/jrenner)\
**Post date:** [October 29, 2024, 11:35am UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/8 "2024-10-29T11:35:08Z")

</div>

It looks like it can’t find the mesh `Gemcell`. Have you created the mesh in Gmsh and converted it to Elmer format?

The `.sif` file alone will not simulate a double layer GEM if the corresponding geometry has not been created and meshed correctly.

---

<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:** [November 12, 2024, 11:36am UTC](https://root-forum.cern.ch/t/elmer-solver-input-file-problem-plz-someone-help-me-im-beginner-in-garfield/62027/9 "2024-11-12T11:36:02Z")

</div>

Closed on November 12, 2024, 11:36am UTC

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