devsim 2.12.0__cp315-abi3t-win_amd64.whl

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 (152) hide show
  1. devsim/__init__.py +33 -0
  2. devsim/__init__.pyi +2155 -0
  3. devsim/devsim_py3.pyd +0 -0
  4. devsim/python_packages/Klaassen.py +336 -0
  5. devsim/python_packages/__init__.py +0 -0
  6. devsim/python_packages/fermi_physics.py +31 -0
  7. devsim/python_packages/model_create.py +261 -0
  8. devsim/python_packages/mos_physics.py +170 -0
  9. devsim/python_packages/pythonmesh.py +131 -0
  10. devsim/python_packages/ramp.py +101 -0
  11. devsim/python_packages/simple_dd.py +75 -0
  12. devsim/python_packages/simple_physics.py +463 -0
  13. devsim/umfpack/umfpack_lgpl.dll +0 -0
  14. devsim/umfpack/umfpack_loader.py +538 -0
  15. devsim/umfpack/umfshim.py +115 -0
  16. devsim-2.12.0.data/data/devsim_data/BUILD.md +135 -0
  17. devsim-2.12.0.data/data/devsim_data/CHANGES.md +935 -0
  18. devsim-2.12.0.data/data/devsim_data/CITATION.cff +33 -0
  19. devsim-2.12.0.data/data/devsim_data/CITATION.md +23 -0
  20. devsim-2.12.0.data/data/devsim_data/CODE_OF_CONDUCT.md +74 -0
  21. devsim-2.12.0.data/data/devsim_data/CONTRIBUTING.md +43 -0
  22. devsim-2.12.0.data/data/devsim_data/HOWTO.md +25 -0
  23. devsim-2.12.0.data/data/devsim_data/INSTALL.md +84 -0
  24. devsim-2.12.0.data/data/devsim_data/LICENSE +202 -0
  25. devsim-2.12.0.data/data/devsim_data/NOTICE +241 -0
  26. devsim-2.12.0.data/data/devsim_data/README.md +99 -0
  27. devsim-2.12.0.data/data/devsim_data/TEST.md +13 -0
  28. devsim-2.12.0.data/data/devsim_data/VERSION +3 -0
  29. devsim-2.12.0.data/data/devsim_data/doc/devsim.pdf +0 -0
  30. devsim-2.12.0.data/data/devsim_data/doc/symdiff.pdf +0 -0
  31. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve0.jpg +0 -0
  32. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve0_3d.jpg +0 -0
  33. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve7.jpg +0 -0
  34. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve7_3d.jpg +0 -0
  35. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/bioapp1_2d.py +85 -0
  36. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/bioapp1_3d.py +85 -0
  37. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/bioapp1_common.py +399 -0
  38. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_2d.geo +62 -0
  39. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_2d.msh +65606 -0
  40. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_3d.geo +183 -0
  41. devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_3d.msh +25808 -0
  42. devsim-2.12.0.data/data/devsim_data/examples/capacitance/cap.lay +1587 -0
  43. devsim-2.12.0.data/data/devsim_data/examples/capacitance/cap1d.py +155 -0
  44. devsim-2.12.0.data/data/devsim_data/examples/capacitance/cap2d.py +200 -0
  45. devsim-2.12.0.data/data/devsim_data/examples/diode/3dblock.geo +48 -0
  46. devsim-2.12.0.data/data/devsim_data/examples/diode/diode_1d.py +94 -0
  47. devsim-2.12.0.data/data/devsim_data/examples/diode/diode_1d_custom.py +159 -0
  48. devsim-2.12.0.data/data/devsim_data/examples/diode/diode_2d.py +68 -0
  49. devsim-2.12.0.data/data/devsim_data/examples/diode/diode_common.py +253 -0
  50. devsim-2.12.0.data/data/devsim_data/examples/diode/diode_current.lay +3271 -0
  51. devsim-2.12.0.data/data/devsim_data/examples/diode/diode_density.lay +3271 -0
  52. devsim-2.12.0.data/data/devsim_data/examples/diode/diode_potential.lay +3272 -0
  53. devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode2d.msh +1477 -0
  54. devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode2d.py +55 -0
  55. devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d.msh +8557 -0
  56. devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d.py +74 -0
  57. devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d_equil.py +43 -0
  58. devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d_float128.py +85 -0
  59. devsim-2.12.0.data/data/devsim_data/examples/diode/laux2d.py +43 -0
  60. devsim-2.12.0.data/data/devsim_data/examples/diode/laux3d.py +54 -0
  61. devsim-2.12.0.data/data/devsim_data/examples/diode/laux_common.py +503 -0
  62. devsim-2.12.0.data/data/devsim_data/examples/diode/pythonmesh3d.py +61 -0
  63. devsim-2.12.0.data/data/devsim_data/examples/diode/ssac_diode.py +57 -0
  64. devsim-2.12.0.data/data/devsim_data/examples/diode/tran_diode.py +63 -0
  65. devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.geo +160 -0
  66. devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.msh +8599 -0
  67. devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.py +96 -0
  68. devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d_create.py +174 -0
  69. devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d_kla.py +162 -0
  70. devsim-2.12.0.data/data/devsim_data/examples/mobility/logElectrons.lay +1327 -0
  71. devsim-2.12.0.data/data/devsim_data/examples/mobility/pythonmesh2d.py +100 -0
  72. devsim-2.12.0.data/data/devsim_data/examples/mobility/test.lay +3385 -0
  73. devsim-2.12.0.data/data/devsim_data/examples/mobility/times.txt +34 -0
  74. devsim-2.12.0.data/data/devsim_data/examples/plotting/visualization.ipynb +160 -0
  75. devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.geo +34 -0
  76. devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.lay +1469 -0
  77. devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.msh +13596 -0
  78. devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.py +177 -0
  79. devsim-2.12.0.data/data/devsim_data/pyproject.toml +33 -0
  80. devsim-2.12.0.data/data/devsim_data/setup.py +64 -0
  81. devsim-2.12.0.data/data/devsim_data/testing/3dtetmesh.msh +281 -0
  82. devsim-2.12.0.data/data/devsim_data/testing/CMakeLists.txt +174 -0
  83. devsim-2.12.0.data/data/devsim_data/testing/Fermi1.py +59 -0
  84. devsim-2.12.0.data/data/devsim_data/testing/Fermi1_float128.py +18 -0
  85. devsim-2.12.0.data/data/devsim_data/testing/GaussFermi.py +38 -0
  86. devsim-2.12.0.data/data/devsim_data/testing/GaussFermi_float128.py +18 -0
  87. devsim-2.12.0.data/data/devsim_data/testing/cap2.py +439 -0
  88. devsim-2.12.0.data/data/devsim_data/testing/cap_mesh.py +33 -0
  89. devsim-2.12.0.data/data/devsim_data/testing/circ1.py +79 -0
  90. devsim-2.12.0.data/data/devsim_data/testing/circ2.py +79 -0
  91. devsim-2.12.0.data/data/devsim_data/testing/circ3.py +18 -0
  92. devsim-2.12.0.data/data/devsim_data/testing/circ4.py +105 -0
  93. devsim-2.12.0.data/data/devsim_data/testing/dio2_element_2d.py +136 -0
  94. devsim-2.12.0.data/data/devsim_data/testing/dio2_element_physics.py +302 -0
  95. devsim-2.12.0.data/data/devsim_data/testing/equation1.py +68 -0
  96. devsim-2.12.0.data/data/devsim_data/testing/erf1.py +52 -0
  97. devsim-2.12.0.data/data/devsim_data/testing/erf2.py +34 -0
  98. devsim-2.12.0.data/data/devsim_data/testing/fpetest1.py +21 -0
  99. devsim-2.12.0.data/data/devsim_data/testing/fpetest2.py +25 -0
  100. devsim-2.12.0.data/data/devsim_data/testing/gmsh_mos3d.geo +272 -0
  101. devsim-2.12.0.data/data/devsim_data/testing/info.py +15 -0
  102. devsim-2.12.0.data/data/devsim_data/testing/kahan.py +24 -0
  103. devsim-2.12.0.data/data/devsim_data/testing/kahan_float128.py +18 -0
  104. devsim-2.12.0.data/data/devsim_data/testing/laux1.py +232 -0
  105. devsim-2.12.0.data/data/devsim_data/testing/mctest.mc +30 -0
  106. devsim-2.12.0.data/data/devsim_data/testing/mctest_user.mc +33 -0
  107. devsim-2.12.0.data/data/devsim_data/testing/mesh1.msh +52 -0
  108. devsim-2.12.0.data/data/devsim_data/testing/mesh1.py +121 -0
  109. devsim-2.12.0.data/data/devsim_data/testing/mesh2.msh +70 -0
  110. devsim-2.12.0.data/data/devsim_data/testing/mesh2.py +210 -0
  111. devsim-2.12.0.data/data/devsim_data/testing/mesh2d.py +105 -0
  112. devsim-2.12.0.data/data/devsim_data/testing/mesh3.py +8 -0
  113. devsim-2.12.0.data/data/devsim_data/testing/mesh4.py +8 -0
  114. devsim-2.12.0.data/data/devsim_data/testing/mos_2d.py +111 -0
  115. devsim-2.12.0.data/data/devsim_data/testing/mos_2d_create.py +207 -0
  116. devsim-2.12.0.data/data/devsim_data/testing/mos_2d_restart.py +69 -0
  117. devsim-2.12.0.data/data/devsim_data/testing/mos_2d_restart2.py +24 -0
  118. devsim-2.12.0.data/data/devsim_data/testing/noise_res.py +51 -0
  119. devsim-2.12.0.data/data/devsim_data/testing/noise_res_2d.py +101 -0
  120. devsim-2.12.0.data/data/devsim_data/testing/other_blas.py +28 -0
  121. devsim-2.12.0.data/data/devsim_data/testing/ptest1.py +53 -0
  122. devsim-2.12.0.data/data/devsim_data/testing/ptest2.py +110 -0
  123. devsim-2.12.0.data/data/devsim_data/testing/pythonmesh1d.py +202 -0
  124. devsim-2.12.0.data/data/devsim_data/testing/res1.py +65 -0
  125. devsim-2.12.0.data/data/devsim_data/testing/res2.py +65 -0
  126. devsim-2.12.0.data/data/devsim_data/testing/res3.py +59 -0
  127. devsim-2.12.0.data/data/devsim_data/testing/rundifftest.py +62 -0
  128. devsim-2.12.0.data/data/devsim_data/testing/ssac_cap.py +145 -0
  129. devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_2d_edge.py +199 -0
  130. devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_2d_element.py +214 -0
  131. devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_3d_edge.py +148 -0
  132. devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_3d_element.py +167 -0
  133. devsim-2.12.0.data/data/devsim_data/testing/ssac_circ.py +18 -0
  134. devsim-2.12.0.data/data/devsim_data/testing/ssac_res.py +30 -0
  135. devsim-2.12.0.data/data/devsim_data/testing/symdiff1.py +54 -0
  136. devsim-2.12.0.data/data/devsim_data/testing/test_common.py +435 -0
  137. devsim-2.12.0.data/data/devsim_data/testing/testfunc.py +65 -0
  138. devsim-2.12.0.data/data/devsim_data/testing/testfunc_extended.py +8 -0
  139. devsim-2.12.0.data/data/devsim_data/testing/transient_circ.py +67 -0
  140. devsim-2.12.0.data/data/devsim_data/testing/transient_circ2.py +67 -0
  141. devsim-2.12.0.data/data/devsim_data/testing/transient_circ3.py +125 -0
  142. devsim-2.12.0.data/data/devsim_data/testing/transient_rc.py +157 -0
  143. devsim-2.12.0.data/data/devsim_data/testing/trimesh1.msh +47 -0
  144. devsim-2.12.0.data/data/devsim_data/testing/trimesh1.py +114 -0
  145. devsim-2.12.0.data/data/devsim_data/testing/trimesh2.py +114 -0
  146. devsim-2.12.0.data/data/devsim_data/testing/utf8_2.py +126 -0
  147. devsim-2.12.0.dist-info/METADATA +122 -0
  148. devsim-2.12.0.dist-info/RECORD +152 -0
  149. devsim-2.12.0.dist-info/WHEEL +5 -0
  150. devsim-2.12.0.dist-info/licenses/LICENSE +202 -0
  151. devsim-2.12.0.dist-info/licenses/NOTICE +241 -0
  152. devsim-2.12.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,135 @@
