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,207 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
import devsim
|
|
6
|
+
|
|
7
|
+
device = "mymos"
|
|
8
|
+
|
|
9
|
+
device_width = 1.0e-4
|
|
10
|
+
gate_width = 1.0e-5
|
|
11
|
+
diffusion_width = 0.4
|
|
12
|
+
|
|
13
|
+
air_thickness = 1e-7
|
|
14
|
+
oxide_thickness = 1e-5
|
|
15
|
+
gate_thickness = 1e-5
|
|
16
|
+
device_thickness = 1e-4
|
|
17
|
+
diffusion_thickness = 1e-5
|
|
18
|
+
|
|
19
|
+
x_diffusion_decay = 1e-20
|
|
20
|
+
y_diffusion_decay = 1e-10
|
|
21
|
+
|
|
22
|
+
bulk_doping = -1e15
|
|
23
|
+
body_doping = -1e19
|
|
24
|
+
drain_doping = 1e19
|
|
25
|
+
source_doping = 1e19
|
|
26
|
+
gate_doping = 1e20
|
|
27
|
+
|
|
28
|
+
y_channel_spacing = 1e-8
|
|
29
|
+
y_diffusion_spacing = 1e-6
|
|
30
|
+
y_gate_top_spacing = 1e-8
|
|
31
|
+
y_gate_mid_spacing = gate_thickness * 0.25
|
|
32
|
+
y_gate_bot_spacing = 1e-8
|
|
33
|
+
y_oxide_mid_spacing = oxide_thickness * 0.25
|
|
34
|
+
x_channel_spacing = 1e-6
|
|
35
|
+
x_diffusion_spacing = 1e-5
|
|
36
|
+
max_y_spacing = 1e-4
|
|
37
|
+
max_x_spacing = 1e-2
|
|
38
|
+
y_bulk_mid_spacing = device_thickness * 0.25
|
|
39
|
+
y_bulk_bottom_spacing = 1e-8
|
|
40
|
+
|
|
41
|
+
x_bulk_left = 0.0
|
|
42
|
+
x_bulk_right = x_bulk_left + device_width
|
|
43
|
+
x_center = 0.5 * (x_bulk_left + x_bulk_right)
|
|
44
|
+
x_gate_left = x_center - 0.5 * (gate_width)
|
|
45
|
+
x_gate_right = x_center + 0.5 * (gate_width)
|
|
46
|
+
x_device_left = x_bulk_left - air_thickness
|
|
47
|
+
x_device_right = x_bulk_right + air_thickness
|
|
48
|
+
|
|
49
|
+
y_bulk_top = 0.0
|
|
50
|
+
y_oxide_top = y_bulk_top - oxide_thickness
|
|
51
|
+
y_oxide_mid = 0.5 * (y_oxide_top + y_bulk_top)
|
|
52
|
+
y_gate_top = y_oxide_top - gate_thickness
|
|
53
|
+
y_gate_mid = 0.5 * (y_gate_top + y_oxide_top)
|
|
54
|
+
y_device_top = y_gate_top - air_thickness
|
|
55
|
+
y_bulk_bottom = y_bulk_top + device_thickness
|
|
56
|
+
y_bulk_mid = 0.5 * (y_bulk_top + y_bulk_bottom)
|
|
57
|
+
y_device_bottom = y_bulk_bottom + air_thickness
|
|
58
|
+
y_diffusion = y_bulk_top + diffusion_thickness
|
|
59
|
+
|
|
60
|
+
devsim.create_2d_mesh(mesh="mos")
|
|
61
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="y", pos=y_device_top, ps=max_y_spacing)
|
|
62
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="y", pos=y_gate_top, ps=y_gate_top_spacing)
|
|
63
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="y", pos=y_gate_mid, ps=y_gate_mid_spacing)
|
|
64
|
+
devsim.add_2d_mesh_line(
|
|
65
|
+
mesh="mos", dir="y", pos=y_oxide_top, ps=y_gate_bot_spacing, ns=y_oxide_mid_spacing
|
|
66
|
+
)
|
|
67
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="y", pos=y_oxide_mid, ps=y_oxide_mid_spacing)
|
|
68
|
+
devsim.add_2d_mesh_line(
|
|
69
|
+
mesh="mos", dir="y", pos=y_bulk_top, ns=y_oxide_mid_spacing, ps=y_channel_spacing
|
|
70
|
+
)
|
|
71
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="y", pos=y_diffusion, ps=y_diffusion_spacing)
|
|
72
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="y", pos=y_bulk_mid, ps=y_bulk_mid_spacing)
|
|
73
|
+
devsim.add_2d_mesh_line(
|
|
74
|
+
mesh="mos", dir="y", pos=y_bulk_bottom, ns=y_bulk_bottom_spacing, ps=max_y_spacing
|
|
75
|
+
)
|
|
76
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="y", pos=y_device_bottom, ps=max_y_spacing)
|
|
77
|
+
|
|
78
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="x", pos=x_center, ps=x_channel_spacing)
|
|
79
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="x", pos=x_gate_left, ps=x_channel_spacing)
|
|
80
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="x", pos=x_bulk_left, ps=x_diffusion_spacing)
|
|
81
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="x", pos=x_gate_right, ps=x_channel_spacing)
|
|
82
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="x", pos=x_bulk_right, ps=x_diffusion_spacing)
|
|
83
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="x", pos=x_device_right, ps=max_x_spacing)
|
|
84
|
+
devsim.add_2d_mesh_line(mesh="mos", dir="x", pos=x_device_left, ps=max_x_spacing)
|
|
85
|
+
|
|
86
|
+
devsim.add_2d_region(mesh="mos", material="Air", region="air")
|
|
87
|
+
devsim.add_2d_region(
|
|
88
|
+
mesh="mos",
|
|
89
|
+
material="Silicon",
|
|
90
|
+
region="bulk",
|
|
91
|
+
xl=x_bulk_left,
|
|
92
|
+
xh=x_bulk_right,
|
|
93
|
+
yl=y_bulk_bottom,
|
|
94
|
+
yh=y_bulk_top,
|
|
95
|
+
)
|
|
96
|
+
devsim.add_2d_region(
|
|
97
|
+
mesh="mos",
|
|
98
|
+
material="Silicon",
|
|
99
|
+
region="gate",
|
|
100
|
+
xl=x_gate_left,
|
|
101
|
+
xh=x_gate_right,
|
|
102
|
+
yl=y_oxide_top,
|
|
103
|
+
yh=y_gate_top,
|
|
104
|
+
)
|
|
105
|
+
devsim.add_2d_region(
|
|
106
|
+
mesh="mos",
|
|
107
|
+
material="Oxide",
|
|
108
|
+
region="oxide",
|
|
109
|
+
xl=x_gate_left,
|
|
110
|
+
xh=x_gate_right,
|
|
111
|
+
yl=y_bulk_top,
|
|
112
|
+
yh=y_oxide_top,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
devsim.add_2d_contact(
|
|
116
|
+
mesh="mos",
|
|
117
|
+
name="gate",
|
|
118
|
+
region="gate",
|
|
119
|
+
yl=y_gate_top,
|
|
120
|
+
yh=y_gate_top,
|
|
121
|
+
material="metal",
|
|
122
|
+
)
|
|
123
|
+
devsim.add_2d_contact(
|
|
124
|
+
mesh="mos",
|
|
125
|
+
name="body",
|
|
126
|
+
region="bulk",
|
|
127
|
+
yl=y_bulk_bottom,
|
|
128
|
+
yh=y_bulk_bottom,
|
|
129
|
+
material="metal",
|
|
130
|
+
)
|
|
131
|
+
devsim.add_2d_contact(
|
|
132
|
+
mesh="mos",
|
|
133
|
+
name="source",
|
|
134
|
+
region="bulk",
|
|
135
|
+
yl=y_bulk_top,
|
|
136
|
+
yh=y_bulk_top,
|
|
137
|
+
xl=x_device_left,
|
|
138
|
+
xh=x_gate_left,
|
|
139
|
+
material="metal",
|
|
140
|
+
)
|
|
141
|
+
devsim.add_2d_contact(
|
|
142
|
+
mesh="mos",
|
|
143
|
+
name="drain",
|
|
144
|
+
region="bulk",
|
|
145
|
+
yl=y_bulk_top,
|
|
146
|
+
yh=y_bulk_top,
|
|
147
|
+
xl=x_gate_right,
|
|
148
|
+
xh=x_device_right,
|
|
149
|
+
material="metal",
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
devsim.add_2d_interface(mesh="mos", name="gate_oxide", region0="gate", region1="oxide")
|
|
153
|
+
devsim.add_2d_interface(mesh="mos", name="bulk_oxide", region0="bulk", region1="oxide")
|
|
154
|
+
devsim.finalize_mesh(mesh="mos")
|
|
155
|
+
devsim.create_device(mesh="mos", device=device)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
format_dict = {
|
|
159
|
+
"gate_doping": gate_doping,
|
|
160
|
+
"source_doping": source_doping,
|
|
161
|
+
"drain_doping": drain_doping,
|
|
162
|
+
"body_doping": body_doping,
|
|
163
|
+
"bulk_doping": bulk_doping,
|
|
164
|
+
"x_gate_left": x_gate_left,
|
|
165
|
+
"x_gate_right": x_gate_right,
|
|
166
|
+
"x_diffusion_decay": x_diffusion_decay,
|
|
167
|
+
"y_diffusion": y_diffusion,
|
|
168
|
+
"y_diffusion_decay": y_diffusion_decay,
|
|
169
|
+
"y_bulk_bottom": y_bulk_bottom,
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
devsim.node_model(
|
|
173
|
+
name="NetDoping",
|
|
174
|
+
device=device,
|
|
175
|
+
region="gate",
|
|
176
|
+
equation="%(gate_doping)s" % format_dict,
|
|
177
|
+
)
|
|
178
|
+
devsim.node_model(
|
|
179
|
+
name="DrainDoping",
|
|
180
|
+
device=device,
|
|
181
|
+
region="bulk",
|
|
182
|
+
equation="0.25*%(drain_doping)s*erfc((x-%(x_gate_left)s)/%(x_diffusion_decay)s)*erfc((y-%(y_diffusion)s)/%(y_diffusion_decay)s)"
|
|
183
|
+
% format_dict,
|
|
184
|
+
)
|
|
185
|
+
devsim.node_model(
|
|
186
|
+
name="SourceDoping",
|
|
187
|
+
device=device,
|
|
188
|
+
region="bulk",
|
|
189
|
+
equation="0.25*%(source_doping)s*erfc(-(x-%(x_gate_right)s)/%(x_diffusion_decay)s)*erfc((y-%(y_diffusion)s)/%(y_diffusion_decay)s)"
|
|
190
|
+
% format_dict,
|
|
191
|
+
)
|
|
192
|
+
devsim.node_model(
|
|
193
|
+
name="BodyDoping",
|
|
194
|
+
device=device,
|
|
195
|
+
region="bulk",
|
|
196
|
+
equation="0.5*%(body_doping)s*erfc(-(y-%(y_bulk_bottom)s)/%(y_diffusion_decay)s)"
|
|
197
|
+
% format_dict,
|
|
198
|
+
)
|
|
199
|
+
devsim.node_model(
|
|
200
|
+
name="NetDoping",
|
|
201
|
+
device=device,
|
|
202
|
+
region="bulk",
|
|
203
|
+
equation="DrainDoping + SourceDoping + %(bulk_doping)s + BodyDoping" % format_dict,
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
devsim.write_devices(file="mos_2d", type="vtk")
|
|
207
|
+
devsim.write_devices(file="mos_2d.tec", type="tecplot")
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
import devsim
|
|
6
|
+
from devsim import get_contact_list, get_region_list, set_parameter, set_node_values
|
|
7
|
+
from devsim.python_packages.model_create import CreateSolution
|
|
8
|
+
|
|
9
|
+
from devsim.python_packages.simple_physics import (
|
|
10
|
+
GetContactBiasName,
|
|
11
|
+
SetOxideParameters,
|
|
12
|
+
SetSiliconParameters,
|
|
13
|
+
CreateSiliconPotentialOnly,
|
|
14
|
+
CreateSiliconPotentialOnlyContact,
|
|
15
|
+
CreateSiliconDriftDiffusion,
|
|
16
|
+
CreateSiliconDriftDiffusionAtContact,
|
|
17
|
+
CreateOxidePotentialOnly,
|
|
18
|
+
CreateSiliconOxideInterface,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
devsim.load_devices(file="mos_2d_dd.msh")
|
|
22
|
+
device = devsim.get_device_list()[0]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
device = "mymos"
|
|
26
|
+
silicon_regions = ("gate", "bulk")
|
|
27
|
+
oxide_regions = ("oxide",)
|
|
28
|
+
regions = ("gate", "bulk", "oxide")
|
|
29
|
+
interfaces = ("bulk_oxide", "gate_oxide")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
for i in silicon_regions:
|
|
33
|
+
SetSiliconParameters(device, i, 300)
|
|
34
|
+
CreateSiliconPotentialOnly(device, i)
|
|
35
|
+
|
|
36
|
+
for i in oxide_regions:
|
|
37
|
+
SetOxideParameters(device, i, 300)
|
|
38
|
+
CreateOxidePotentialOnly(device, i, "log_damp")
|
|
39
|
+
|
|
40
|
+
### Set up contacts
|
|
41
|
+
contacts = get_contact_list(device=device)
|
|
42
|
+
for i in contacts:
|
|
43
|
+
tmp = get_region_list(device=device, contact=i)
|
|
44
|
+
r = tmp[0]
|
|
45
|
+
print("%s %s" % (r, i))
|
|
46
|
+
CreateSiliconPotentialOnlyContact(device, r, i)
|
|
47
|
+
set_parameter(device=device, name=GetContactBiasName(i), value=0.0)
|
|
48
|
+
|
|
49
|
+
for i in interfaces:
|
|
50
|
+
CreateSiliconOxideInterface(device, i)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
for i in silicon_regions:
|
|
54
|
+
CreateSolution(device, i, "Electrons")
|
|
55
|
+
CreateSolution(device, i, "Holes")
|
|
56
|
+
set_node_values(
|
|
57
|
+
device=device, region=i, name="Electrons", init_from="IntrinsicElectrons"
|
|
58
|
+
)
|
|
59
|
+
set_node_values(device=device, region=i, name="Holes", init_from="IntrinsicHoles")
|
|
60
|
+
CreateSiliconDriftDiffusion(device, i, "mu_n", "mu_p")
|
|
61
|
+
|
|
62
|
+
for c in contacts:
|
|
63
|
+
tmp = get_region_list(device=device, contact=c)
|
|
64
|
+
r = tmp[0]
|
|
65
|
+
CreateSiliconDriftDiffusionAtContact(device, r, c)
|
|
66
|
+
|
|
67
|
+
devsim.solve(
|
|
68
|
+
type="dc", absolute_error=1.0e30, relative_error=1e-5, maximum_iterations=30
|
|
69
|
+
)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
#### Plan is to use this file for full restart, including equations
|
|
6
|
+
import devsim
|
|
7
|
+
|
|
8
|
+
device = "mymos"
|
|
9
|
+
devsim.load_devices(file="mos_2d_dd.msh")
|
|
10
|
+
import mos_2d_params # noqa: F401, E402
|
|
11
|
+
|
|
12
|
+
devsim.set_parameter(name="debug_level", value="info")
|
|
13
|
+
devsim.set_parameter(device=device, region="gate", name="debug_level", value="verbose")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
devsim.solve(
|
|
17
|
+
type="dc", absolute_error=1.0e30, relative_error=1e-5, maximum_iterations=30
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
devsim.write_devices(file="mos_2d_restart2.msh", type="devsim")
|
|
22
|
+
|
|
23
|
+
# set_parameter -device mymos -region gate -name gatebias -value 0.1
|
|
24
|
+
# solve -type dc -absolute_error 1.0e30 -relative_error 1e-9 -maximum_iterations 30
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# solid state resistor ssac
|
|
6
|
+
import devsim
|
|
7
|
+
import res1
|
|
8
|
+
import test_common
|
|
9
|
+
|
|
10
|
+
devsim.circuit_element(name="V1", n1="topbias", n2=0, acreal=1.0)
|
|
11
|
+
test_common.CreateNoiseMesh(res1.device, res1.region)
|
|
12
|
+
devsim.set_parameter(name="botbias", value=0.0)
|
|
13
|
+
res1.run_initial_bias(use_circuit_bias=True, net_doping=1e17)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
for v in (0.0, 1e-3):
|
|
17
|
+
devsim.circuit_alter(name="V1", value=v)
|
|
18
|
+
devsim.solve(
|
|
19
|
+
type="dc", absolute_error=1e10, relative_error=1e-7, maximum_iterations=30
|
|
20
|
+
)
|
|
21
|
+
for contact in res1.contacts:
|
|
22
|
+
test_common.printResistorCurrent(device=res1.device, contact=contact)
|
|
23
|
+
devsim.solve(type="dc", absolute_error=1e10, relative_error=1e-7, maximum_iterations=30)
|
|
24
|
+
|
|
25
|
+
devsim.solve(type="noise", frequency=1e5, output_node="V1.I")
|
|
26
|
+
devsim.vector_gradient(
|
|
27
|
+
device=res1.device,
|
|
28
|
+
region=res1.region,
|
|
29
|
+
node_model="V1.I_ElectronContinuityEquation_real",
|
|
30
|
+
calc_type="avoidzero",
|
|
31
|
+
)
|
|
32
|
+
for name in (
|
|
33
|
+
"V1.I_ElectronContinuityEquation_real",
|
|
34
|
+
"V1.I_ElectronContinuityEquation_imag",
|
|
35
|
+
"V1.I_ElectronContinuityEquation_real_gradx",
|
|
36
|
+
"V1.I_ElectronContinuityEquation_imag_gradx",
|
|
37
|
+
):
|
|
38
|
+
devsim.print_node_values(device=res1.device, region=res1.region, name=name)
|
|
39
|
+
|
|
40
|
+
rv = "V1.I_ElectronContinuityEquation_real_gradx"
|
|
41
|
+
iv = "V1.I_ElectronContinuityEquation_imag_gradx"
|
|
42
|
+
|
|
43
|
+
for name, equation in (
|
|
44
|
+
("noisesource", "4*ElectronCharge^2 * ThermalVoltage * mu_n * Electrons"),
|
|
45
|
+
("vfield", "(%(rv)s*%(rv)s+%(iv)s*%(iv)s)" % {"rv": rv, "iv": iv}),
|
|
46
|
+
("noise", "vec_sum(vfield * noisesource * NodeVolume)"),
|
|
47
|
+
):
|
|
48
|
+
devsim.node_model(
|
|
49
|
+
device=res1.device, region=res1.region, name=name, equation=equation
|
|
50
|
+
)
|
|
51
|
+
devsim.print_node_values(device=res1.device, region=res1.region, name=name)
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# solid state resistor ssac
|
|
6
|
+
import devsim
|
|
7
|
+
import test_common
|
|
8
|
+
|
|
9
|
+
devsim.circuit_element(name="V1", n1="topbias", n2=0, acreal=1.0)
|
|
10
|
+
|
|
11
|
+
device = "MyDevice"
|
|
12
|
+
region = "MyRegion"
|
|
13
|
+
|
|
14
|
+
####
|
|
15
|
+
#### Meshing
|
|
16
|
+
####
|
|
17
|
+
devsim.create_2d_mesh(mesh="dog")
|
|
18
|
+
devsim.add_2d_mesh_line(mesh="dog", dir="x", pos=0, ps=1e-6)
|
|
19
|
+
devsim.add_2d_mesh_line(mesh="dog", dir="x", pos=1e-5, ps=1e-6)
|
|
20
|
+
|
|
21
|
+
devsim.add_2d_mesh_line(mesh="dog", dir="y", pos=0, ps=1e-6)
|
|
22
|
+
devsim.add_2d_mesh_line(mesh="dog", dir="y", pos=1e-5, ps=1e-6)
|
|
23
|
+
|
|
24
|
+
devsim.add_2d_mesh_line(mesh="dog", dir="x", pos=-1e-8, ps=1e-8)
|
|
25
|
+
devsim.add_2d_mesh_line(mesh="dog", dir="x", pos=1.001e-5, ps=1e-8)
|
|
26
|
+
|
|
27
|
+
devsim.add_2d_region(mesh="dog", material="Si", region=region)
|
|
28
|
+
devsim.add_2d_region(mesh="dog", material="Si", region="air1", xl=-1e-8, xh=0)
|
|
29
|
+
devsim.add_2d_region(mesh="dog", material="Si", region="air2", xl=1.0e-5, xh=1.001e-5)
|
|
30
|
+
|
|
31
|
+
devsim.add_2d_contact(
|
|
32
|
+
mesh="dog", name="top", region=region, xl=0, xh=0, bloat=1e-10, material="metal"
|
|
33
|
+
)
|
|
34
|
+
devsim.add_2d_contact(
|
|
35
|
+
mesh="dog",
|
|
36
|
+
name="bot",
|
|
37
|
+
region=region,
|
|
38
|
+
xl=1e-5,
|
|
39
|
+
xh=1e-5,
|
|
40
|
+
bloat=1e-10,
|
|
41
|
+
material="metal",
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
devsim.finalize_mesh(mesh="dog")
|
|
45
|
+
devsim.create_device(mesh="dog", device=device)
|
|
46
|
+
|
|
47
|
+
test_common.SetupResistorConstants(device, region)
|
|
48
|
+
test_common.SetupInitialResistorSystem(device, region, net_doping=1e17)
|
|
49
|
+
|
|
50
|
+
test_common.SetupInitialResistorContact(
|
|
51
|
+
device=device, contact="top", use_circuit_bias=True, circuit_node="topbias"
|
|
52
|
+
)
|
|
53
|
+
test_common.SetupInitialResistorContact(
|
|
54
|
+
device=device, contact="bot", use_circuit_bias=False
|
|
55
|
+
)
|
|
56
|
+
devsim.set_parameter(name="botbias", value=0.0)
|
|
57
|
+
|
|
58
|
+
devsim.solve(type="dc", absolute_error=1.0, relative_error=1e-10, maximum_iterations=30)
|
|
59
|
+
|
|
60
|
+
test_common.SetupCarrierResistorSystem(device=device, region=region)
|
|
61
|
+
test_common.SetupCarrierResistorContact(
|
|
62
|
+
device=device, contact="top", use_circuit_bias=True, circuit_node="topbias"
|
|
63
|
+
)
|
|
64
|
+
test_common.SetupCarrierResistorContact(
|
|
65
|
+
device=device, contact="bot", use_circuit_bias=False
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
for v in (0.0, 1e-3):
|
|
69
|
+
devsim.circuit_alter(name="V1", value=v)
|
|
70
|
+
devsim.solve(
|
|
71
|
+
type="dc", absolute_error=1.0e10, relative_error=1e-7, maximum_iterations=30
|
|
72
|
+
)
|
|
73
|
+
test_common.printResistorCurrent(device=device, contact="top")
|
|
74
|
+
test_common.printResistorCurrent(device=device, contact="bot")
|
|
75
|
+
|
|
76
|
+
for i in range(4):
|
|
77
|
+
devsim.solve(
|
|
78
|
+
type="dc", absolute_error=1.0e10, relative_error=1e-7, maximum_iterations=30
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
devsim.solve(type="noise", frequency=1e5, output_node="V1.I")
|
|
82
|
+
|
|
83
|
+
rvx = "V1.I_ElectronContinuityEquation_real_gradx"
|
|
84
|
+
ivx = "V1.I_ElectronContinuityEquation_imag_gradx"
|
|
85
|
+
rvy = "V1.I_ElectronContinuityEquation_real_grady"
|
|
86
|
+
ivy = "V1.I_ElectronContinuityEquation_imag_grady"
|
|
87
|
+
|
|
88
|
+
for name, equation in (
|
|
89
|
+
("noisesource", "4*ElectronCharge^2 * ThermalVoltage * mu_n * Electrons"),
|
|
90
|
+
(
|
|
91
|
+
"vfield",
|
|
92
|
+
"(%(rvx)s*%(rvx)s+%(ivx)s*%(ivx)s) + (%(rvy)s*%(rvy)s+%(ivy)s*%(ivy)s)"
|
|
93
|
+
% {"rvx": rvx, "rvy": rvy, "ivx": ivx, "ivy": ivy},
|
|
94
|
+
),
|
|
95
|
+
("noise", "vfield * noisesource * NodeVolume"),
|
|
96
|
+
):
|
|
97
|
+
devsim.node_model(device=device, region=region, name=name, equation=equation)
|
|
98
|
+
|
|
99
|
+
print(sum(devsim.get_node_model_values(device=device, region=region, name="noise")))
|
|
100
|
+
|
|
101
|
+
devsim.write_devices(file="noise_res_2d.tec", type="tecplot")
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
from devsim import (
|
|
6
|
+
create_device,
|
|
7
|
+
get_contact_charge,
|
|
8
|
+
get_edge_model_values,
|
|
9
|
+
set_parameter,
|
|
10
|
+
solve,
|
|
11
|
+
)
|
|
12
|
+
from cap_mesh import cap_mesh
|
|
13
|
+
from devsim.python_packages.simple_physics import (
|
|
14
|
+
CreateOxideContact,
|
|
15
|
+
SetOxideParameters,
|
|
16
|
+
CreateOxidePotentialOnly,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
region_name = "MyRegion"
|
|
20
|
+
device_name = "MyDevice"
|
|
21
|
+
material_name = "Oxide"
|
|
22
|
+
|
|
23
|
+
mesh_name = cap_mesh(region_name, material_name)
|
|
24
|
+
create_device(mesh=mesh_name, device=device_name)
|
|
25
|
+
|
|
26
|
+
SetOxideParameters(device_name, region_name, 300)
|
|
27
|
+
CreateOxidePotentialOnly(device_name, region_name)
|
|
28
|
+
CreateOxideContact(device_name, region_name, "top")
|
|
29
|
+
CreateOxideContact(device_name, region_name, "bot")
|
|
30
|
+
|
|
31
|
+
set_parameter(name="bot_bias", value=0.0)
|
|
32
|
+
# for i in (0.0, 1.0):
|
|
33
|
+
set_parameter(name="top_bias", value=1.0)
|
|
34
|
+
solve(type="dc", absolute_error=1.0, relative_error=1e-10, maximum_iterations=30)
|
|
35
|
+
print(
|
|
36
|
+
(
|
|
37
|
+
get_contact_charge(
|
|
38
|
+
device=device_name, contact="top", equation="PotentialEquation"
|
|
39
|
+
)
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
print(
|
|
43
|
+
(
|
|
44
|
+
get_contact_charge(
|
|
45
|
+
device=device_name, contact="bot", equation="PotentialEquation"
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
)
|
|
49
|
+
print(
|
|
50
|
+
get_edge_model_values(
|
|
51
|
+
device=device_name, region=region_name, name="PotentialEdgeFlux"
|
|
52
|
+
)
|
|
53
|
+
)
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
####
|
|
6
|
+
#### package test for drift diffusion
|
|
7
|
+
####
|
|
8
|
+
from devsim import (
|
|
9
|
+
add_1d_contact,
|
|
10
|
+
add_1d_mesh_line,
|
|
11
|
+
add_1d_region,
|
|
12
|
+
create_1d_mesh,
|
|
13
|
+
create_device,
|
|
14
|
+
finalize_mesh,
|
|
15
|
+
get_contact_list,
|
|
16
|
+
get_node_model_values,
|
|
17
|
+
set_node_values,
|
|
18
|
+
set_parameter,
|
|
19
|
+
solve,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
from devsim.python_packages.simple_physics import (
|
|
23
|
+
GetContactBiasName,
|
|
24
|
+
PrintCurrents,
|
|
25
|
+
SetSiliconParameters,
|
|
26
|
+
CreateSiliconPotentialOnly,
|
|
27
|
+
CreateSiliconPotentialOnlyContact,
|
|
28
|
+
CreateSiliconDriftDiffusion,
|
|
29
|
+
CreateSiliconDriftDiffusionAtContact,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
from devsim.python_packages.model_create import CreateSolution, CreateNodeModel
|
|
33
|
+
|
|
34
|
+
device = "MyDevice"
|
|
35
|
+
region = "MyRegion"
|
|
36
|
+
|
|
37
|
+
#### TODO: make one where you pick bulk spacing, contact spacing, and junction spacing
|
|
38
|
+
####
|
|
39
|
+
#### Meshing
|
|
40
|
+
####
|
|
41
|
+
create_1d_mesh(mesh="dog")
|
|
42
|
+
add_1d_mesh_line(mesh="dog", pos=0, ps=1e-6, tag="top")
|
|
43
|
+
add_1d_mesh_line(mesh="dog", pos=0.5e-5, ps=1e-7, tag="mid")
|
|
44
|
+
add_1d_mesh_line(mesh="dog", pos=1e-5, ps=1e-6, tag="bot")
|
|
45
|
+
add_1d_contact(mesh="dog", name="top", tag="top", material="metal")
|
|
46
|
+
add_1d_contact(mesh="dog", name="bot", tag="bot", material="metal")
|
|
47
|
+
add_1d_region(mesh="dog", material="Si", region=region, tag1="top", tag2="bot")
|
|
48
|
+
finalize_mesh(mesh="dog")
|
|
49
|
+
create_device(mesh="dog", device=device)
|
|
50
|
+
|
|
51
|
+
####
|
|
52
|
+
#### Constants
|
|
53
|
+
####
|
|
54
|
+
SetSiliconParameters(device, region, 300)
|
|
55
|
+
|
|
56
|
+
####
|
|
57
|
+
#### Potential
|
|
58
|
+
####
|
|
59
|
+
CreateSolution(device, region, "Potential")
|
|
60
|
+
|
|
61
|
+
####
|
|
62
|
+
#### NetDoping
|
|
63
|
+
####
|
|
64
|
+
CreateNodeModel(device, region, "Acceptors", "1.0e17*step(0.5e-5-x)")
|
|
65
|
+
CreateNodeModel(device, region, "Donors", "1.0e18*step(x-0.5e-5)")
|
|
66
|
+
CreateNodeModel(device, region, "NetDoping", "Donors-Acceptors")
|
|
67
|
+
# CreateNodeModel(device, region, "NetDoping", "1e18")
|
|
68
|
+
|
|
69
|
+
CreateSiliconPotentialOnly(device, region)
|
|
70
|
+
|
|
71
|
+
for i in get_contact_list(device=device):
|
|
72
|
+
set_parameter(device=device, name=GetContactBiasName(i), value=0.0)
|
|
73
|
+
CreateSiliconPotentialOnlyContact(device, region, i)
|
|
74
|
+
|
|
75
|
+
solve(type="dc", absolute_error=1.0, relative_error=1e-14, maximum_iterations=30)
|
|
76
|
+
|
|
77
|
+
###
|
|
78
|
+
### Electrons and Holes
|
|
79
|
+
###
|
|
80
|
+
CreateSolution(device, region, "Electrons")
|
|
81
|
+
CreateSolution(device, region, "Holes")
|
|
82
|
+
|
|
83
|
+
###
|
|
84
|
+
### Initialize initial guess
|
|
85
|
+
###
|
|
86
|
+
set_node_values(
|
|
87
|
+
device=device, region=region, name="Electrons", init_from="IntrinsicElectrons"
|
|
88
|
+
)
|
|
89
|
+
set_node_values(device=device, region=region, name="Holes", init_from="IntrinsicHoles")
|
|
90
|
+
CreateSiliconDriftDiffusion(device, region)
|
|
91
|
+
for i in get_contact_list(device=device):
|
|
92
|
+
CreateSiliconDriftDiffusionAtContact(device, region, i)
|
|
93
|
+
|
|
94
|
+
solve(type="dc", absolute_error=1e10, relative_error=1e-12, maximum_iterations=30)
|
|
95
|
+
x = get_node_model_values(device=device, region=region, name="x")
|
|
96
|
+
|
|
97
|
+
# v= get_node_model_values(device=device, region=region, name="Potential")
|
|
98
|
+
##v= get_edge_model_values(device=device, region=region, name="ElectricField")
|
|
99
|
+
# import matplotlib
|
|
100
|
+
# import matplotlib.pyplot
|
|
101
|
+
# matplotlib.pyplot.plot(v)
|
|
102
|
+
# matplotlib.pyplot.savefig('foo.pdf')
|
|
103
|
+
|
|
104
|
+
v = 0.1
|
|
105
|
+
while v < 0.99:
|
|
106
|
+
set_parameter(device=device, name=GetContactBiasName("top"), value=v)
|
|
107
|
+
solve(type="dc", absolute_error=1e10, relative_error=1e-12, maximum_iterations=30)
|
|
108
|
+
PrintCurrents(device, "top")
|
|
109
|
+
PrintCurrents(device, "bot")
|
|
110
|
+
v += 0.1
|