Skip to main content

FourierGrating

Löser für die Beugung elektromagnetischer Wellen an periodischen Strukturen nach der Fourier-Modal-Methode (FMM) in zwei Ausprägungen:

  • Differentialmethode – numerische Integration der Propagationsgleichung dF/dy = M(y) F mit einem impliziten Runge–Kutta-Verfahren (Gauß–Legendre, optional Radau IIA), stabilisiert durch die S-Matrix,
  • RCWA – Scheibenzerlegung mit Eigenmoden je Scheibe.

Beide nutzen die schnelle Fourierfaktorisierung (FFF, Normalenvektor-Methode) nach Nevière/Popov, Light Propagation in Periodic Media (2003), mit den in docs/book_errata.md dokumentierten Korrekturen.

isotrop anisotrop (voller ε-Tensor)
1D (eine Fouriertransformation) M2–M4 M5
2D (zwei Fouriertransformationen) M7 M8
Nahfeld (horizontaler + vertikaler Schnitt) M6 (1D), M9 (2D) M6, M9
CUDA (RTX 6000 Ada, sm_89) M10 M10

Status (v0.19): M0–M19 und M22 umgesetzt, M20 teilweise: 1D und 2D, isotrop und anisotrop, RK und RCWA, Nahfeld, CUDA-Backend, Scans/Sweeps, Anwenderhandbuch (docs/user_guide.md), Python-Paket fouriergrating (docs/python.md), gekrümmte Querschnitte (contour2d), CAD-Slicer für STEP-Dateien (docs/cad.md), Parallelisierung einzelner Rechnungen und GPU-residente Ketten (docs/benchmarks.md), wählbare Genauigkeit fp64/mixed/fp32, Koordinatentransformation/ASR für Metalle und isolierte Strukturen mit PML, Streufeldformulierung und Modenanregung (docs/config_format.md), Gradienten über die diskrete Adjungierte mit PyTorch-/JAX-Adaptern (docs/python.md), dispersive Materialien (Sellmeier, Cauchy, Drude–Lorentz, Tabellen; docs/config_format.md). Wheels, sdist und das Handbuch als PDF stehen an den GitHub-Releases. Offen auf dem Zielsystem: GPU-Abnahme (M10) und die quantitative V10-Konvergenzstudie (siehe docs/roadmap.md).

Dokumentation

Dokument Inhalt
docs/handbuch/ Benutzerhandbuch (LaTeX, ausführlich): Grundlagen, Konfiguration, alle Schichttypen, Löserwahl, Konvergenz, Nahfeld, Python, GUI, Rezepte, Fehlersuche; PDF mit scripts/build_docs.sh
docs/user_guide.md Anwenderhandbuch: Installation, Konfiguration, Löserwahl, Scans, Nahfeld, Laufzeiten
docs/cad.md CAD-Slicer: STEP → Schichten, Konfiguration, Geometrieprüfung
docs/python.md Python-Anbindung: Installation (Wheels, CUDA), API, Tests
docs/benchmarks.md Laufzeiten CPU/GPU (fgbench)
docs/implementation_plan/main.pdf Verbindliche Spezifikation: alle Formeln mit Herleitungen, Algorithmen, Tests, Meilensteine (LaTeX-Quelle daneben)
AGENTS.md Arbeitsregeln für KI-Agenten und Entwickler
docs/architecture.md Module, Datenfluss, Schnittstellen
docs/roadmap.md Meilensteine M0–M19 mit Abnahmekriterien und Status
docs/validation.md Referenzfälle mit Sollwerten
docs/conventions.md Zeitkonvention, normierte Einheiten, Koordinaten, Indizes
docs/config_format.md JSON-Eingabeformat
docs/build_almalinux10.md Installation auf AlmaLinux 10 mit CUDA
docs/build_windows.md Installation auf Windows (MSVC 2022 für Wheels und CUDA; MSYS2/MinGW-w64 für die Entwicklung)
docs/book_errata.md Fehler im Buch, die die Implementierung betreffen

Schnellstart

# AlmaLinux 10: Abhängigkeiten (einmalig, siehe docs/build_almalinux10.md)
sudo ./scripts/setup_almalinux10.sh            # --with-cuda für das CUDA-Toolkit

cmake --preset cpu-release                      # oder cuda-release
cmake --build --preset cpu-release
ctest --preset cpu-release

./build/cpu-release/apps/fgsolve --info
./build/cpu-release/apps/fgsolve examples/v3_lamellar_dielectric.json   # schreibt out/v3/efficiencies.csv

Plan als PDF neu erzeugen: ./scripts/build_docs.sh.

Verzeichnisse

include/fg/   öffentliche Header (core, fourier, geometry, physics, smatrix, solvers, field, linalg, io)
src/          Implementierungen, src/cuda/ CUDA-Backend (cuBLAS/cuSOLVER)
apps/         Kommandozeilenprogramme fgsolve (Rechnung), fgbench (Benchmarks)
tests/        GoogleTest-Unit-Tests, Validierungsfälle
examples/     JSON-Konfigurationen der Referenzfälle
scripts/      Setup, Doku-Build, Plot-Skripte (plot_efficiencies.py, plot_nearfield.py)
docs/         Spezifikation und Begleitdokumente

