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.20): M0–M19, M22 und M23 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 in 1D und 2D (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), kompakte Referenz für Sprachmodell-Agenten im Wheel (fg.llm_reference()). 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
python/fouriergrating/LLM_REFERENCE.md Kompakte Referenz für Sprachmodell-Agenten (englisch), im Wheel enthalten: python -m fouriergrating bzw. fg.llm_reference()
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.20.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.20.0
File Size Uploaded Provenance Actions
fouriergrating-0.20.0.tar.gz 1.0 MB With provenance Details for fouriergrating-0.20.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fouriergrating 0.20.0
File Actions
fouriergrating-0.20.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for fouriergrating-0.20.0-cp313-cp313-win_amd64.whl
fouriergrating-0.20.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.20.0-cp313-cp313-manylinux_2_28_x86_64.whl
fouriergrating-0.20.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for fouriergrating-0.20.0-cp312-cp312-win_amd64.whl
fouriergrating-0.20.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.20.0-cp312-cp312-manylinux_2_28_x86_64.whl
fouriergrating-0.20.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for fouriergrating-0.20.0-cp311-cp311-win_amd64.whl
fouriergrating-0.20.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.20.0-cp311-cp311-manylinux_2_28_x86_64.whl
fouriergrating-0.20.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for fouriergrating-0.20.0-cp310-cp310-win_amd64.whl
fouriergrating-0.20.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.20.0-cp310-cp310-manylinux_2_28_x86_64.whl

Total release size: 19.3 MB

Release files / fouriergrating-0.20.0.tar.gz

Download URL fouriergrating-0.20.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
bde7cb9a3df22eb2ddc120dc5c2cde241e4a0f0b62e5c819bafe594af04160cd
BLAKE2b-256 checksum
How to use checksums
44b7c00cc77fce8e081b47821022c6cc8d7340f7eaac2f7d90b25ed908a33616
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp313-cp313-win_amd64.whl
Size 1.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
5a764026f8afcd1aa4d4d62b50f542e84632856bab1e89e60cfee85b8b63e82a
BLAKE2b-256 checksum
How to use checksums
a24da583c03f4da317ebf7b9ad6bb1681cb72706db464b1616e904993dff6a93
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 2.7 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b8e3ed9002663ea4c8529d7fe4bacee15affbd1fc64aad8763933777be2731f9
BLAKE2b-256 checksum
How to use checksums
379fc8996957fec248bb3bd927e3c4dd62d42b307d80308bfbab7f61e8af1729
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp312-cp312-win_amd64.whl
Size 1.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
99c43c72a26b852771b88e6be7e583d402a0922198b7c66d318b672093073362
BLAKE2b-256 checksum
How to use checksums
29547911503ebbbc46e52e70917f90f318f14500692cf2c52c5d90f1cb5784b8
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 2.7 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
02e63d96e359784d1435cea48339b47e72d822e79b30be56e9a77efe18f2a09e
BLAKE2b-256 checksum
How to use checksums
86c82ef9b53f18e7187a3481f88fb4b0c3a75b3307aeb4daf3275b9ed273c7ed
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp311-cp311-win_amd64.whl
Size 1.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
f967c24495c36835913b994cc29b30e21c867536d2ee9dc33ab7663c05600ace
BLAKE2b-256 checksum
How to use checksums
5c527ba1b948d6863ef9f2d95bf08be405855cd40bc4a30db744a1396c74f773
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 2.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f3328afb6c9d077f98ed20df64f1e1b5237d26563dccdedab635c35a4f1f2eb2
BLAKE2b-256 checksum
How to use checksums
a1e1fa9b45e98eceedb8a1ed270eb7b1a188516fc751f24b515e5b9cfbb1e7f0
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp310-cp310-win_amd64.whl
Size 1.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
affcd38d1e4358ffa73bc80bcf3f56b79ee17d39e539e31a14d705e32ae60625
BLAKE2b-256 checksum
How to use checksums
49bcdb9fa071e18bf9c22a89dacd2adc7d722563b677de080f23594dd2b8b5f5
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 19, 2026.

Transparency log

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

Download URL fouriergrating-0.20.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 2.7 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ccf43870b35d4f7cff006dffb4ca60d27a77837ddf9eb5e5b3503052a2151f34
BLAKE2b-256 checksum
How to use checksums
8ffbb4515e1880585bd17c6a158c5cdf16b9ebccef79e8138568499ab469e097
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 19, 2026.

Transparency log

Security for fouriergrating 0.20.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.20.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 19, 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.20.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