Skip to content

Commit

Permalink
some cleanup and a new config file for a user-defined periodicity
Browse files Browse the repository at this point in the history
  • Loading branch information
LeilaGhaffari committed Jul 22, 2024
1 parent 123b5aa commit 4d15ea3
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/cube/cube_pec.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@
}
}
}

5 changes: 0 additions & 5 deletions examples/cube/cube_periodic_xy.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
},
"Boundaries":
{
// "Periodic":
// {
// "OriginalAttributes": [3, 2],
// "DuplicateAttributes": [4, 6]
// },
"Absorbing":
{
"Attributes": [1, 5],
Expand Down
67 changes: 67 additions & 0 deletions examples/cube/cube_periodic_xy_user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"Problem":
{
"Type": "Eigenmode",
"Verbose": 2,
"Output": "postpro/pec"
},
"Model":
{
"Mesh": "mesh/cube.msh",
"L0": 1.0e-2 // cm
},
"Domains":
{
"Materials":
[
{
"Attributes": [1],
"Permeability": 1.0,
"Permittivity": 2.08,
"LossTan": 0.0004
}
],
"Postprocessing":
{
"Energy":
[
{
"Index": 1,
"Attributes": [1]
}
]
}
},
"Boundaries":
{
"Periodic":
{
"OriginalAttributes": [3, 2],
"DuplicateAttributes": [4, 6]
},
"Absorbing":
{
"Attributes": [1, 5],
"Order": 1
}
},
"Solver":
{
"Order": 1,
"Device": "CPU",
"Eigenmode":
{
"N": 15,
"Tol": 1.0e-8,
"Target": 2.0, // TE f111 ~ 2.9 GHz
"Save": 15
},
"Linear":
{
"Type": "Default",
"KSPType": "GMRES",
"Tol": 1.0e-8,
"MaxIts": 100
}
}
}

0 comments on commit 4d15ea3

Please sign in to comment.