Electronic

Overview

StructuralGT.electronic.Electronic

Details

class StructuralGT.electronic.Electronic(*args, **kwargs)

Bases: _Compute

compute(network, R_j, axis, boundary_conditions, source=-1, sink=-2)
Args:
network (Network)

The network to compute properties of.

R_j (float):

Resistance associated with the nanowire junction.

axis (int):

The axis along which to calculate effective resistance.

boundary_conditions (list[int]):

The start/end dimensions of the nodes connected to charge source/sink. E.g. [[0,50],[950,1000]].

source (int, optional):

Source node id.

sink (int, optional):

Sink node id.

property effective_resistance

Returns the effective resistance between the source and sink, according to the method of [KRandic93].

property P

np.ndarray: The vector of potentials at each node.

property Q

np.ndarray: pseudoinverse of the graph Laplacian, weighted by conductance. This property is immediately available if potential_distribution() has been called. Otherwise it may be calculated by inverting the graph Laplacian, accessed via the laplacian() method of the graph attribute.