simpeg.electromagnetics.utils.segmented_line_current_source_term#
- simpeg.electromagnetics.utils.segmented_line_current_source_term(mesh, locs)[source]#
Calculate a source term for a line current source on a mesh
Given a discretize mesh, compute the source vector for a unit current flowing along the segmented line path with vertices defined by locs.
- Parameters:
- mesh
discretize.TreeMesh
ordiscretize.TensorMesh
The Mesh (3D) for the system.
- locs(
n_points
, 3)numpy.ndarray
The array of locations of consecutive points along the polygonal path.
- mesh
- Returns:
- (
mesh.n_edges
)numpy.ndarray
Contains the source term for all x, y, and z edges of the mesh.
- (
Notes
You can create a closed loop by setting the first and end point to be the same.