Lizenz

MIT, siehe LICENSE. Der CAD-Slicer (FG_ENABLE_NURBFORGE, Python-Wheels) bindet Nurbforge ein (MIT).

Metadata

Release files for fouriergrating 0.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fouriergrating 0.19.0
File Size Uploaded Provenance Actions
fouriergrating-0.19.0.tar.gz 977.8 kB With provenance Details for fouriergrating-0.19.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fouriergrating 0.19.0
File Actions
fouriergrating-0.19.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for fouriergrating-0.19.0-cp313-cp313-win_amd64.whl
fouriergrating-0.19.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for fouriergrating-0.19.0-cp313-cp313-manylinux_2_28_x86_64.whl
fouriergrating-0.19.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for fouriergrating-0.19.0-cp312-cp312-win_amd64.whl
fouriergrating-0.19.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for fouriergrating-0.19.0-cp312-cp312-manylinux_2_28_x86_64.whl
fouriergrating-0.19.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for fouriergrating-0.19.0-cp311-cp311-win_amd64.whl
fouriergrating-0.19.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for fouriergrating-0.19.0-cp311-cp311-manylinux_2_28_x86_64.whl
fouriergrating-0.19.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for fouriergrating-0.19.0-cp310-cp310-win_amd64.whl
fouriergrating-0.19.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for fouriergrating-0.19.0-cp310-cp310-manylinux_2_28_x86_64.whl

Total release size: 18.8 MB

Release files / fouriergrating-0.19.0.tar.gz

Download URL fouriergrating-0.19.0.tar.gz
Size 977.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2cdde02bb68882008d29ccf84aa68a45e52f3a7d193b63a10f02c1d52469907c
BLAKE2b-256 checksum
How to use checksums
e73f0dc3babec5953d37ddab857f25cc41f31c0d9bf6d1ca8f548da0dcb603ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp313-cp313-win_amd64.whl

Download URL fouriergrating-0.19.0-cp313-cp313-win_amd64.whl
Size 1.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
6db2e47e76e324bce25ebf66352216c26846807b59312e2ffe605133bed56895
BLAKE2b-256 checksum
How to use checksums
d113cfca0432c9153db692dc7ca3d1498d5c413fa53d75513a09a4413b8bd216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL fouriergrating-0.19.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 2.6 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ec95ce6b4564d117d8018b3b5e93841bf991485cc79b945f950e2b1ce85518a8
BLAKE2b-256 checksum
How to use checksums
46fd129b818f679632d268528c508a7e757c05c6a785e63350c9edf71b5149a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp312-cp312-win_amd64.whl

Download URL fouriergrating-0.19.0-cp312-cp312-win_amd64.whl
Size 1.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c5023a7af655a8accd6f7f181976b98423814f1db75bba3dc84684ef450dae5c
BLAKE2b-256 checksum
How to use checksums
4464f532e474b1aa44b5464f4f45c5397b4e20d931330720e92a48991e54cb7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL fouriergrating-0.19.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 2.6 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
359e59163d5d15fe5b3d4562a31a79fb0138f631fcaf7e490f2abaa417fd341e
BLAKE2b-256 checksum
How to use checksums
a8010c7496901644fee9ee2673802ac74ee8257b364a17b5c5101f03e41e1a85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp311-cp311-win_amd64.whl

Download URL fouriergrating-0.19.0-cp311-cp311-win_amd64.whl
Size 1.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
e2c2e20e235340b0deff05f6af42266ef28e6f25ca507f34d2a50be706033634
BLAKE2b-256 checksum
How to use checksums
6f7891c0fe25ab1003fe833ff9f1cdde749ac44966a8d716a649e676ff2a85c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL fouriergrating-0.19.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 2.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6a835787617975d3727aa9df7d3d429bc47b255d2c7512af70d4772297ab0fbb
BLAKE2b-256 checksum
How to use checksums
3c5fc17d9a273e09966a173072ac8781d5d26133e4bd7a50f748fde2d443bbea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp310-cp310-win_amd64.whl

Download URL fouriergrating-0.19.0-cp310-cp310-win_amd64.whl
Size 1.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
1a931e55b4d6b1f36c2d674f60708d1f0b75b754efebcc9357b6561b0e632528
BLAKE2b-256 checksum
How to use checksums
43d501638c0ec39827867a1b2d0f9fc07cbb22a3517ec9d9d36dcbea74b09e64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / fouriergrating-0.19.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL fouriergrating-0.19.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 2.6 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
82dfbd7d0a8272e985a713f131221a034bddefb889e4d16012b21e6cfb2a94b9
BLAKE2b-256 checksum
How to use checksums
6d78c682d60f6b4a9410349747effa6d636e0a13c52f77abb69690ac5f368088
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for fouriergrating 0.19.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for fouriergrating-0.19.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.19.0 This release

9 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page