Skip to content

Commit 2bd9b8a

Browse files
simbilodtcaduser
authored andcommitted
fix imports
1 parent 65d2dda commit 2bd9b8a

49 files changed

Lines changed: 118 additions & 79 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/bioapp1/bioapp1_2d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
device = "disk"
77

88
import sys
9-
from devsim import *
9+
from devsim import add_gmsh_contact, add_gmsh_interface, add_gmsh_region, create_device, create_gmsh_mesh, finalize_mesh, node_model, node_solution, set_node_values, set_parameter, solve, write_devices
10+
1011

1112
if len(sys.argv) != 2:
1213
sys.stderr.write('must specify voltage')
@@ -29,7 +30,7 @@
2930
finalize_mesh(mesh="disk")
3031
create_device(mesh="disk", device=device)
3132

32-
from bioapp1_common import *
33+
import bioapp1_common
3334

3435
set_parameter(device="disk", region="dna", name="charge_density", value=0)
3536
solve(type="dc", relative_error=1e-7, absolute_error=1e11, maximum_iterations=100)

examples/bioapp1/bioapp1_3d.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
device = "disk"
77

88
import sys
9-
from devsim import *
9+
from devsim import add_gmsh_contact, add_gmsh_interface, add_gmsh_region, create_device, create_gmsh_mesh, finalize_mesh, node_model, node_solution, set_node_values, set_parameter, solve, write_devices
10+
1011

1112
if len(sys.argv) != 2:
1213
sys.stderr.write('must specify voltage')
@@ -29,7 +30,8 @@
2930
finalize_mesh(mesh="disk")
3031
create_device(mesh="disk", device=device)
3132

32-
from bioapp1_common import *
33+
import bioapp1_common
34+
# from bioapp1_common import *
3335

3436
set_parameter(device="disk", region="dna", name="charge_density", value=0)
3537
solve(type="dc", relative_error=1e-7, absolute_error=1e11, maximum_iterations=100)

examples/bioapp1/bioapp1_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
5+
from devsim import add_db_entry, contact_equation, contact_node_model, create_db, cylindrical_edge_couple, cylindrical_node_volume, edge_from_node_model, edge_model, element_from_edge_model, equation, get_dimension, get_node_model_values, interface_equation, interface_model, node_model, node_solution, set_node_values, set_parameter
6+
67
#### molarity 0.001 mole / Liter * 1 L / (1e3 cm^3) * 6.02e23 / mole = 6.02e17 /cm^3
78
set_parameter(device="disk", region="solution", name="n_bound", value=6.02e17)
89
#### 2q/nm^3 --> 2/nm^3 * (1 nm^3/(1e-7 cm)^3)

examples/capacitance/cap1d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
5+
from devsim import add_1d_contact, add_1d_mesh_line, add_1d_region, contact_equation, contact_node_model, create_1d_mesh, create_device, edge_from_node_model, edge_model, equation, finalize_mesh, get_contact_charge, node_solution, set_parameter, solve
6+
67
device="MyDevice"
78
region="MyRegion"
89

examples/capacitance/cap2d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
5+
from devsim import add_2d_contact, add_2d_mesh_line, add_2d_region, contact_equation, contact_node_model, create_2d_mesh, create_device, edge_from_node_model, edge_model, element_from_edge_model, equation, finalize_mesh, get_contact_charge, node_model, node_solution, set_parameter, solve, write_devices
6+
67
device="MyDevice"
78
region="MyRegion"
89

examples/diode/diode_1d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
5+
from devsim import print_node_values, set_parameter, solve, write_devices
6+
67
import devsim.python_packages.simple_physics as simple_physics
78
import diode_common
89
#####

examples/diode/diode_1d_custom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
5+
from devsim import custom_equation, get_element_node_list, get_equation_numbers, get_node_model_values, get_parameter, node_model, print_node_values, set_parameter, solve, write_devices
6+
67
import devsim.python_packages.simple_physics as simple_physics
78
import diode_common
89
#####

examples/diode/diode_2d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
6-
from devsim.python_packages.simple_physics import *
5+
from devsim import set_parameter, solve
6+
7+
from devsim.python_packages.simple_physics import GetContactBiasName, PrintCurrents
78
import diode_common
89

910
# dio1

examples/diode/diode_common.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
6-
from devsim.python_packages.simple_physics import *
5+
from devsim import add_1d_contact, add_1d_mesh_line, add_1d_region, add_2d_contact, add_2d_mesh_line, add_2d_region, add_gmsh_contact, add_gmsh_region, create_1d_mesh, create_2d_mesh, create_device, create_gmsh_mesh, finalize_mesh, get_contact_list, set_node_values, set_parameter
6+
7+
from devsim.python_packages.model_create import CreateNodeModel, CreateSolution
8+
9+
from devsim.python_packages.simple_physics import GetContactBiasName, SetSiliconParameters, CreateSiliconPotentialOnly, CreateSiliconPotentialOnlyContact, CreateSiliconDriftDiffusion, CreateSiliconDriftDiffusionAtContact
710
#####
811
# dio1
912
#

examples/diode/gmsh_diode2d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from devsim import *
6-
from devsim.python_packages.simple_physics import *
5+
from devsim import node_model, set_parameter, solve, write_devices
6+
7+
from devsim.python_packages.simple_physics import GetContactBiasName, PrintCurrents
78
import diode_common
89

910
device="diode2d"

0 commit comments

Comments
 (0)