ofiber is a Python library for analyzing guided-wave propagation in optical fibers and related dielectric waveguiding structures. It provides analytical and numerical tools for mode analysis, dispersion engineering, and far-field radiation modeling.
The theoretical framework closely follows well-established treatments in:
Ghatak & Thyagarajan, An Introduction to Fiber Optics (Cambridge University Press) https://doi.org/10.1017/CBO9781139174770
Chen, Foundations for Guided-Wave Optics (Wiley) https://doi.org/10.1002/0470042222
The accompanying examples and notebooks are intended to support instruction, research reproducibility, and optical design workflows.
Installation
With pip:
pip install ofiber
Or with conda from conda-forge:
conda install -c conda-forge ofiber
Documentation and Examples
Comprehensive user documentation, theory notes, and executable Jupyter examples are available at:
📄 https://ofiber.readthedocs.io
or use immediately in your browser via the JupyterLite button below
Examples
Symmetric planar waveguides
Cylindrical step-index fibers
Far-field radiation patterns
Fiber design and dispersion control
Citation
If you use ofiber in academic, instructional, or applied technical work, please cite:
Prahl, S. (2026). ofiber: A Python module for modeling guided-wave light propagation in optical fibers (Version 0.9.1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.8368598
BibTeX
@software{ofiber_prahl_2026,
author = {Scott Prahl},
title = {ofiber: A Python module for modeling guided-wave light propagation in optical fibers},
year = {2026},
version = {0.9.1},
doi = {10.5281/zenodo.8368598},
url = {https://github.com/scottprahl/ofiber},
publisher = {Zenodo}
}
—
License
ofiber is released under the MIT License.
Metadata
Release files for ofiber 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ofiber-1.0.0.tar.gz | 70.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ofiber-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 106.1 kB
Release files / ofiber-1.0.0.tar.gz
| Download URL | ofiber-1.0.0.tar.gz |
|---|---|
| Size | 70.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ec1421f1ba01877552ecaace4c0f01b1726e6eee6dd9ce8bbd1cd7a0b5bad14
|
|
BLAKE2b-256 checksum How to use checksums |
e07e5929e06da256ab7d78ae179bc143b351354c94924a28b9d8b92b813b39dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 30, 2026.
Transparency logRelease files / ofiber-1.0.0-py3-none-any.whl
| Download URL | ofiber-1.0.0-py3-none-any.whl |
|---|---|
| Size | 35.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a84d7a3f35bd353eba7daa0393fccb2e09190efde80787b7730bb05ee0ce50a
|
|
BLAKE2b-256 checksum How to use checksums |
7d4b8cd8d6d63df21b7baf46c07227f6df45f1a7330dea1389e02c1c8636f855
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 30, 2026.
Transparency log