Skip to content

Commit

Permalink
WIP: Interior boundary postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Jun 5, 2024
1 parent 736a931 commit 3c28a27
Show file tree
Hide file tree
Showing 15 changed files with 139 additions and 258 deletions.
32 changes: 2 additions & 30 deletions docs/src/config/boundaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
],
"Postprocessing":
{
"Side": <string>,
"SurfaceFlux":
[
...
Expand Down Expand Up @@ -123,19 +122,6 @@ each terminal boundary.

`"Postprocessing"` : Top-level object for configuring boundary postprocessing.

`"Side" ["SmallerRefractiveIndex"]` : Defines the postprocessing side for internal
boundary surfaces where the fields are in general double-valued. This is only relevant for
output for [boundary visualization with ParaView](../guide/postprocessing.md#Visualization).
The available options are:

- `"SmallerRefractiveIndex"` : Take the value from the side where the material index of
refraction is smaller (speed of light is larger). Typically this selects the vacuum
side. For anisotropic materials, the index of refraction associated with the principal
direction with the smallest value is used.
- `"LargerRefractiveIndex"` : Take the value from the side where the material index of
refraction is larger (speed of light is smaller). Typically this selects the non-vacuum
side.

`"SurfaceFlux"` : Array of objects for postprocessing surface flux.

`"Dielectric"` : Array of objects for postprocessing surface interface dielectric loss.
Expand Down Expand Up @@ -567,8 +553,7 @@ axis-aligned bounding box for all elements making up the postprocessing boundary
"Type": <string>,
"Thickness": <float>,
"Permittivity": <float>,
"LossTan": <float>,
"Side": <string>
"LossTan": <float>
},
...
]
Expand All @@ -580,8 +565,7 @@ with
`"Index" [None]` : Index of this dielectric interface, used in postprocessing output files.

`"Attributes" [None]` : Integer array of mesh boundary attributes for this dielectric
interface. If the interface consists of multiple elements with different `"Side"` values,
use the `"Elements"` array described below.
interface.

`"Type" [None]` : Specifies the type of dielectric interface for this postprocessing
boundary. See also [this page](../reference.md#Bulk-and-interface-dielectric-loss).
Expand All @@ -603,15 +587,3 @@ units.
be the interface layer permittivity for the specific `"Type"` of interface specified.

`"LossTan" [0.0]` : Loss tangent for this lossy dielectric interface.

`"Side" ["SmallerRefractiveIndex"]` : Defines the postprocessing side when this dielectric
interface is an internal boundary surface (and thus the electric field on the boundary is in
general double-valued). The available options are:

- `"SmallerRefractiveIndex"` : Take the value from the side where the material index of
refraction is smaller (speed of light is larger). Typically this selects the vacuum
side. For anisotropic materials, the index of refraction associated with the principal
direction with the smallest value is used.
- `"LargerRefractiveIndex"` : Take the value from the side where the material index of
refraction is larger (speed of light is smaller). Typically this selects the non-vacuum
side.
2 changes: 1 addition & 1 deletion docs/src/guide/boundaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ reference.

Unlike lumped ports, wave port boundaries cannot be defined internal to the
computational domain and instead must exist only on the outer boundary of the domain
(they are to be "one-sided" in the sense that mesh elements only exist on one side of
(they are to be "one-sided" in the sense that mesh elements only exist on one side of
the boundary).

Wave ports are not currently compatible with nonconformal mesh refinement.
Expand Down
6 changes: 2 additions & 4 deletions examples/cpw/cpw_coax_adaptive.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,15 @@
"Type": "MS",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "LargerRefractiveIndex"
"LossTan": 1.0
},
{
"Index": 3,
"Attributes": [11],
"Type": "MA",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "SmallerRefractiveIndex"
"LossTan": 1.0
}
]
}
Expand Down
6 changes: 2 additions & 4 deletions examples/cpw/cpw_coax_uniform.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,15 @@
"Type": "MS",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "LargerRefractiveIndex"
"LossTan": 1.0
},
{
"Index": 3,
"Attributes": [11],
"Type": "MA",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "SmallerRefractiveIndex"
"LossTan": 1.0
}
]
}
Expand Down
6 changes: 2 additions & 4 deletions examples/cpw/cpw_lumped_adaptive.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,15 @@
"Type": "MS",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "LargerRefractiveIndex"
"LossTan": 1.0
},
{
"Index": 3,
"Attributes": [13],
"Type": "MA",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "SmallerRefractiveIndex"
"LossTan": 1.0
}
]
}
Expand Down
6 changes: 2 additions & 4 deletions examples/cpw/cpw_lumped_uniform.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,15 @@
"Type": "MS",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "LargerRefractiveIndex"
"LossTan": 1.0
},
{
"Index": 3,
"Attributes": [13],
"Type": "MA",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "SmallerRefractiveIndex"
"LossTan": 1.0
}
]
}
Expand Down
6 changes: 2 additions & 4 deletions examples/cpw/cpw_wave_adaptive.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,15 @@
"Type": "MS",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "LargerRefractiveIndex"
"LossTan": 1.0
},
{
"Index": 3,
"Attributes": [11],
"Type": "MA",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "SmallerRefractiveIndex"
"LossTan": 1.0
}
]
}
Expand Down
6 changes: 2 additions & 4 deletions examples/cpw/cpw_wave_uniform.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,15 @@
"Type": "MS",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "LargerRefractiveIndex"
"LossTan": 1.0
},
{
"Index": 3,
"Attributes": [11],
"Type": "MA",
"Thickness": 2.0e-3, // μm
"Permittivity": 10.0,
"LossTan": 1.0,
"Side": "SmallerRefractiveIndex"
"LossTan": 1.0
}
]
}
Expand Down
Loading

0 comments on commit 3c28a27

Please sign in to comment.