1
+ # DEVSIM Installation from source
2
+
3
+ ## Introduction
4
+
5
+
6
+ It is usually not necessary to build from source, however the instructions below are provided If you need support, please post a message at [https://forum.devsim.org](https://forum.devsim.org).
7
+
8
+
9
+ ## Prerequisites
10
+
11
+ A Python 3.9 or higher installation needed when building a non-threaded version of the software A Python 3.15 or higher version is required to build both a threaded and non-threaded version at the same time. Optionally, a Python 3.15t or higher version can be used instead.
12
+
13
+ Please see the GitHub Actions workflow files to see how each platform is build for the distriburted packages.
14
+
15
+ ## Free-threaded Python build variant
16
+
17
+ The CMake option `-DPYTHON3T=ON` adds the `devsim_py3t` extension target
18
+ for the free-threaded Stable ABI (`abi3t`) introduced in CPython 3.15.
19
+ Both extensions can be built together, or `-DPYTHON3=OFF` can be used to
20
+ build only the free-threaded variant. Set `PYTHON3T_INCLUDE` to the include
21
+ directory from the intended free-threaded interpreter, for example:
22
+
23
+ ```sh
24
+ python3.15t -c "import sysconfig; print(sysconfig.get_path('include'))"
25
+ ```
26
+
27
+ Pass that path with `-DPYTHON3T_INCLUDE=...`, along with the other settings
28
+ required for your platform. If building both variants, also set
29
+ `PYTHON3_INCLUDE` for the regular Python extension. On Windows, set
30
+ `PYTHON3T_ARCHIVE` to the Stable ABI import library `python3t.lib` provided
31
+ with the free-threaded Python installation.
32
+
33
+ The `devsim_py3t` target uses the CPython 3.15 `abi3t` Limited API, declares
34
+ that it can run with the GIL disabled, and produces `devsim_py3.abi3t.so`
35
+ on macOS and Linux or `devsim_py3.pyd` on Windows. The `devsim_py3` target
36
+ remains unchanged. The new extension supports at most one module instance
37
+ per process and does not support subinterpreters. DEVSIM uses a recursive
38
+ mutex to serialize module API calls. Concurrent calls from different threads
39
+ will raise a `RuntimeError`. Recursive calls from the same thread are allowed,
40
+ supporting the use case where internal module code spawns threads that must
41
+ not call back into the public API. The macOS, Linux, and Windows release scripts
42
+ build separate `cp39-abi3` and `cp315-abi3t` wheels.
43
+
44
+ ## Setting Version Number
45
+
46
+ Please see [HOWTO.md](HOWTO.md) for notes on changing the version numbers of `devsim` and Python.
47
+
48
+ ## Platform Instructions
49
+
50
+ ### Linux
51
+
52
+ #### Building Red Hat 8 compatible version
53
+
54
+ The `AlmaLinux 8` based [manylinux_2_28](https://github.com/pypa/manylinux?tab=readme-ov-file#manylinux_2_28-almalinux-8-based) distribution is used for binary Linux releases, as it is forward compatible with most Linux distributions. It will install all required dependencies, including Python. It is recommended to run this in a docker image.
55
+
56
+ First download the source on your host Linux machine:
57
+ ```
58
+ git clone https://github.com/devsim/devsim
59
+ cd devsim
60
+ git submodule init
61
+ git submodule update
62
+ ```
63
+
64
+ Then to build on the local system, use
65
+ ```
66
+ bash scripts/build_manylinux_2_28.sh version
67
+ ```
68
+
69
+ or in a docker image.
70
+ ```
71
+ bash scripts/build_docker_manylinux_2_28.sh version
72
+ ```
73
+
74
+ Note `version` is replaced with the desired version. Both wheels are placed in
75
+ the `dist` directory. The manylinux build uses regular CPython 3.15 from
76
+ `/opt/python/cp315-cp315/bin/python` for both variants; `PYTHON3_BIN` can
77
+ select another regular CPython 3.15+ when running the script directly. The
78
+ direct build replaces the packaging directories `<version>_abi3` and
79
+ `<version>_abi3t` on subsequent runs. The Docker wrapper uses a
80
+ `devsim_linux_<architecture>_` prefix for those directories inside the image.
81
+
82
+ #### Other Linux Distributions
83
+
84
+ Additional build scripts are available for `Ubuntu` and `Fedora` in the `scripts` directory.
85
+
86
+
87
+ ### Building macOS
88
+
89
+ The macOS release version can be built locally with the following prerequisites:
90
+
91
+ * Xcode
92
+ * Homebrew [https://brew.sh/](https://brew.sh/)
93
+ * Regular CPython 3.15 or newer, with development headers and pip
94
+
95
+ The script uses `/opt/homebrew/bin/python3` by default; set `PYTHON3_BIN` to
96
+ choose another regular CPython 3.15+ interpreter. Both extension variants are
97
+ built together using that installation's Python headers.
98
+
99
+ ```
100
+ git clone https://github.com/devsim/devsim.git
101
+ cd devsim
102
+ git submodule init
103
+ git submodule update
104
+ bash scripts/build_macos.sh version
105
+ ```
106
+
107
+ where `version` is replaced with the desired version. The two Python wheel
108
+ files are placed in `devsim/dist`. The packaging directories
109
+ `devsim_macos_arm64_<version>_abi3` and `devsim_macos_arm64_<version>_abi3t`
110
+ remain in `devsim/dist` and are replaced when rebuilding the same version.
111
+ Note that the resulting package file does not have any dependencies on Homebrew to run.
112
+
113
+ The macOS release workflow builds both wheels on the same runner using the regular Python installation and its headers.
114
+
115
+ ### Building on Windows
116
+
117
+ ***Please note that the Windows build scripts will make changes to an existing MSYS 2 installation.***
118
+
119
+ #### Visual Studio 2026 version
120
+
121
+ This version requires installing:
122
+
123
+ * Python 3.15 or higher
124
+ * MSYS 2 [https://www.msys2.org/](https://www.msys2.org/)
125
+ * Microsoft Visual Studio 2026 [https://visualstudio.microsoft.com/vs/](https://visualstudio.microsoft.com/vs/)
126
+
127
+ as well as the prerequisites for the MSYS version above.
128
+
129
+ From a Python 3.15 environment command prompt:
130
+
131
+ ```
132
+ scripts\build_appveyor.bat x64 python version
133
+ ```
134
+
135
+ where `version` is replaced with the desired version name. The wheel files are then in the `dist` directory.