Python Interface Quick Reference#
This document summarizes how to use the Python interface of NGSBEM to
assemble boundary integral operators (matrices), and
evaluate potentials in the domain (representation formulas).
The focus is on practical usage of the interface, staying as close as possible to the explicit mathematical structure of the operators.
We deliberately separate
Assembly → bilinear form → matrix
Evaluation → layer potential based on density → field value in the domain
Notation
Symbol |
Meaning |
|---|---|
|
|
|
|
|
|
|
|
|
boundary measure |
|
wavenumber |
1. Assembly: Boundary Integral Operators (Matrices)
Laplace
Description |
Assembly |
|---|---|
Single Layer operator |
|
Double Layer operator |
|
Hypersingular operator |
|
Helmholtz
Description |
Assembly |
|---|---|
Single Layer operator |
|
Double Layer operator |
|
Hypersingular operator |
|
Combined field operator |
|
In practical scattering problems, the Combined Field Integral Equation (CFIE) is typically used because it is stable with respect to interior resonances. The combined field operator could also be constructed from the standard operators above, but it is provided directly for convenience.
Maxwell
Description |
Construction |
|---|---|
Single Layer operator |
|
- |
|
- |
|
Double layer operator |
|
Hypersingular operator |
|
- |
|
- |
2. Potential Evaluation (Representation Formulas)
These operators do not produce matrices. Instead, they evaluate the field generated by a boundary density at points in the domain.
Laplace
Potential |
Interface |
|---|---|
Single Layer potential |
|
Double Layer potential |
|
Helmholtz
Potential |
Interface |
|---|---|
Single Layer potential |
|
Double Layer potential |
|
Maxwell
Potential |
Interface |
|---|---|
Single Layer potential |
|
|
|
|
|
Double Layer potential |
|
Notes:
the Maxwell representation formulas are written explicitly in terms of Helmholtz single-layer potentials.
the double-layer operator is
MaxwellDL, whereas in the representation formula the same contribution appears ascurl(HelmholtzSL(...)).
3. Matrix vs. Potential Operators
Expression pattern |
Result |
Purpose |
|---|---|---|
|
matrix / bilinear form |
assembling boundary operators |
|
field value |
evaluating potentials in the domain |
4. Typical Workflow
Step |
Operation |
|---|---|
1 |
assemble boundary integral operator |
2 |
solve for boundary density |
3 |
evaluate potential in the domain |