openntn 2.0.0a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. openntn-2.0.0a1/LICENSE +21 -0
  2. openntn-2.0.0a1/LICENSE-APACHE +202 -0
  3. openntn-2.0.0a1/MANIFEST.in +5 -0
  4. openntn-2.0.0a1/PKG-INFO +190 -0
  5. openntn-2.0.0a1/README.md +156 -0
  6. openntn-2.0.0a1/openntn/__init__.py +37 -0
  7. openntn-2.0.0a1/openntn/antenna.py +902 -0
  8. openntn-2.0.0a1/openntn/cdl.py +30 -0
  9. openntn-2.0.0a1/openntn/channel_coefficients.py +1131 -0
  10. openntn-2.0.0a1/openntn/dense_urban.py +137 -0
  11. openntn-2.0.0a1/openntn/dense_urban_scenario.py +280 -0
  12. openntn-2.0.0a1/openntn/lsp.py +552 -0
  13. openntn-2.0.0a1/openntn/models/CDL-A.json +40 -0
  14. openntn-2.0.0a1/openntn/models/CDL-B.json +43 -0
  15. openntn-2.0.0a1/openntn/models/CDL-C.json +36 -0
  16. openntn-2.0.0a1/openntn/models/CDL-D.json +42 -0
  17. openntn-2.0.0a1/openntn/models/Dense_Urban_LOS_Ka_band_DL.json +520 -0
  18. openntn-2.0.0a1/openntn/models/Dense_Urban_LOS_Ka_band_UL.json +520 -0
  19. openntn-2.0.0a1/openntn/models/Dense_Urban_LOS_S_band_DL.json +521 -0
  20. openntn-2.0.0a1/openntn/models/Dense_Urban_LOS_S_band_UL.json +520 -0
  21. openntn-2.0.0a1/openntn/models/Dense_Urban_NLOS_Ka_band_DL.json +532 -0
  22. openntn-2.0.0a1/openntn/models/Dense_Urban_NLOS_Ka_band_UL.json +532 -0
  23. openntn-2.0.0a1/openntn/models/Dense_Urban_NLOS_S_band_DL.json +532 -0
  24. openntn-2.0.0a1/openntn/models/Dense_Urban_NLOS_S_band_UL.json +532 -0
  25. openntn-2.0.0a1/openntn/models/Sub_Urban_LOS_Ka_band_DL.json +521 -0
  26. openntn-2.0.0a1/openntn/models/Sub_Urban_LOS_Ka_band_UL.json +520 -0
  27. openntn-2.0.0a1/openntn/models/Sub_Urban_LOS_S_band_DL.json +521 -0
  28. openntn-2.0.0a1/openntn/models/Sub_Urban_LOS_S_band_UL.json +521 -0
  29. openntn-2.0.0a1/openntn/models/Sub_Urban_NLOS_Ka_band_DL.json +534 -0
  30. openntn-2.0.0a1/openntn/models/Sub_Urban_NLOS_Ka_band_UL.json +535 -0
  31. openntn-2.0.0a1/openntn/models/Sub_Urban_NLOS_S_band_DL.json +534 -0
  32. openntn-2.0.0a1/openntn/models/Sub_Urban_NLOS_S_band_UL.json +534 -0
  33. openntn-2.0.0a1/openntn/models/TDL-A.json +13 -0
  34. openntn-2.0.0a1/openntn/models/TDL-A30.json +31 -0
  35. openntn-2.0.0a1/openntn/models/TDL-B.json +15 -0
  36. openntn-2.0.0a1/openntn/models/TDL-B100.json +31 -0
  37. openntn-2.0.0a1/openntn/models/TDL-C.json +13 -0
  38. openntn-2.0.0a1/openntn/models/TDL-C300.json +31 -0
  39. openntn-2.0.0a1/openntn/models/TDL-D.json +15 -0
  40. openntn-2.0.0a1/openntn/models/Urban_LOS_Ka_band_DL.json +521 -0
  41. openntn-2.0.0a1/openntn/models/Urban_LOS_Ka_band_UL.json +520 -0
  42. openntn-2.0.0a1/openntn/models/Urban_LOS_S_band_DL.json +521 -0
  43. openntn-2.0.0a1/openntn/models/Urban_LOS_S_band_UL.json +520 -0
  44. openntn-2.0.0a1/openntn/models/Urban_NLOS_Ka_band_DL.json +533 -0
  45. openntn-2.0.0a1/openntn/models/Urban_NLOS_Ka_band_UL.json +533 -0
  46. openntn-2.0.0a1/openntn/models/Urban_NLOS_S_band_DL.json +536 -0
  47. openntn-2.0.0a1/openntn/models/Urban_NLOS_S_band_UL.json +533 -0
  48. openntn-2.0.0a1/openntn/models/__init__.py +4 -0
  49. openntn-2.0.0a1/openntn/rays.py +930 -0
  50. openntn-2.0.0a1/openntn/sub_urban.py +137 -0
  51. openntn-2.0.0a1/openntn/sub_urban_scenario.py +280 -0
  52. openntn-2.0.0a1/openntn/system_level_channel.py +423 -0
  53. openntn-2.0.0a1/openntn/system_level_scenario.py +980 -0
  54. openntn-2.0.0a1/openntn/tdl.py +30 -0
  55. openntn-2.0.0a1/openntn/urban.py +137 -0
  56. openntn-2.0.0a1/openntn/urban_scenario.py +277 -0
  57. openntn-2.0.0a1/openntn/utils.py +2103 -0
  58. openntn-2.0.0a1/openntn.egg-info/PKG-INFO +190 -0
  59. openntn-2.0.0a1/openntn.egg-info/SOURCES.txt +92 -0
  60. openntn-2.0.0a1/openntn.egg-info/dependency_links.txt +1 -0
  61. openntn-2.0.0a1/openntn.egg-info/requires.txt +7 -0
  62. openntn-2.0.0a1/openntn.egg-info/top_level.txt +1 -0
  63. openntn-2.0.0a1/pyproject.toml +67 -0
  64. openntn-2.0.0a1/setup.cfg +4 -0
  65. openntn-2.0.0a1/tests/Link_Budget_test.py +298 -0
  66. openntn-2.0.0a1/tests/conftest.py +34 -0
  67. openntn-2.0.0a1/tests/coupling_loss_test.py +101 -0
  68. openntn-2.0.0a1/tests/gpu_device_test.py +92 -0
  69. openntn-2.0.0a1/tests/known_issues_test.py +202 -0
  70. openntn-2.0.0a1/tests/model_parameters_test.py +280 -0
  71. openntn-2.0.0a1/tests/module_names_test.py +21 -0
  72. openntn-2.0.0a1/tests/plotting_test.py +75 -0
  73. openntn-2.0.0a1/tests/readme_quickstart_test.py +43 -0
  74. openntn-2.0.0a1/tests/reference_outputs/dense_urban.npz +0 -0
  75. openntn-2.0.0a1/tests/reference_outputs/environment.json +13 -0
  76. openntn-2.0.0a1/tests/reference_outputs/sub_urban.npz +0 -0
  77. openntn-2.0.0a1/tests/reference_outputs/urban.npz +0 -0
  78. openntn-2.0.0a1/tests/reference_outputs_test.py +294 -0
  79. openntn-2.0.0a1/tests/spec_tables/tr38811_v15.4.0.json +966 -0
  80. openntn-2.0.0a1/tests/statistical_checks.py +67 -0
  81. openntn-2.0.0a1/tests/step_10_test.py +59 -0
  82. openntn-2.0.0a1/tests/step_11_test.py +906 -0
  83. openntn-2.0.0a1/tests/step_12_test.py +156 -0
  84. openntn-2.0.0a1/tests/step_1_test.py +865 -0
  85. openntn-2.0.0a1/tests/step_2_test.py +424 -0
  86. openntn-2.0.0a1/tests/step_3_test.py +128 -0
  87. openntn-2.0.0a1/tests/step_4_1_test.py +300 -0
  88. openntn-2.0.0a1/tests/step_4_2_test.py +337 -0
  89. openntn-2.0.0a1/tests/step_4_3_test.py +1589 -0
  90. openntn-2.0.0a1/tests/step_5_test.py +334 -0
  91. openntn-2.0.0a1/tests/step_6_test.py +172 -0
  92. openntn-2.0.0a1/tests/step_7_test.py +137 -0
  93. openntn-2.0.0a1/tests/step_8_test.py +67 -0
  94. openntn-2.0.0a1/tests/step_9_test.py +95 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Arbeitsbereich Nachrichtentechnik
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ # The sdist carries the test suite with its reference data; the wheel contains only
2
+ # the openntn package (see [tool.setuptools] in pyproject.toml).
3
+ recursive-include openntn/models *.json
4
+ graft tests
5
+ global-exclude __pycache__ *.py[cod]
@@ -0,0 +1,190 @@
1
+ Metadata-Version: 2.4
2
+ Name: openntn
3
+ Version: 2.0.0a1
4
+ Summary: An extension of the Sionna framework with 3GPP TR38.811 non-terrestrial-network channel models
5
+ Author: Tim Düe, Louis Lagona
6
+ Maintainer-email: Louis Lagona <lagona@ant.uni-bremen.de>
7
+ License-Expression: MIT AND Apache-2.0
8
+ Project-URL: Homepage, https://github.com/ant-uni-bremen/OpenNTN
9
+ Project-URL: Source, https://github.com/ant-uni-bremen/OpenNTN
10
+ Project-URL: Issues, https://github.com/ant-uni-bremen/OpenNTN/issues
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Intended Audience :: Telecommunications Industry
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Communications
22
+ Classifier: Topic :: Scientific/Engineering
23
+ Requires-Python: >=3.11
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ License-File: LICENSE-APACHE
27
+ Requires-Dist: sionna<3.0,>=2.0.1
28
+ Requires-Dist: torch>=2.9.1
29
+ Requires-Dist: numpy>=2.2.6
30
+ Requires-Dist: matplotlib>=3.10.8
31
+ Provides-Extra: test
32
+ Requires-Dist: pytest>=9.0; extra == "test"
33
+ Dynamic: license-file
34
+
35
+ <p align="center"><img alt="OpenNTN" src="https://raw.githubusercontent.com/ant-uni-bremen/OpenNTN/v2.0.0a1/docs/images/openntn-logo.png" width="400"></p>
36
+
37
+ <p align="center">3GPP TR 38.811 non-terrestrial network channel models for Sionna</p>
38
+
39
+ <p align="center">
40
+ <a href="https://pypi.org/project/openntn/"><img alt="PyPI version" src="https://img.shields.io/pypi/v/openntn"></a>
41
+ <a href="https://pypi.org/project/openntn/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/openntn"></a>
42
+ <img alt="Licence: MIT AND Apache-2.0" src="https://img.shields.io/badge/licence-MIT%20AND%20Apache--2.0-blue">
43
+ <a href="https://doi.org/10.1109/WSA65299.2025.11202820"><img alt="Paper: WSA 2025" src="https://img.shields.io/badge/paper-WSA%202025-blue"></a>
44
+ </p>
45
+
46
+ ## Overview
47
+
48
+ OpenNTN is an open-source extension of [Sionna](https://nvlabs.github.io/sionna/) that
49
+ implements the non-terrestrial network (NTN) channel models of 3GPP TR 38.811 for
50
+ satellite links. Its channel models follow the interface of Sionna's TR 38.901 models,
51
+ so they can be used in Sionna's link-level and system-level simulations. OpenNTN 2 is
52
+ built on Sionna 2, which uses PyTorch.
53
+
54
+ ## Key features
55
+
56
+ - **Scenarios:** dense urban (`DenseUrban`), urban (`Urban`) and suburban (`SubUrban`),
57
+ with the parameter tables of TR 38.811 clause 6.7.2 and the fast-fading process of
58
+ TR 38.901 clause 7.5.
59
+ - **Bands and links:** S band (1.9 GHz to 4 GHz) and Ka band (19 GHz to 40 GHz), uplink
60
+ and downlink, elevation angles from 10 to 90 degrees.
61
+ - **Propagation (TR 38.811 clause 6.6):** line-of-sight probability, free-space path
62
+ loss, shadow fading, clutter loss, atmospheric gas absorption, ionospheric
63
+ scintillation in the S band and tropospheric scintillation in the Ka band.
64
+ - **Satellite Doppler:** the Doppler shift of the satellite's orbital motion, in
65
+ addition to the motion of the user terminals; it can be switched off.
66
+ - **Antennas:** Sionna-style antenna elements, panels and arrays with the TR 38.901
67
+ element pattern, an omnidirectional pattern, a circular-aperture pattern and the
68
+ co-phased dual-linear-polarization pattern of 3GPP R1-1802551.
69
+ - **Topology:** a generator for one satellite and the user terminals of a single sector
70
+ at a given elevation angle and satellite height.
71
+ - **Sionna integration:** the models are Sionna channel models. They return path
72
+ coefficients and delays in Sionna's format and work with Sionna's channel functions
73
+ and blocks, such as `cir_to_ofdm_channel` and `OFDMChannel`.
74
+
75
+ ## Installation and requirements
76
+
77
+ OpenNTN 2 requires Python 3.11 or later and Sionna 2.0.1 or later within 2.x
78
+ (`sionna>=2.0.1,<3.0`). Further dependencies (PyTorch, NumPy, matplotlib) are installed
79
+ with it.
80
+
81
+ 1. Install PyTorch for your platform, CPU or CUDA, as described at
82
+ https://pytorch.org/get-started/locally/.
83
+ 2. Install OpenNTN:
84
+
85
+ ```sh
86
+ python -m pip install openntn
87
+ ```
88
+
89
+ OpenNTN 2 is a pre-release until 2.0.0, and its interfaces can still change. pip
90
+ installs a pre-release only if no final release of openntn is available; otherwise
91
+ `--pre` is needed (`python -m pip install --pre openntn`). The changes of this version
92
+ are listed in the
93
+ [changelog](https://github.com/ant-uni-bremen/OpenNTN/blob/v2.0.0a1/CHANGELOG.md).
94
+
95
+ > **Note:** openntn 2.x requires Sionna 2.x. Installing it into an environment with
96
+ > Sionna 1.x upgrades Sionna to 2.x. For Sionna 1.x and Sionna 0.19, use the
97
+ > corresponding versions of OpenNTN from the repository at
98
+ > https://github.com/ant-uni-bremen/OpenNTN.
99
+
100
+ ## Quickstart
101
+
102
+ ```python
103
+ from sionna.phy.channel import cir_to_ofdm_channel, subcarrier_frequencies
104
+
105
+ from openntn import Antenna, AntennaArray, Urban
106
+ from openntn.utils import gen_single_sector_topology
107
+
108
+ carrier_frequency = 2.2e9 # S band downlink
109
+ elevation_angle = 50.0 # degrees
110
+
111
+ # User terminal: one antenna; satellite: 4 x 4 dual-polarized array
112
+ ut_array = Antenna(polarization="single", polarization_type="V",
113
+ antenna_pattern="omni", carrier_frequency=carrier_frequency)
114
+ bs_array = AntennaArray(num_rows=4, num_cols=4, polarization="dual",
115
+ polarization_type="cross", antenna_pattern="38.901",
116
+ carrier_frequency=carrier_frequency)
117
+
118
+ channel_model = Urban(carrier_frequency=carrier_frequency, ut_array=ut_array,
119
+ bs_array=bs_array, direction="downlink",
120
+ elevation_angle=elevation_angle)
121
+
122
+ # 16 examples of a single sector: one satellite at 600 km, 4 user terminals
123
+ topology = gen_single_sector_topology(batch_size=16, num_ut=4, scenario="urb",
124
+ elevation_angle=elevation_angle, bs_height=600e3)
125
+ channel_model.set_topology(*topology)
126
+
127
+ # One channel realization: path coefficients a and path delays tau
128
+ a, tau = channel_model(num_time_samples=1, sampling_frequency=15e3)
129
+
130
+ # Frequency response on 72 subcarriers with Sionna's channel functions
131
+ frequencies = subcarrier_frequencies(num_subcarriers=72, subcarrier_spacing=30e3)
132
+ h_freq = cir_to_ofdm_channel(frequencies, a, tau, normalize=True)
133
+ print(h_freq.shape) # [batch, rx, rx antennas, tx, tx antennas, time steps, subcarriers]
134
+ ```
135
+
136
+ The models run on the device in `sionna.phy.config.device`; set it before the antennas
137
+ and the channel model are created.
138
+
139
+ ## Citation
140
+
141
+ If you use OpenNTN in your research, please cite:
142
+
143
+ T. Düe, M. Vakilifard, C. Bockelmann, D. Wübben and A. Dekorsy, "OpenNTN: An
144
+ Open-Source Framework for Non-Terrestrial Network Channel Simulations," 2025 28th
145
+ International Workshop on Smart Antennas (WSA), Erlangen, Germany, 2025,
146
+ https://doi.org/10.1109/WSA65299.2025.11202820
147
+
148
+ ```bibtex
149
+ @inproceedings{OpenNTNPaper,
150
+ author = {T. D\"{u}e and M. Vakilifard and C. Bockelmann and D. W\"{u}bben and A. Dekorsy},
151
+ title = {OpenNTN: An Open-Source Framework for Non-Terrestrial Network Channel Simulations},
152
+ booktitle = {2025 28th International Workshop on Smart Antennas (WSA)},
153
+ address = {Erlangen, Germany},
154
+ year = {2025},
155
+ month = {Sep},
156
+ pages = {1--7},
157
+ doi = {10.1109/WSA65299.2025.11202820}
158
+ }
159
+ ```
160
+
161
+ ## Licence
162
+
163
+ OpenNTN is distributed under the licence expression `MIT AND Apache-2.0`:
164
+
165
+ - Files derived from NVIDIA Sionna are licensed under the Apache License 2.0
166
+ ([LICENSE-APACHE](https://github.com/ant-uni-bremen/OpenNTN/blob/v2.0.0a1/LICENSE-APACHE)).
167
+ Their headers keep NVIDIA's copyright notice and, for modified files, state that
168
+ they were modified at the University of Bremen.
169
+ - All other files are licensed under the MIT License
170
+ ([LICENSE](https://github.com/ant-uni-bremen/OpenNTN/blob/v2.0.0a1/LICENSE)).
171
+
172
+ Data files cannot carry a header. `TDL-A30.json`, `TDL-B100.json` and `TDL-C300.json`
173
+ in `openntn/models` are unchanged copies of Sionna's files and therefore under
174
+ Apache-2.0; the other TDL and CDL files hold the NTN-TDL and NTN-CDL parameters of
175
+ TR 38.811 (Tables 6.9.1-1 to 6.9.1-4 and 6.9.2-1 to 6.9.2-4) and are under MIT like all
176
+ other files.
177
+
178
+ The OpenNTN logo is not covered by these licences.
179
+
180
+ ## Maintainer and contact
181
+
182
+ Louis Lagona <lagona@ant.uni-bremen.de>
183
+
184
+ Bug reports and questions: https://github.com/ant-uni-bremen/OpenNTN/issues
185
+
186
+ ## Acknowledgements
187
+
188
+ OpenNTN was originally written by Tim Düe at the Department of Communications
189
+ Engineering (Arbeitsbereich Nachrichtentechnik) of the University of Bremen,
190
+ https://www.ant.uni-bremen.de/. It builds on NVIDIA Sionna.
@@ -0,0 +1,156 @@
1
+ <p align="center"><img alt="OpenNTN" src="https://raw.githubusercontent.com/ant-uni-bremen/OpenNTN/v2.0.0a1/docs/images/openntn-logo.png" width="400"></p>
2
+
3
+ <p align="center">3GPP TR 38.811 non-terrestrial network channel models for Sionna</p>
4
+
5
+ <p align="center">
6
+ <a href="https://pypi.org/project/openntn/"><img alt="PyPI version" src="https://img.shields.io/pypi/v/openntn"></a>
7
+ <a href="https://pypi.org/project/openntn/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/openntn"></a>
8
+ <img alt="Licence: MIT AND Apache-2.0" src="https://img.shields.io/badge/licence-MIT%20AND%20Apache--2.0-blue">
9
+ <a href="https://doi.org/10.1109/WSA65299.2025.11202820"><img alt="Paper: WSA 2025" src="https://img.shields.io/badge/paper-WSA%202025-blue"></a>
10
+ </p>
11
+
12
+ ## Overview
13
+
14
+ OpenNTN is an open-source extension of [Sionna](https://nvlabs.github.io/sionna/) that
15
+ implements the non-terrestrial network (NTN) channel models of 3GPP TR 38.811 for
16
+ satellite links. Its channel models follow the interface of Sionna's TR 38.901 models,
17
+ so they can be used in Sionna's link-level and system-level simulations. OpenNTN 2 is
18
+ built on Sionna 2, which uses PyTorch.
19
+
20
+ ## Key features
21
+
22
+ - **Scenarios:** dense urban (`DenseUrban`), urban (`Urban`) and suburban (`SubUrban`),
23
+ with the parameter tables of TR 38.811 clause 6.7.2 and the fast-fading process of
24
+ TR 38.901 clause 7.5.
25
+ - **Bands and links:** S band (1.9 GHz to 4 GHz) and Ka band (19 GHz to 40 GHz), uplink
26
+ and downlink, elevation angles from 10 to 90 degrees.
27
+ - **Propagation (TR 38.811 clause 6.6):** line-of-sight probability, free-space path
28
+ loss, shadow fading, clutter loss, atmospheric gas absorption, ionospheric
29
+ scintillation in the S band and tropospheric scintillation in the Ka band.
30
+ - **Satellite Doppler:** the Doppler shift of the satellite's orbital motion, in
31
+ addition to the motion of the user terminals; it can be switched off.
32
+ - **Antennas:** Sionna-style antenna elements, panels and arrays with the TR 38.901
33
+ element pattern, an omnidirectional pattern, a circular-aperture pattern and the
34
+ co-phased dual-linear-polarization pattern of 3GPP R1-1802551.
35
+ - **Topology:** a generator for one satellite and the user terminals of a single sector
36
+ at a given elevation angle and satellite height.
37
+ - **Sionna integration:** the models are Sionna channel models. They return path
38
+ coefficients and delays in Sionna's format and work with Sionna's channel functions
39
+ and blocks, such as `cir_to_ofdm_channel` and `OFDMChannel`.
40
+
41
+ ## Installation and requirements
42
+
43
+ OpenNTN 2 requires Python 3.11 or later and Sionna 2.0.1 or later within 2.x
44
+ (`sionna>=2.0.1,<3.0`). Further dependencies (PyTorch, NumPy, matplotlib) are installed
45
+ with it.
46
+
47
+ 1. Install PyTorch for your platform, CPU or CUDA, as described at
48
+ https://pytorch.org/get-started/locally/.
49
+ 2. Install OpenNTN:
50
+
51
+ ```sh
52
+ python -m pip install openntn
53
+ ```
54
+
55
+ OpenNTN 2 is a pre-release until 2.0.0, and its interfaces can still change. pip
56
+ installs a pre-release only if no final release of openntn is available; otherwise
57
+ `--pre` is needed (`python -m pip install --pre openntn`). The changes of this version
58
+ are listed in the
59
+ [changelog](https://github.com/ant-uni-bremen/OpenNTN/blob/v2.0.0a1/CHANGELOG.md).
60
+
61
+ > **Note:** openntn 2.x requires Sionna 2.x. Installing it into an environment with
62
+ > Sionna 1.x upgrades Sionna to 2.x. For Sionna 1.x and Sionna 0.19, use the
63
+ > corresponding versions of OpenNTN from the repository at
64
+ > https://github.com/ant-uni-bremen/OpenNTN.
65
+
66
+ ## Quickstart
67
+
68
+ ```python
69
+ from sionna.phy.channel import cir_to_ofdm_channel, subcarrier_frequencies
70
+
71
+ from openntn import Antenna, AntennaArray, Urban
72
+ from openntn.utils import gen_single_sector_topology
73
+
74
+ carrier_frequency = 2.2e9 # S band downlink
75
+ elevation_angle = 50.0 # degrees
76
+
77
+ # User terminal: one antenna; satellite: 4 x 4 dual-polarized array
78
+ ut_array = Antenna(polarization="single", polarization_type="V",
79
+ antenna_pattern="omni", carrier_frequency=carrier_frequency)
80
+ bs_array = AntennaArray(num_rows=4, num_cols=4, polarization="dual",
81
+ polarization_type="cross", antenna_pattern="38.901",
82
+ carrier_frequency=carrier_frequency)
83
+
84
+ channel_model = Urban(carrier_frequency=carrier_frequency, ut_array=ut_array,
85
+ bs_array=bs_array, direction="downlink",
86
+ elevation_angle=elevation_angle)
87
+
88
+ # 16 examples of a single sector: one satellite at 600 km, 4 user terminals
89
+ topology = gen_single_sector_topology(batch_size=16, num_ut=4, scenario="urb",
90
+ elevation_angle=elevation_angle, bs_height=600e3)
91
+ channel_model.set_topology(*topology)
92
+
93
+ # One channel realization: path coefficients a and path delays tau
94
+ a, tau = channel_model(num_time_samples=1, sampling_frequency=15e3)
95
+
96
+ # Frequency response on 72 subcarriers with Sionna's channel functions
97
+ frequencies = subcarrier_frequencies(num_subcarriers=72, subcarrier_spacing=30e3)
98
+ h_freq = cir_to_ofdm_channel(frequencies, a, tau, normalize=True)
99
+ print(h_freq.shape) # [batch, rx, rx antennas, tx, tx antennas, time steps, subcarriers]
100
+ ```
101
+
102
+ The models run on the device in `sionna.phy.config.device`; set it before the antennas
103
+ and the channel model are created.
104
+
105
+ ## Citation
106
+
107
+ If you use OpenNTN in your research, please cite:
108
+
109
+ T. Düe, M. Vakilifard, C. Bockelmann, D. Wübben and A. Dekorsy, "OpenNTN: An
110
+ Open-Source Framework for Non-Terrestrial Network Channel Simulations," 2025 28th
111
+ International Workshop on Smart Antennas (WSA), Erlangen, Germany, 2025,
112
+ https://doi.org/10.1109/WSA65299.2025.11202820
113
+
114
+ ```bibtex
115
+ @inproceedings{OpenNTNPaper,
116
+ author = {T. D\"{u}e and M. Vakilifard and C. Bockelmann and D. W\"{u}bben and A. Dekorsy},
117
+ title = {OpenNTN: An Open-Source Framework for Non-Terrestrial Network Channel Simulations},
118
+ booktitle = {2025 28th International Workshop on Smart Antennas (WSA)},
119
+ address = {Erlangen, Germany},
120
+ year = {2025},
121
+ month = {Sep},
122
+ pages = {1--7},
123
+ doi = {10.1109/WSA65299.2025.11202820}
124
+ }
125
+ ```
126
+
127
+ ## Licence
128
+
129
+ OpenNTN is distributed under the licence expression `MIT AND Apache-2.0`:
130
+
131
+ - Files derived from NVIDIA Sionna are licensed under the Apache License 2.0
132
+ ([LICENSE-APACHE](https://github.com/ant-uni-bremen/OpenNTN/blob/v2.0.0a1/LICENSE-APACHE)).
133
+ Their headers keep NVIDIA's copyright notice and, for modified files, state that
134
+ they were modified at the University of Bremen.
135
+ - All other files are licensed under the MIT License
136
+ ([LICENSE](https://github.com/ant-uni-bremen/OpenNTN/blob/v2.0.0a1/LICENSE)).
137
+
138
+ Data files cannot carry a header. `TDL-A30.json`, `TDL-B100.json` and `TDL-C300.json`
139
+ in `openntn/models` are unchanged copies of Sionna's files and therefore under
140
+ Apache-2.0; the other TDL and CDL files hold the NTN-TDL and NTN-CDL parameters of
141
+ TR 38.811 (Tables 6.9.1-1 to 6.9.1-4 and 6.9.2-1 to 6.9.2-4) and are under MIT like all
142
+ other files.
143
+
144
+ The OpenNTN logo is not covered by these licences.
145
+
146
+ ## Maintainer and contact
147
+
148
+ Louis Lagona <lagona@ant.uni-bremen.de>
149
+
150
+ Bug reports and questions: https://github.com/ant-uni-bremen/OpenNTN/issues
151
+
152
+ ## Acknowledgements
153
+
154
+ OpenNTN was originally written by Tim Düe at the Department of Communications
155
+ Engineering (Arbeitsbereich Nachrichtentechnik) of the University of Bremen,
156
+ https://www.ant.uni-bremen.de/. It builds on NVIDIA Sionna.
@@ -0,0 +1,37 @@
1
+ #
2
+ # SPDX-FileCopyrightText: Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ #
5
+ # Modified by the Dept. of Communications Engineering of the University of Bremen.
6
+ # The code is based on implementations provided by the NVIDIA CORPORATION & AFFILIATES
7
+ # in Sionna.
8
+ #
9
+ """
10
+ Channel sub-package of the Sionna library implementing 3GPP TR38.811 models.
11
+ """
12
+ # pylint: disable=line-too-long
13
+ from importlib import metadata as _metadata
14
+
15
+ try:
16
+ __version__ = _metadata.version("openntn")
17
+ except _metadata.PackageNotFoundError:
18
+ # A source tree that is not installed, for example a checkout running the tests
19
+ __version__ = "0+unknown"
20
+
21
+ from .antenna import AntennaElement, AntennaPanel, PanelArray, Antenna, AntennaArray
22
+ from .lsp import LSP, LSPGenerator
23
+ from .rays import Rays, RaysGenerator
24
+ from .system_level_scenario import SystemLevelScenario
25
+ from .channel_coefficients import Topology, ChannelCoefficientsGenerator
26
+ from .system_level_channel import SystemLevelChannel
27
+
28
+ from .dense_urban_scenario import DenseUrbanScenario
29
+ from .dense_urban import DenseUrban
30
+ from .urban_scenario import UrbanScenario
31
+ from .urban import Urban
32
+ from .sub_urban_scenario import SubUrbanScenario
33
+ from .sub_urban import SubUrban
34
+ # TDL and CDL are not yet implemented and only exist here as a template
35
+ from .tdl import TDL
36
+ from .cdl import CDL
37
+