devsim 2.10.0__cp39-abi3-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 +17 -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 +262 -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 +517 -0
- devsim/umfpack/umfshim.py +116 -0
- devsim-2.10.0.data/data/devsim_data/BUILD.md +94 -0
- devsim-2.10.0.data/data/devsim_data/CHANGES.md +773 -0
- devsim-2.10.0.data/data/devsim_data/CITATION.md +23 -0
- devsim-2.10.0.data/data/devsim_data/CODE_OF_CONDUCT.md +74 -0
- devsim-2.10.0.data/data/devsim_data/CONTRIBUTING.md +43 -0
- devsim-2.10.0.data/data/devsim_data/HOWTO.md +27 -0
- devsim-2.10.0.data/data/devsim_data/INSTALL.md +65 -0
- devsim-2.10.0.data/data/devsim_data/README.md +97 -0
- devsim-2.10.0.data/data/devsim_data/TEST.md +13 -0
- devsim-2.10.0.data/data/devsim_data/doc/devsim.pdf +0 -0
- devsim-2.10.0.data/data/devsim_data/doc/symdiff.pdf +0 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/Ve0.jpg +0 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/Ve0_3d.jpg +0 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/Ve7.jpg +0 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/Ve7_3d.jpg +0 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/bioapp1_2d.py +85 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/bioapp1_3d.py +85 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/bioapp1_common.py +399 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/disk_2d.geo +62 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/disk_2d.msh +65606 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/disk_3d.geo +183 -0
- devsim-2.10.0.data/data/devsim_data/examples/bioapp1/disk_3d.msh +25808 -0
- devsim-2.10.0.data/data/devsim_data/examples/capacitance/cap.lay +1587 -0
- devsim-2.10.0.data/data/devsim_data/examples/capacitance/cap1d.py +155 -0
- devsim-2.10.0.data/data/devsim_data/examples/capacitance/cap2d.py +200 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/3dblock.geo +48 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/diode_1d.py +94 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/diode_1d_custom.py +159 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/diode_2d.py +68 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/diode_common.py +253 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/diode_current.lay +3271 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/diode_density.lay +3271 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/diode_potential.lay +3272 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/gmsh_diode2d.msh +1477 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/gmsh_diode2d.py +55 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/gmsh_diode3d.msh +8557 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/gmsh_diode3d.py +74 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/gmsh_diode3d_equil.py +43 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/gmsh_diode3d_float128.py +85 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/laux2d.py +43 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/laux3d.py +54 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/laux_common.py +503 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/pythonmesh3d.py +61 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/ssac_diode.py +57 -0
- devsim-2.10.0.data/data/devsim_data/examples/diode/tran_diode.py +63 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.geo +160 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.msh +8599 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/gmsh_mos2d.py +96 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/gmsh_mos2d_create.py +174 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/gmsh_mos2d_kla.py +162 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/logElectrons.lay +1327 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/pythonmesh2d.py +100 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/test.lay +3385 -0
- devsim-2.10.0.data/data/devsim_data/examples/mobility/times.txt +34 -0
- devsim-2.10.0.data/data/devsim_data/examples/plotting/visualization.ipynb +160 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/arrhenius.py +24 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/deftest.py +48 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/modellist1.py +9 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/models1.py +41 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/ordered.py +9 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/parsetest.py +107 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/remove1.py +8 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/subexpression1.py +10 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/table.py +7 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/undefined1.py +10 -0
- devsim-2.10.0.data/data/devsim_data/examples/symdiff/utf8.py +10 -0
- devsim-2.10.0.data/data/devsim_data/examples/vectorpotential/twowire.geo +34 -0
- devsim-2.10.0.data/data/devsim_data/examples/vectorpotential/twowire.lay +1469 -0
- devsim-2.10.0.data/data/devsim_data/examples/vectorpotential/twowire.msh +13596 -0
- devsim-2.10.0.data/data/devsim_data/examples/vectorpotential/twowire.py +177 -0
- devsim-2.10.0.data/data/devsim_data/setup.cfg +23 -0
- devsim-2.10.0.data/data/devsim_data/setup.py +58 -0
- devsim-2.10.0.data/data/devsim_data/testing/3dtetmesh.msh +281 -0
- devsim-2.10.0.data/data/devsim_data/testing/CMakeLists.txt +175 -0
- devsim-2.10.0.data/data/devsim_data/testing/Fermi1.py +59 -0
- devsim-2.10.0.data/data/devsim_data/testing/Fermi1_float128.py +18 -0
- devsim-2.10.0.data/data/devsim_data/testing/GaussFermi.py +38 -0
- devsim-2.10.0.data/data/devsim_data/testing/GaussFermi_float128.py +18 -0
- devsim-2.10.0.data/data/devsim_data/testing/cap2.py +439 -0
- devsim-2.10.0.data/data/devsim_data/testing/cap_mesh.py +33 -0
- devsim-2.10.0.data/data/devsim_data/testing/circ1.py +79 -0
- devsim-2.10.0.data/data/devsim_data/testing/circ2.py +79 -0
- devsim-2.10.0.data/data/devsim_data/testing/circ3.py +18 -0
- devsim-2.10.0.data/data/devsim_data/testing/circ4.py +105 -0
- devsim-2.10.0.data/data/devsim_data/testing/dio2_element_2d.py +136 -0
- devsim-2.10.0.data/data/devsim_data/testing/dio2_element_physics.py +302 -0
- devsim-2.10.0.data/data/devsim_data/testing/equation1.py +68 -0
- devsim-2.10.0.data/data/devsim_data/testing/erf1.py +52 -0
- devsim-2.10.0.data/data/devsim_data/testing/erf2.py +34 -0
- devsim-2.10.0.data/data/devsim_data/testing/fpetest1.py +21 -0
- devsim-2.10.0.data/data/devsim_data/testing/fpetest2.py +25 -0
- devsim-2.10.0.data/data/devsim_data/testing/gmsh_mos3d.geo +272 -0
- devsim-2.10.0.data/data/devsim_data/testing/info.py +11 -0
- devsim-2.10.0.data/data/devsim_data/testing/kahan.py +24 -0
- devsim-2.10.0.data/data/devsim_data/testing/kahan_float128.py +18 -0
- devsim-2.10.0.data/data/devsim_data/testing/laux1.py +232 -0
- devsim-2.10.0.data/data/devsim_data/testing/mctest.mc +30 -0
- devsim-2.10.0.data/data/devsim_data/testing/mctest_user.mc +33 -0
- devsim-2.10.0.data/data/devsim_data/testing/mesh1.msh +52 -0
- devsim-2.10.0.data/data/devsim_data/testing/mesh1.py +121 -0
- devsim-2.10.0.data/data/devsim_data/testing/mesh2.msh +70 -0
- devsim-2.10.0.data/data/devsim_data/testing/mesh2.py +210 -0
- devsim-2.10.0.data/data/devsim_data/testing/mesh2d.py +105 -0
- devsim-2.10.0.data/data/devsim_data/testing/mesh3.py +8 -0
- devsim-2.10.0.data/data/devsim_data/testing/mesh4.py +8 -0
- devsim-2.10.0.data/data/devsim_data/testing/mos_2d.py +111 -0
- devsim-2.10.0.data/data/devsim_data/testing/mos_2d_create.py +207 -0
- devsim-2.10.0.data/data/devsim_data/testing/mos_2d_restart.py +69 -0
- devsim-2.10.0.data/data/devsim_data/testing/mos_2d_restart2.py +24 -0
- devsim-2.10.0.data/data/devsim_data/testing/noise_res.py +51 -0
- devsim-2.10.0.data/data/devsim_data/testing/noise_res_2d.py +101 -0
- devsim-2.10.0.data/data/devsim_data/testing/ptest1.py +53 -0
- devsim-2.10.0.data/data/devsim_data/testing/ptest2.py +110 -0
- devsim-2.10.0.data/data/devsim_data/testing/pythonmesh1d.py +202 -0
- devsim-2.10.0.data/data/devsim_data/testing/res1.py +65 -0
- devsim-2.10.0.data/data/devsim_data/testing/res2.py +65 -0
- devsim-2.10.0.data/data/devsim_data/testing/res3.py +59 -0
- devsim-2.10.0.data/data/devsim_data/testing/rundifftest.py +62 -0
- devsim-2.10.0.data/data/devsim_data/testing/ssac_cap.py +145 -0
- devsim-2.10.0.data/data/devsim_data/testing/ssac_cap_2d_edge.py +199 -0
- devsim-2.10.0.data/data/devsim_data/testing/ssac_cap_2d_element.py +214 -0
- devsim-2.10.0.data/data/devsim_data/testing/ssac_cap_3d_edge.py +148 -0
- devsim-2.10.0.data/data/devsim_data/testing/ssac_cap_3d_element.py +167 -0
- devsim-2.10.0.data/data/devsim_data/testing/ssac_circ.py +18 -0
- devsim-2.10.0.data/data/devsim_data/testing/ssac_res.py +30 -0
- devsim-2.10.0.data/data/devsim_data/testing/symdiff1.py +54 -0
- devsim-2.10.0.data/data/devsim_data/testing/test_common.py +435 -0
- devsim-2.10.0.data/data/devsim_data/testing/testfunc.py +65 -0
- devsim-2.10.0.data/data/devsim_data/testing/testfunc_extended.py +8 -0
- devsim-2.10.0.data/data/devsim_data/testing/transient_circ.py +67 -0
- devsim-2.10.0.data/data/devsim_data/testing/transient_circ2.py +67 -0
- devsim-2.10.0.data/data/devsim_data/testing/transient_circ3.py +125 -0
- devsim-2.10.0.data/data/devsim_data/testing/transient_rc.py +157 -0
- devsim-2.10.0.data/data/devsim_data/testing/trimesh1.msh +47 -0
- devsim-2.10.0.data/data/devsim_data/testing/trimesh1.py +114 -0
- devsim-2.10.0.data/data/devsim_data/testing/trimesh2.py +114 -0
- devsim-2.10.0.data/data/devsim_data/testing/utf8_2.py +126 -0
- devsim-2.10.0.dist-info/METADATA +121 -0
- devsim-2.10.0.dist-info/RECORD +157 -0
- devsim-2.10.0.dist-info/WHEEL +5 -0
- devsim-2.10.0.dist-info/licenses/LICENSE +202 -0
- devsim-2.10.0.dist-info/licenses/NOTICE +241 -0
- devsim-2.10.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
from devsim import (
|
|
6
|
+
element_from_edge_model,
|
|
7
|
+
node_model,
|
|
8
|
+
set_parameter,
|
|
9
|
+
solve,
|
|
10
|
+
write_devices,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from devsim.python_packages.simple_physics import GetContactBiasName, PrintCurrents
|
|
14
|
+
import diode_common
|
|
15
|
+
|
|
16
|
+
device = "diode3d"
|
|
17
|
+
region = "Bulk"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
diode_common.Create3DGmshMesh(device, region)
|
|
21
|
+
|
|
22
|
+
# this is is the devsim format
|
|
23
|
+
write_devices(file="gmsh_diode3d_out.msh")
|
|
24
|
+
|
|
25
|
+
diode_common.SetParameters(device=device, region=region)
|
|
26
|
+
|
|
27
|
+
####
|
|
28
|
+
#### NetDoping
|
|
29
|
+
####
|
|
30
|
+
node_model(
|
|
31
|
+
device=device, region=region, name="Acceptors", equation="1.0e18*step(0.5e-5-z);"
|
|
32
|
+
)
|
|
33
|
+
node_model(
|
|
34
|
+
device=device, region=region, name="Donors", equation="1.0e18*step(z-0.5e-5);"
|
|
35
|
+
)
|
|
36
|
+
node_model(device=device, region=region, name="NetDoping", equation="Donors-Acceptors;")
|
|
37
|
+
|
|
38
|
+
diode_common.InitialSolution(device, region)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
####
|
|
42
|
+
#### Initial DC solution
|
|
43
|
+
####
|
|
44
|
+
solve(type="dc", absolute_error=1.0, relative_error=1e-12, maximum_iterations=30)
|
|
45
|
+
|
|
46
|
+
###
|
|
47
|
+
### Drift diffusion simulation at equilibrium
|
|
48
|
+
###
|
|
49
|
+
diode_common.DriftDiffusionInitialSolution(device, region)
|
|
50
|
+
|
|
51
|
+
solve(type="dc", absolute_error=1e10, relative_error=1e-8, maximum_iterations=50)
|
|
52
|
+
|
|
53
|
+
v = 0.1
|
|
54
|
+
while v < 0.51:
|
|
55
|
+
set_parameter(device=device, name=GetContactBiasName("top"), value=v)
|
|
56
|
+
solve(type="dc", absolute_error=1e10, relative_error=1e-8, maximum_iterations=30)
|
|
57
|
+
PrintCurrents(device, "top")
|
|
58
|
+
PrintCurrents(device, "bot")
|
|
59
|
+
v += 0.1
|
|
60
|
+
|
|
61
|
+
element_from_edge_model(edge_model="ElectricField", device=device, region=region)
|
|
62
|
+
element_from_edge_model(edge_model="ElectronCurrent", device=device, region=region)
|
|
63
|
+
element_from_edge_model(edge_model="HoleCurrent", device=device, region=region)
|
|
64
|
+
|
|
65
|
+
write_devices(file="gmsh_diode3d_dd.dat", type="tecplot")
|
|
66
|
+
write_devices(file="gmsh_diode3d_dd.msh", type="devsim")
|
|
67
|
+
|
|
68
|
+
# element_from_node_model(node_model="node_index", device=device, region=region)
|
|
69
|
+
# en0 = map(lambda x : int(x), get_element_model_values(name="node_index@en0", device=device, region=region))
|
|
70
|
+
# en1 = map(lambda x : int(x), get_element_model_values(name="node_index@en1", device=device, region=region))
|
|
71
|
+
# en2 = map(lambda x : int(x), get_element_model_values(name="node_index@en2", device=device, region=region))
|
|
72
|
+
# en3 = map(lambda x : int(x), get_element_model_values(name="node_index@en3", device=device, region=region))
|
|
73
|
+
# for i in range(len(en0)):
|
|
74
|
+
# print "%d %d %d %d" % (en0[i], en1[i], en2[i], en3[i])
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# this test added specifically to create a mesh for gmsh_diode3d_equil.py
|
|
6
|
+
|
|
7
|
+
from devsim import node_model, solve, write_devices
|
|
8
|
+
import diode_common
|
|
9
|
+
|
|
10
|
+
device = "diode3d"
|
|
11
|
+
region = "Bulk"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
diode_common.Create3DGmshMesh(device, region)
|
|
15
|
+
|
|
16
|
+
# this is is the devsim format
|
|
17
|
+
write_devices(file="gmsh_diode3d_out.msh")
|
|
18
|
+
|
|
19
|
+
diode_common.SetParameters(device=device, region=region)
|
|
20
|
+
|
|
21
|
+
####
|
|
22
|
+
#### NetDoping
|
|
23
|
+
####
|
|
24
|
+
node_model(
|
|
25
|
+
device=device, region=region, name="Acceptors", equation="1.0e18*step(0.5e-5-z);"
|
|
26
|
+
)
|
|
27
|
+
node_model(
|
|
28
|
+
device=device, region=region, name="Donors", equation="1.0e18*step(z-0.5e-5);"
|
|
29
|
+
)
|
|
30
|
+
node_model(device=device, region=region, name="NetDoping", equation="Donors-Acceptors;")
|
|
31
|
+
|
|
32
|
+
diode_common.InitialSolution(device, region)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
####
|
|
36
|
+
#### Initial DC solution
|
|
37
|
+
####
|
|
38
|
+
solve(type="dc", absolute_error=1.0, relative_error=1e-12, maximum_iterations=30)
|
|
39
|
+
|
|
40
|
+
# element_from_edge_model(edge_model="ElectricField", device=device, region=region)
|
|
41
|
+
# element_from_edge_model(edge_model="ElectricField", device=device, region=region, derivative="Potential")
|
|
42
|
+
|
|
43
|
+
write_devices(file="gmsh_diode3d_equil.msh", type="devsim")
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
from devsim import (
|
|
7
|
+
element_from_edge_model,
|
|
8
|
+
get_parameter,
|
|
9
|
+
node_model,
|
|
10
|
+
set_parameter,
|
|
11
|
+
solve,
|
|
12
|
+
write_devices,
|
|
13
|
+
)
|
|
14
|
+
from devsim.python_packages.simple_physics import GetContactBiasName, PrintCurrents
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if not get_parameter(name="info")["extended_precision"]:
|
|
18
|
+
print("Extended precision support is not available with this version")
|
|
19
|
+
sys.exit(0)
|
|
20
|
+
|
|
21
|
+
set_parameter(name="extended_solver", value=True)
|
|
22
|
+
set_parameter(name="extended_model", value=True)
|
|
23
|
+
set_parameter(name="extended_equation", value=True)
|
|
24
|
+
|
|
25
|
+
import diode_common # noqa: F401, E402
|
|
26
|
+
|
|
27
|
+
device = "diode3d"
|
|
28
|
+
region = "Bulk"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
diode_common.Create3DGmshMesh(device, region)
|
|
32
|
+
|
|
33
|
+
# this is is the devsim format
|
|
34
|
+
write_devices(file="gmsh_diode3d_out.msh")
|
|
35
|
+
|
|
36
|
+
diode_common.SetParameters(device=device, region=region)
|
|
37
|
+
|
|
38
|
+
####
|
|
39
|
+
#### NetDoping
|
|
40
|
+
####
|
|
41
|
+
node_model(
|
|
42
|
+
device=device, region=region, name="Acceptors", equation="1.0e18*step(0.5e-5-z);"
|
|
43
|
+
)
|
|
44
|
+
node_model(
|
|
45
|
+
device=device, region=region, name="Donors", equation="1.0e18*step(z-0.5e-5);"
|
|
46
|
+
)
|
|
47
|
+
node_model(device=device, region=region, name="NetDoping", equation="Donors-Acceptors;")
|
|
48
|
+
|
|
49
|
+
diode_common.InitialSolution(device, region)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
####
|
|
53
|
+
#### Initial DC solution
|
|
54
|
+
####
|
|
55
|
+
solve(type="dc", absolute_error=1.0, relative_error=1e-12, maximum_iterations=30)
|
|
56
|
+
|
|
57
|
+
###
|
|
58
|
+
### Drift diffusion simulation at equilibrium
|
|
59
|
+
###
|
|
60
|
+
diode_common.DriftDiffusionInitialSolution(device, region)
|
|
61
|
+
|
|
62
|
+
solve(type="dc", absolute_error=1e10, relative_error=1e-8, maximum_iterations=50)
|
|
63
|
+
|
|
64
|
+
v = 0.1
|
|
65
|
+
while v < 0.51:
|
|
66
|
+
set_parameter(device=device, name=GetContactBiasName("top"), value=v)
|
|
67
|
+
solve(type="dc", absolute_error=1e10, relative_error=1e-20, maximum_iterations=30)
|
|
68
|
+
PrintCurrents(device, "top")
|
|
69
|
+
PrintCurrents(device, "bot")
|
|
70
|
+
v += 0.1
|
|
71
|
+
|
|
72
|
+
element_from_edge_model(edge_model="ElectricField", device=device, region=region)
|
|
73
|
+
element_from_edge_model(edge_model="ElectronCurrent", device=device, region=region)
|
|
74
|
+
element_from_edge_model(edge_model="HoleCurrent", device=device, region=region)
|
|
75
|
+
|
|
76
|
+
write_devices(file="gmsh_diode3d_dd.dat", type="tecplot")
|
|
77
|
+
write_devices(file="gmsh_diode3d_dd.msh", type="devsim")
|
|
78
|
+
|
|
79
|
+
# element_from_node_model(node_model="node_index", device=device, region=region)
|
|
80
|
+
# en0 = map(lambda x : int(x), get_element_model_values(name="node_index@en0", device=device, region=region))
|
|
81
|
+
# en1 = map(lambda x : int(x), get_element_model_values(name="node_index@en1", device=device, region=region))
|
|
82
|
+
# en2 = map(lambda x : int(x), get_element_model_values(name="node_index@en2", device=device, region=region))
|
|
83
|
+
# en3 = map(lambda x : int(x), get_element_model_values(name="node_index@en3", device=device, region=region))
|
|
84
|
+
# for i in range(len(en0)):
|
|
85
|
+
# print "%d %d %d %d" % (en0[i], en1[i], en2[i], en3[i])
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# The purpose is to verify our triangle element field calculation.
|
|
6
|
+
# It is based on Laux's weighting scheme
|
|
7
|
+
# @article{Laux:1985,
|
|
8
|
+
# author = {Laux, Steven E. and Byrnes, Robert G.},
|
|
9
|
+
# title = {Semiconductor device simulation using generalized mobility models},
|
|
10
|
+
# journal = {IBM J. Res. Dev.},
|
|
11
|
+
# issue_date = {May 1985},
|
|
12
|
+
# volume = {29},
|
|
13
|
+
# number = {3},
|
|
14
|
+
# month = may,
|
|
15
|
+
# year = {1985},
|
|
16
|
+
# issn = {0018-8646},
|
|
17
|
+
# pages = {289--301},
|
|
18
|
+
# numpages = {13},
|
|
19
|
+
# url = {http://dx.doi.org/10.1147/rd.293.0289},
|
|
20
|
+
# doi = {10.1147/rd.293.0289},
|
|
21
|
+
# acmid = {1012099},
|
|
22
|
+
# publisher = {IBM Corp.},
|
|
23
|
+
# address = {Riverton, NJ, USA},
|
|
24
|
+
# }
|
|
25
|
+
|
|
26
|
+
import devsim
|
|
27
|
+
from devsim import load_devices
|
|
28
|
+
from laux_common import SetDimension, RunTest
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
load_devices(file="gmsh_diode2d_dd.msh")
|
|
32
|
+
device = "diode2d"
|
|
33
|
+
region = "Bulk"
|
|
34
|
+
|
|
35
|
+
SetDimension(2)
|
|
36
|
+
number_test = -1
|
|
37
|
+
|
|
38
|
+
RunTest(device, region, number_test, "ElectricField", "Potential")
|
|
39
|
+
|
|
40
|
+
devsim.set_parameter(name="V_t", value=0.0259)
|
|
41
|
+
devsim.set_parameter(name="mu_n", value=400)
|
|
42
|
+
devsim.set_parameter(name="ElectronCharge", value=1.6e-19)
|
|
43
|
+
RunTest(device, region, number_test, "ElectronCurrent", "Potential")
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# The purpose is to verify our triangle element field calculation.
|
|
6
|
+
# It is based on Laux's weighting scheme
|
|
7
|
+
# @article{Laux:1985,
|
|
8
|
+
# author = {Laux, Steven E. and Byrnes, Robert G.},
|
|
9
|
+
# title = {Semiconductor device simulation using generalized mobility models},
|
|
10
|
+
# journal = {IBM J. Res. Dev.},
|
|
11
|
+
# issue_date = {May 1985},
|
|
12
|
+
# volume = {29},
|
|
13
|
+
# number = {3},
|
|
14
|
+
# month = may,
|
|
15
|
+
# year = {1985},
|
|
16
|
+
# issn = {0018-8646},
|
|
17
|
+
# pages = {289--301},
|
|
18
|
+
# numpages = {13},
|
|
19
|
+
# url = {http://dx.doi.org/10.1147/rd.293.0289},
|
|
20
|
+
# doi = {10.1147/rd.293.0289},
|
|
21
|
+
# acmid = {1012099},
|
|
22
|
+
# publisher = {IBM Corp.},
|
|
23
|
+
# address = {Riverton, NJ, USA},
|
|
24
|
+
# }
|
|
25
|
+
import devsim
|
|
26
|
+
|
|
27
|
+
from devsim import load_devices
|
|
28
|
+
|
|
29
|
+
from laux_common import SetDimension, RunTest
|
|
30
|
+
import laux_common
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
load_devices(file="gmsh_diode3d_dd.msh")
|
|
34
|
+
device = "diode3d"
|
|
35
|
+
region = "Bulk"
|
|
36
|
+
|
|
37
|
+
SetDimension(3)
|
|
38
|
+
nee = laux_common.nee
|
|
39
|
+
nen = laux_common.nen
|
|
40
|
+
dim = laux_common.dim
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# There are nee edges per tetrahedron
|
|
44
|
+
# number_elements = len(scalar_efield)/laux_common.nee;
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
number_test = -1
|
|
48
|
+
|
|
49
|
+
RunTest(device, region, number_test, "ElectricField", "Potential")
|
|
50
|
+
|
|
51
|
+
devsim.set_parameter(name="V_t", value=0.0259)
|
|
52
|
+
devsim.set_parameter(name="mu_n", value=400)
|
|
53
|
+
devsim.set_parameter(name="ElectronCharge", value=1.6e-19)
|
|
54
|
+
RunTest(device, region, number_test, "ElectronCurrent", "Potential")
|