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,175 @@
|
|
|
1
|
+
|
|
2
|
+
IF (WIN32)
|
|
3
|
+
# python needs to be available in the environment used to run the tests
|
|
4
|
+
SET (RUNDIFFTEST python ${PROJECT_SOURCE_DIR}/testing/rundifftest.py)
|
|
5
|
+
SET (RUNDIR ${PROJECT_SOURCE_DIR}/testing)
|
|
6
|
+
#SET (MODELCOMP ${PROJECT_BINARY_DIR}/src/adiff/Release/modelcomp)
|
|
7
|
+
ELSE (WIN32)
|
|
8
|
+
SET (RUNDIFFTEST ${PROJECT_SOURCE_DIR}/testing/rundifftest.py)
|
|
9
|
+
SET (RUNDIR ${PROJECT_SOURCE_DIR}/testing)
|
|
10
|
+
#SET (MODELCOMP ${PROJECT_BINARY_DIR}/src/adiff/modelcomp)
|
|
11
|
+
ENDIF (WIN32)
|
|
12
|
+
|
|
13
|
+
#IF (DEVSIM_PY2_TEST_EXE)
|
|
14
|
+
#SET (DEVSIM_PY2 ${DEVSIM_PY2_TEST_EXE})
|
|
15
|
+
#ENDIF (DEVSIM_PY2_TEST_EXE)
|
|
16
|
+
|
|
17
|
+
IF (DEVSIM_PY3_TEST_EXE)
|
|
18
|
+
SET (DEVSIM_PY3 ${DEVSIM_PY3_TEST_EXE})
|
|
19
|
+
ENDIF (DEVSIM_PY3_TEST_EXE)
|
|
20
|
+
|
|
21
|
+
IF (DEVSIM_TEST_GOLDENDIR)
|
|
22
|
+
SET (GOLDENDIR ${DEVSIM_TEST_GOLDENDIR})
|
|
23
|
+
ENDIF (DEVSIM_TEST_GOLDENDIR)
|
|
24
|
+
|
|
25
|
+
ENABLE_TESTING()
|
|
26
|
+
|
|
27
|
+
#SET (NEWPYTESTS
|
|
28
|
+
#)
|
|
29
|
+
#
|
|
30
|
+
#FOREACH(I ${NEWPYTESTS})
|
|
31
|
+
# ADD_TEST("testing/${I}" ${RUNDIFFTEST} "${DEVSIM_PY2} ${I}.py" ${GOLDENDIR}/testing --output ${I}.out ${RUNDIR} ${OUTPUTDIR})
|
|
32
|
+
#ENDFOREACH(I)
|
|
33
|
+
|
|
34
|
+
SET (NEWPY3TESTS
|
|
35
|
+
info
|
|
36
|
+
cap2
|
|
37
|
+
ssac_cap
|
|
38
|
+
ssac_cap_2d_edge
|
|
39
|
+
ssac_cap_2d_element
|
|
40
|
+
ssac_cap_3d_edge
|
|
41
|
+
ssac_cap_3d_element
|
|
42
|
+
equation1
|
|
43
|
+
ptest1
|
|
44
|
+
ptest2
|
|
45
|
+
testfunc
|
|
46
|
+
testfunc_extended
|
|
47
|
+
utf8_2
|
|
48
|
+
laux1
|
|
49
|
+
pythonmesh1d
|
|
50
|
+
Fermi1
|
|
51
|
+
Fermi1_float128
|
|
52
|
+
GaussFermi
|
|
53
|
+
GaussFermi_float128
|
|
54
|
+
kahan
|
|
55
|
+
kahan_float128
|
|
56
|
+
fpetest1
|
|
57
|
+
fpetest2
|
|
58
|
+
res1 res2 res3 ssac_res noise_res
|
|
59
|
+
symdiff1
|
|
60
|
+
erf1 erf2
|
|
61
|
+
mesh1 mesh2 mesh3 mesh4
|
|
62
|
+
mesh2d
|
|
63
|
+
transient_circ
|
|
64
|
+
transient_circ2
|
|
65
|
+
transient_circ3
|
|
66
|
+
transient_rc
|
|
67
|
+
circ1
|
|
68
|
+
circ2
|
|
69
|
+
circ3
|
|
70
|
+
circ4
|
|
71
|
+
ssac_circ
|
|
72
|
+
trimesh1
|
|
73
|
+
trimesh2
|
|
74
|
+
noise_res_2d
|
|
75
|
+
dio2_element_2d
|
|
76
|
+
mos_2d
|
|
77
|
+
mos_2d_restart
|
|
78
|
+
mos_2d_restart2
|
|
79
|
+
)
|
|
80
|
+
FOREACH(I ${NEWPY3TESTS})
|
|
81
|
+
ADD_TEST("testing/${I}" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args ${I}.py --golden ${GOLDENDIR}/testing --output ${I}.out --working ${RUNDIR})
|
|
82
|
+
ENDFOREACH(I)
|
|
83
|
+
|
|
84
|
+
set_tests_properties("testing/mos_2d_restart" PROPERTIES DEPENDS testing/mos_2d)
|
|
85
|
+
set_tests_properties("testing/mos_2d_restart2" PROPERTIES DEPENDS testing/mos_2d)
|
|
86
|
+
set_tests_properties("testing/mesh4" PROPERTIES DEPENDS testing/mesh3)
|
|
87
|
+
set_tests_properties("testing/trimesh2" PROPERTIES DEPENDS testing/trimesh1)
|
|
88
|
+
|
|
89
|
+
ADD_TEST("testing/pythonmesh1d_comp" ${RUNDIFFTEST} --output ${RUNDIR}/pythonmesh1d.msh --golden ${GOLDENDIR}/testing)
|
|
90
|
+
set_tests_properties("testing/pythonmesh1d_comp" PROPERTIES DEPENDS "testing/pythonmesh1d")
|
|
91
|
+
ADD_TEST("testing/mesh3_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mesh3.msh --golden ${GOLDENDIR}/testing)
|
|
92
|
+
set_tests_properties("testing/mesh3_comp" PROPERTIES DEPENDS testing/mesh3)
|
|
93
|
+
ADD_TEST("testing/mesh4_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mesh4.msh --golden ${GOLDENDIR}/testing)
|
|
94
|
+
set_tests_properties("testing/mesh4_comp" PROPERTIES DEPENDS testing/mesh4)
|
|
95
|
+
ADD_TEST("testing/trimesh2_msh_comp" ${RUNDIFFTEST} --output ${RUNDIR}/trimesh2.msh --golden ${GOLDENDIR}/testing)
|
|
96
|
+
set_tests_properties("testing/trimesh2_msh_comp" PROPERTIES DEPENDS testing/trimesh1)
|
|
97
|
+
ADD_TEST("testing/trimesh3_msh_comp" ${RUNDIFFTEST} --output ${RUNDIR}/trimesh3.msh --golden ${GOLDENDIR}/testing)
|
|
98
|
+
set_tests_properties("testing/trimesh3_msh_comp" PROPERTIES DEPENDS testing/trimesh2)
|
|
99
|
+
ADD_TEST("testing/mesh2d_msh_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mesh2d.msh --golden ${GOLDENDIR}/testing)
|
|
100
|
+
set_tests_properties("testing/mesh2d_msh_comp" PROPERTIES DEPENDS testing/mesh2d)
|
|
101
|
+
ADD_TEST("testing/mesh2d_tec_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mesh2d.tec --golden ${GOLDENDIR}/testing)
|
|
102
|
+
set_tests_properties("testing/mesh2d_tec_comp" PROPERTIES DEPENDS testing/mesh2d)
|
|
103
|
+
ADD_TEST("testing/mesh2d_reduced_tec_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mesh2d.tec --golden ${GOLDENDIR}/testing)
|
|
104
|
+
set_tests_properties("testing/mesh2d_reduced_tec_comp" PROPERTIES DEPENDS testing/mesh2d)
|
|
105
|
+
|
|
106
|
+
ADD_TEST("testing/noise_res_2d_tec_comp" ${RUNDIFFTEST} --output ${RUNDIR}/noise_res_2d.tec --golden ${GOLDENDIR}/testing)
|
|
107
|
+
set_tests_properties("testing/noise_res_2d_tec_comp" PROPERTIES DEPENDS testing/noise_res_2d)
|
|
108
|
+
|
|
109
|
+
ADD_TEST("testing/mos_2d_dd_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mos_2d_dd.msh --golden ${GOLDENDIR}/testing)
|
|
110
|
+
set_tests_properties("testing/mos_2d_dd_comp" PROPERTIES DEPENDS testing/mos_2d)
|
|
111
|
+
|
|
112
|
+
ADD_TEST("testing/mos_2d_vtu_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mos_2d_0.vtu --golden ${GOLDENDIR}/testing)
|
|
113
|
+
set_tests_properties("testing/mos_2d_vtu_comp" PROPERTIES DEPENDS testing/mos_2d)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
ADD_TEST("testing/mos_2d_restart2_comp" ${RUNDIFFTEST} --output ${RUNDIR}/mos_2d_restart2.msh --golden ${GOLDENDIR}/testing)
|
|
117
|
+
set_tests_properties("testing/mos_2d_restart2_comp" PROPERTIES DEPENDS testing/mos_2d_restart2)
|
|
118
|
+
|
|
119
|
+
#### Disable these tests
|
|
120
|
+
IF (0)
|
|
121
|
+
ADD_TEST("testing/mctest1" ${RUNDIFFTEST} "${MODELCOMP} < ${RUNDIR}/mctest.mc" --golden ${GOLDENDIR}/testing --output mctest.out --working ${RUNDIR})
|
|
122
|
+
ADD_TEST("testing/mctest2" ${RUNDIFFTEST} --output ${RUNDIR}/diode.cc --golden ${GOLDENDIR}/testing)
|
|
123
|
+
set_tests_properties("testing/mctest2" PROPERTIES DEPENDS testing/mctest1)
|
|
124
|
+
ADD_TEST("testing/mctest3" ${RUNDIFFTEST} --output ${RUNDIR}/diode.hh --golden ${GOLDENDIR}/testing)
|
|
125
|
+
set_tests_properties("testing/mctest3" PROPERTIES DEPENDS testing/mctest1)
|
|
126
|
+
|
|
127
|
+
ADD_TEST("testing/mctest_user1" ${RUNDIFFTEST} "${MODELCOMP} < ${RUNDIR}/mctest_user.mc" --golden ${GOLDENDIR}/testing --output mctest_user.out --working ${RUNDIR})
|
|
128
|
+
ADD_TEST("testing/mctest_user2" ${RUNDIFFTEST} --output ${RUNDIR}/mctest_user.cc --golden ${GOLDENDIR}/testing)
|
|
129
|
+
set_tests_properties("testing/mctest_user2" PROPERTIES DEPENDS testing/mctest_user1)
|
|
130
|
+
ADD_TEST("testing/mctest_user3" ${RUNDIFFTEST} --output ${RUNDIR}/mctest_user.hh --golden ${GOLDENDIR}/testing)
|
|
131
|
+
set_tests_properties("testing/mctest_user3" PROPERTIES DEPENDS testing/mctest_user1)
|
|
132
|
+
ENDIF (0)
|
|
133
|
+
|
|
134
|
+
SET (CAPACITANCE_DIR examples/capacitance)
|
|
135
|
+
SET (CAPACITANCE_PATH ${PROJECT_SOURCE_DIR}/${CAPACITANCE_DIR})
|
|
136
|
+
ADD_TEST("${CAPACITANCE_DIR}/cap1d" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args cap1d.py --golden ${GOLDENDIR}/${CAPACITANCE_DIR} --output cap1d.out --working ${CAPACITANCE_PATH})
|
|
137
|
+
ADD_TEST("${CAPACITANCE_DIR}/cap2d" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args cap2d.py --golden ${GOLDENDIR}/${CAPACITANCE_DIR} --output cap2d.out --working ${CAPACITANCE_PATH})
|
|
138
|
+
ADD_TEST("${CAPACITANCE_DIR}/cap2d_comp" ${RUNDIFFTEST} --output ${CAPACITANCE_PATH}/cap2d.dat --golden ${GOLDENDIR}/${CAPACITANCE_DIR})
|
|
139
|
+
set_tests_properties("${CAPACITANCE_DIR}/cap2d_comp" PROPERTIES DEPENDS "${CAPACITANCE_DIR}/cap2d")
|
|
140
|
+
|
|
141
|
+
SET (BIOAPP1_DIR examples/bioapp1)
|
|
142
|
+
SET (BIOAPP1_PATH ${PROJECT_SOURCE_DIR}/${BIOAPP1_DIR})
|
|
143
|
+
ADD_TEST("${BIOAPP1_DIR}/bioapp1_2d" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args bioapp1_2d.py 7 --golden ${GOLDENDIR}/${BIOAPP1_DIR} --output bioapp1_2d.out --working ${BIOAPP1_PATH})
|
|
144
|
+
ADD_TEST("${BIOAPP1_DIR}/bioapp1_2d_comp" ${RUNDIFFTEST} --output ${BIOAPP1_PATH}/bioapp1_2d_7.0.dat --golden ${GOLDENDIR}/${BIOAPP1_DIR})
|
|
145
|
+
set_tests_properties("${BIOAPP1_DIR}/bioapp1_2d_comp" PROPERTIES DEPENDS "${BIOAPP1_DIR}/bioapp1_2d")
|
|
146
|
+
ADD_TEST("${BIOAPP1_DIR}/bioapp1_3d" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args bioapp1_3d.py 7 --golden ${GOLDENDIR}/${BIOAPP1_DIR} --output bioapp1_3d.out --working ${BIOAPP1_PATH})
|
|
147
|
+
ADD_TEST("${BIOAPP1_DIR}/bioapp1_3d_comp" ${RUNDIFFTEST} --output ${BIOAPP1_PATH}/bioapp1_3d_7.0.dat --golden ${GOLDENDIR}/${BIOAPP1_DIR})
|
|
148
|
+
set_tests_properties("${BIOAPP1_DIR}/bioapp1_3d_comp" PROPERTIES DEPENDS "${BIOAPP1_DIR}/bioapp1_3d")
|
|
149
|
+
|
|
150
|
+
SET (DIODE_DIR examples/diode)
|
|
151
|
+
SET (DIODE_PATH ${PROJECT_SOURCE_DIR}/${DIODE_DIR})
|
|
152
|
+
SET (DIODE_TESTS diode_1d diode_1d_custom diode_2d gmsh_diode2d gmsh_diode3d gmsh_diode3d_float128 ssac_diode tran_diode laux2d laux3d pythonmesh3d)
|
|
153
|
+
FOREACH(I ${DIODE_TESTS})
|
|
154
|
+
ADD_TEST("${DIODE_DIR}/${I}" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args ${I}.py --golden ${GOLDENDIR}/${DIODE_DIR} --output ${I}.out --working ${DIODE_PATH})
|
|
155
|
+
ENDFOREACH(I)
|
|
156
|
+
set_tests_properties("${DIODE_DIR}/laux2d" PROPERTIES DEPENDS "${DIODE_DIR}/gmsh_diode2d")
|
|
157
|
+
set_tests_properties("${DIODE_DIR}/laux3d" PROPERTIES DEPENDS "${DIODE_DIR}/gmsh_diode3d")
|
|
158
|
+
|
|
159
|
+
SET (MOBILITY_DIR examples/mobility)
|
|
160
|
+
SET (MOBILITY_PATH ${PROJECT_SOURCE_DIR}/${MOBILITY_DIR})
|
|
161
|
+
SET (MOBILITY_TESTS gmsh_mos2d gmsh_mos2d_kla pythonmesh2d)
|
|
162
|
+
FOREACH(I ${MOBILITY_TESTS})
|
|
163
|
+
ADD_TEST("${MOBILITY_DIR}/${I}" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args ${I}.py --golden ${GOLDENDIR}/${MOBILITY_DIR} --output ${I}.out --working ${MOBILITY_PATH})
|
|
164
|
+
ENDFOREACH(I)
|
|
165
|
+
|
|
166
|
+
SET (MAGNETIC_DIR examples/vectorpotential)
|
|
167
|
+
SET (MAGNETIC_PATH ${PROJECT_SOURCE_DIR}/${MAGNETIC_DIR})
|
|
168
|
+
SET (MAGNETIC_TESTS twowire)
|
|
169
|
+
FOREACH(I ${MAGNETIC_TESTS})
|
|
170
|
+
ADD_TEST("${MAGNETIC_DIR}/${I}" ${RUNDIFFTEST} --testexe ${DEVSIM_PY3} --args ${I}.py --golden ${GOLDENDIR}/${MAGNETIC_DIR} --output ${I}.out --working ${MAGNETIC_PATH})
|
|
171
|
+
ENDFOREACH(I)
|
|
172
|
+
|
|
173
|
+
set_tests_properties("testing/laux1" PROPERTIES DEPENDS testing/trimesh2)
|
|
174
|
+
|
|
175
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# Purpose: Fermi integral and inverse
|
|
6
|
+
|
|
7
|
+
import devsim
|
|
8
|
+
import test_common
|
|
9
|
+
|
|
10
|
+
device = "MyDevice"
|
|
11
|
+
region = "MyRegion"
|
|
12
|
+
|
|
13
|
+
test_common.CreateSimpleMesh(device, region)
|
|
14
|
+
|
|
15
|
+
devsim.set_parameter(name="Nc", value=1e22)
|
|
16
|
+
devsim.node_model(
|
|
17
|
+
device=device, region=region, name="Electrons", equation="2e15*(1 - x) + 1e10;"
|
|
18
|
+
)
|
|
19
|
+
devsim.node_model(device=device, region=region, name="r", equation="Electrons/Nc;")
|
|
20
|
+
devsim.node_model(device=device, region=region, name="Eta", equation="InvFermi(r);")
|
|
21
|
+
devsim.node_model(device=device, region=region, name="r2", equation="Fermi(Eta);")
|
|
22
|
+
|
|
23
|
+
devsim.node_model(
|
|
24
|
+
device=device, region=region, name="Eta:r", equation="diff(InvFermi(r),r);"
|
|
25
|
+
)
|
|
26
|
+
devsim.node_model(
|
|
27
|
+
device=device, region=region, name="r2:Eta", equation="diff(Fermi(Eta),Eta);"
|
|
28
|
+
)
|
|
29
|
+
devsim.node_model(
|
|
30
|
+
device=device, region=region, name="r3:Eta", equation="dFermidx(Eta);"
|
|
31
|
+
)
|
|
32
|
+
devsim.node_model(
|
|
33
|
+
device=device, region=region, name="r4:Eta", equation="1.0/dInvFermidx(r2);"
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
devsim.print_node_values(device=device, region=region, name="Electrons")
|
|
37
|
+
devsim.print_node_values(device=device, region=region, name="r")
|
|
38
|
+
devsim.print_node_values(device=device, region=region, name="Eta")
|
|
39
|
+
devsim.print_node_values(device=device, region=region, name="r2")
|
|
40
|
+
devsim.print_node_values(device=device, region=region, name="Eta:r")
|
|
41
|
+
devsim.print_node_values(device=device, region=region, name="r2:Eta")
|
|
42
|
+
devsim.print_node_values(device=device, region=region, name="r3:Eta")
|
|
43
|
+
devsim.print_node_values(device=device, region=region, name="r4:Eta")
|
|
44
|
+
|
|
45
|
+
devsim.set_parameter(name="Nc", value=3.23e19)
|
|
46
|
+
devsim.set_parameter(name="Nv", value=1.83e19)
|
|
47
|
+
devsim.set_parameter(name="Eg", value=1.12)
|
|
48
|
+
devsim.set_parameter(name="Vt", value=0.0259)
|
|
49
|
+
devsim.node_model(
|
|
50
|
+
device=device,
|
|
51
|
+
region=region,
|
|
52
|
+
name="ni_f",
|
|
53
|
+
equation="(Nc*Nv)^0.5 * Fermi(-Eg/(2*Vt))",
|
|
54
|
+
)
|
|
55
|
+
devsim.node_model(
|
|
56
|
+
device=device, region=region, name="ni_b", equation="(Nc*Nv)^0.5 * exp(-Eg/(2*Vt))"
|
|
57
|
+
)
|
|
58
|
+
devsim.print_node_values(device=device, region=region, name="ni_f")
|
|
59
|
+
devsim.print_node_values(device=device, region=region, name="ni_b")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# Purpose: Fermi integral and inverse
|
|
6
|
+
|
|
7
|
+
import devsim
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
if not devsim.get_parameter(name="info")["extended_precision"]:
|
|
11
|
+
print("Extended precision support is not available with this version")
|
|
12
|
+
sys.exit(0)
|
|
13
|
+
|
|
14
|
+
devsim.set_parameter(name="extended_solver", value=True)
|
|
15
|
+
devsim.set_parameter(name="extended_model", value=True)
|
|
16
|
+
devsim.set_parameter(name="extended_equation", value=True)
|
|
17
|
+
|
|
18
|
+
import Fermi1 # noqa: E402, F401
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# Purpose: Fermi integral and inverse
|
|
6
|
+
|
|
7
|
+
import devsim
|
|
8
|
+
import test_common
|
|
9
|
+
|
|
10
|
+
device = "MyDevice"
|
|
11
|
+
region = "MyRegion"
|
|
12
|
+
|
|
13
|
+
test_common.CreateSimpleMesh(device, region)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
devsim.node_model(device=device, region=region, name="zeta1", equation="x*70 - 70;")
|
|
17
|
+
devsim.node_model(device=device, region=region, name="g1", equation="gfi(zeta1, s);")
|
|
18
|
+
devsim.node_model(device=device, region=region, name="zeta2", equation="igfi(g1, s);")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
devsim.node_model(
|
|
22
|
+
device=device, region=region, name="dgfidx1", equation="diff(gfi(zeta1, s), zeta1);"
|
|
23
|
+
)
|
|
24
|
+
devsim.node_model(
|
|
25
|
+
device=device, region=region, name="digfidx1", equation="diff(igfi(g1, s), g1);"
|
|
26
|
+
)
|
|
27
|
+
devsim.node_model(device=device, region=region, name="dgfidx2", equation="1/digfidx1;")
|
|
28
|
+
|
|
29
|
+
for s in (2, 4, 6, 8):
|
|
30
|
+
devsim.set_parameter(name="s", value=s)
|
|
31
|
+
|
|
32
|
+
devsim.print_node_values(device=device, region=region, name="zeta1")
|
|
33
|
+
devsim.print_node_values(device=device, region=region, name="g1")
|
|
34
|
+
devsim.print_node_values(device=device, region=region, name="zeta2")
|
|
35
|
+
|
|
36
|
+
devsim.print_node_values(device=device, region=region, name="dgfidx1")
|
|
37
|
+
devsim.print_node_values(device=device, region=region, name="digfidx1")
|
|
38
|
+
devsim.print_node_values(device=device, region=region, name="dgfidx2")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Copyright 2013 DEVSIM LLC
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# Purpose: Fermi integral and inverse
|
|
6
|
+
|
|
7
|
+
import devsim
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
if not devsim.get_parameter(name="info")["extended_precision"]:
|
|
11
|
+
print("Extended precision support is not available with this version")
|
|
12
|
+
sys.exit(0)
|
|
13
|
+
|
|
14
|
+
devsim.set_parameter(name="extended_solver", value=True)
|
|
15
|
+
devsim.set_parameter(name="extended_model", value=True)
|
|
16
|
+
devsim.set_parameter(name="extended_equation", value=True)
|
|
17
|
+
|
|
18
|
+
import GaussFermi # noqa: E402, F401
|