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.
- devsim/__init__.py +33 -0
- devsim/__init__.pyi +2155 -0
- devsim/devsim_py3.pyd +0 -0
- devsim/python_packages/Klaassen.py +336 -0
- devsim/python_packages/__init__.py +0 -0
- devsim/python_packages/fermi_physics.py +31 -0
- devsim/python_packages/model_create.py +261 -0
- devsim/python_packages/mos_physics.py +170 -0
- devsim/python_packages/pythonmesh.py +131 -0
- devsim/python_packages/ramp.py +101 -0
- devsim/python_packages/simple_dd.py +75 -0
- devsim/python_packages/simple_physics.py +463 -0
- devsim/umfpack/umfpack_lgpl.dll +0 -0
- devsim/umfpack/umfpack_loader.py +538 -0
- devsim/umfpack/umfshim.py +115 -0
- devsim-2.12.0.data/data/devsim_data/BUILD.md +135 -0
- devsim-2.12.0.data/data/devsim_data/CHANGES.md +935 -0
- devsim-2.12.0.data/data/devsim_data/CITATION.cff +33 -0
- devsim-2.12.0.data/data/devsim_data/CITATION.md +23 -0
- devsim-2.12.0.data/data/devsim_data/CODE_OF_CONDUCT.md +74 -0
- devsim-2.12.0.data/data/devsim_data/CONTRIBUTING.md +43 -0
- devsim-2.12.0.data/data/devsim_data/HOWTO.md +25 -0
- devsim-2.12.0.data/data/devsim_data/INSTALL.md +84 -0
- devsim-2.12.0.data/data/devsim_data/LICENSE +202 -0
- devsim-2.12.0.data/data/devsim_data/NOTICE +241 -0
- devsim-2.12.0.data/data/devsim_data/README.md +99 -0
- devsim-2.12.0.data/data/devsim_data/TEST.md +13 -0
- devsim-2.12.0.data/data/devsim_data/VERSION +3 -0
- devsim-2.12.0.data/data/devsim_data/doc/devsim.pdf +0 -0
- devsim-2.12.0.data/data/devsim_data/doc/symdiff.pdf +0 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve0.jpg +0 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve0_3d.jpg +0 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve7.jpg +0 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/Ve7_3d.jpg +0 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/bioapp1_2d.py +85 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/bioapp1_3d.py +85 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/bioapp1_common.py +399 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_2d.geo +62 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_2d.msh +65606 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_3d.geo +183 -0
- devsim-2.12.0.data/data/devsim_data/examples/bioapp1/disk_3d.msh +25808 -0
- devsim-2.12.0.data/data/devsim_data/examples/capacitance/cap.lay +1587 -0
- devsim-2.12.0.data/data/devsim_data/examples/capacitance/cap1d.py +155 -0
- devsim-2.12.0.data/data/devsim_data/examples/capacitance/cap2d.py +200 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/3dblock.geo +48 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/diode_1d.py +94 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/diode_1d_custom.py +159 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/diode_2d.py +68 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/diode_common.py +253 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/diode_current.lay +3271 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/diode_density.lay +3271 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/diode_potential.lay +3272 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode2d.msh +1477 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode2d.py +55 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d.msh +8557 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d.py +74 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d_equil.py +43 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/gmsh_diode3d_float128.py +85 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/laux2d.py +43 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/laux3d.py +54 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/laux_common.py +503 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/pythonmesh3d.py +61 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/ssac_diode.py +57 -0
- devsim-2.12.0.data/data/devsim_data/examples/diode/tran_diode.py +63 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.geo +160 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.msh +8599 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.py +96 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d_create.py +174 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/gmsh_mos2d_kla.py +162 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/logElectrons.lay +1327 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/pythonmesh2d.py +100 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/test.lay +3385 -0
- devsim-2.12.0.data/data/devsim_data/examples/mobility/times.txt +34 -0
- devsim-2.12.0.data/data/devsim_data/examples/plotting/visualization.ipynb +160 -0
- devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.geo +34 -0
- devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.lay +1469 -0
- devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.msh +13596 -0
- devsim-2.12.0.data/data/devsim_data/examples/vectorpotential/twowire.py +177 -0
- devsim-2.12.0.data/data/devsim_data/pyproject.toml +33 -0
- devsim-2.12.0.data/data/devsim_data/setup.py +64 -0
- devsim-2.12.0.data/data/devsim_data/testing/3dtetmesh.msh +281 -0
- devsim-2.12.0.data/data/devsim_data/testing/CMakeLists.txt +174 -0
- devsim-2.12.0.data/data/devsim_data/testing/Fermi1.py +59 -0
- devsim-2.12.0.data/data/devsim_data/testing/Fermi1_float128.py +18 -0
- devsim-2.12.0.data/data/devsim_data/testing/GaussFermi.py +38 -0
- devsim-2.12.0.data/data/devsim_data/testing/GaussFermi_float128.py +18 -0
- devsim-2.12.0.data/data/devsim_data/testing/cap2.py +439 -0
- devsim-2.12.0.data/data/devsim_data/testing/cap_mesh.py +33 -0
- devsim-2.12.0.data/data/devsim_data/testing/circ1.py +79 -0
- devsim-2.12.0.data/data/devsim_data/testing/circ2.py +79 -0
- devsim-2.12.0.data/data/devsim_data/testing/circ3.py +18 -0
- devsim-2.12.0.data/data/devsim_data/testing/circ4.py +105 -0
- devsim-2.12.0.data/data/devsim_data/testing/dio2_element_2d.py +136 -0
- devsim-2.12.0.data/data/devsim_data/testing/dio2_element_physics.py +302 -0
- devsim-2.12.0.data/data/devsim_data/testing/equation1.py +68 -0
- devsim-2.12.0.data/data/devsim_data/testing/erf1.py +52 -0
- devsim-2.12.0.data/data/devsim_data/testing/erf2.py +34 -0
- devsim-2.12.0.data/data/devsim_data/testing/fpetest1.py +21 -0
- devsim-2.12.0.data/data/devsim_data/testing/fpetest2.py +25 -0
- devsim-2.12.0.data/data/devsim_data/testing/gmsh_mos3d.geo +272 -0
- devsim-2.12.0.data/data/devsim_data/testing/info.py +15 -0
- devsim-2.12.0.data/data/devsim_data/testing/kahan.py +24 -0
- devsim-2.12.0.data/data/devsim_data/testing/kahan_float128.py +18 -0
- devsim-2.12.0.data/data/devsim_data/testing/laux1.py +232 -0
- devsim-2.12.0.data/data/devsim_data/testing/mctest.mc +30 -0
- devsim-2.12.0.data/data/devsim_data/testing/mctest_user.mc +33 -0
- devsim-2.12.0.data/data/devsim_data/testing/mesh1.msh +52 -0
- devsim-2.12.0.data/data/devsim_data/testing/mesh1.py +121 -0
- devsim-2.12.0.data/data/devsim_data/testing/mesh2.msh +70 -0
- devsim-2.12.0.data/data/devsim_data/testing/mesh2.py +210 -0
- devsim-2.12.0.data/data/devsim_data/testing/mesh2d.py +105 -0
- devsim-2.12.0.data/data/devsim_data/testing/mesh3.py +8 -0
- devsim-2.12.0.data/data/devsim_data/testing/mesh4.py +8 -0
- devsim-2.12.0.data/data/devsim_data/testing/mos_2d.py +111 -0
- devsim-2.12.0.data/data/devsim_data/testing/mos_2d_create.py +207 -0
- devsim-2.12.0.data/data/devsim_data/testing/mos_2d_restart.py +69 -0
- devsim-2.12.0.data/data/devsim_data/testing/mos_2d_restart2.py +24 -0
- devsim-2.12.0.data/data/devsim_data/testing/noise_res.py +51 -0
- devsim-2.12.0.data/data/devsim_data/testing/noise_res_2d.py +101 -0
- devsim-2.12.0.data/data/devsim_data/testing/other_blas.py +28 -0
- devsim-2.12.0.data/data/devsim_data/testing/ptest1.py +53 -0
- devsim-2.12.0.data/data/devsim_data/testing/ptest2.py +110 -0
- devsim-2.12.0.data/data/devsim_data/testing/pythonmesh1d.py +202 -0
- devsim-2.12.0.data/data/devsim_data/testing/res1.py +65 -0
- devsim-2.12.0.data/data/devsim_data/testing/res2.py +65 -0
- devsim-2.12.0.data/data/devsim_data/testing/res3.py +59 -0
- devsim-2.12.0.data/data/devsim_data/testing/rundifftest.py +62 -0
- devsim-2.12.0.data/data/devsim_data/testing/ssac_cap.py +145 -0
- devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_2d_edge.py +199 -0
- devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_2d_element.py +214 -0
- devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_3d_edge.py +148 -0
- devsim-2.12.0.data/data/devsim_data/testing/ssac_cap_3d_element.py +167 -0
- devsim-2.12.0.data/data/devsim_data/testing/ssac_circ.py +18 -0
- devsim-2.12.0.data/data/devsim_data/testing/ssac_res.py +30 -0
- devsim-2.12.0.data/data/devsim_data/testing/symdiff1.py +54 -0
- devsim-2.12.0.data/data/devsim_data/testing/test_common.py +435 -0
- devsim-2.12.0.data/data/devsim_data/testing/testfunc.py +65 -0
- devsim-2.12.0.data/data/devsim_data/testing/testfunc_extended.py +8 -0
- devsim-2.12.0.data/data/devsim_data/testing/transient_circ.py +67 -0
- devsim-2.12.0.data/data/devsim_data/testing/transient_circ2.py +67 -0
- devsim-2.12.0.data/data/devsim_data/testing/transient_circ3.py +125 -0
- devsim-2.12.0.data/data/devsim_data/testing/transient_rc.py +157 -0
- devsim-2.12.0.data/data/devsim_data/testing/trimesh1.msh +47 -0
- devsim-2.12.0.data/data/devsim_data/testing/trimesh1.py +114 -0
- devsim-2.12.0.data/data/devsim_data/testing/trimesh2.py +114 -0
- devsim-2.12.0.data/data/devsim_data/testing/utf8_2.py +126 -0
- devsim-2.12.0.dist-info/METADATA +122 -0
- devsim-2.12.0.dist-info/RECORD +152 -0
- devsim-2.12.0.dist-info/WHEEL +5 -0
- devsim-2.12.0.dist-info/licenses/LICENSE +202 -0
- devsim-2.12.0.dist-info/licenses/NOTICE +241 -0
- 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.
|