Skip to content

Electric Field

Nawaf Abdullah edited this page Feb 13, 2019 · 3 revisions

The class EField, contained in the script (SIM_Efield.py), allows the user to simulate electric field, and potential between two capacitors in 2D or 3D.

Numerical Method

Usage Example

#   Standard Example 2D
field_2d = EField(100)
field_2d.set_capacitor_lines(80, 80, 1, -1, 50)
field_2d.surface_potential(5000)
field_2d.surface_field(1)
field_2d.plot_potential_surface()
field_2d.plot_field()

The Potential Field 2D The Electric Field 2D

#   Standard Example 3D
field_3d = EField(50)
field_3d.set_capacitor_plates(40, 40, 1, -1, 30)
field_3d.space_potential(50)
field_3d.space_field(1)
field_3d.plot_potential_3d_slice(15)
field_3d.plot_field()

A slice of the potential field in 3D, the slice is closer to the -1V capacitor plate, that is why it mostly in purple. The Electric Field 3D

Clone this wiki locally