padne.problem

Classes

Layer

Represents a single copper layer of the input circuit board.

NodeID

Opaque identifier for a node in the network.

Connection

Represents a connection between an internal node of the Network and

BaseLumped

Represents a lumped element in the network.

Network

Resistor

Represents a lumped element in the network.

VoltageSource

Represents a lumped element in the network.

CurrentSource

Represents a lumped element in the network.

VoltageRegulator

Represents a lumped element in the network.

Problem

Module Contents

class padne.problem.Layer[source]

Represents a single copper layer of the input circuit board.

The individual polygons are cached in the .geoms field to avoid expensive Shapely copying when accessing them repeatedly using shape.geoms[…].

shape: shapely.geometry.MultiPolygon[source]
name: str[source]
conductance: float[source]
geoms: tuple[shapely.geometry.Polygon, Ellipsis][source]
class padne.problem.NodeID[source]

Opaque identifier for a node in the network.

class padne.problem.Connection[source]

Represents a connection between an internal node of the Network and a point in the layer.

layer: Layer[source]
point: shapely.geometry.Point[source]
node_id: NodeID[source]
class padne.problem.BaseLumped[source]

Represents a lumped element in the network.

property terminals: list[NodeID][source]
property is_source: bool[source]
property extra_variable_count: int[source]
class padne.problem.Network[source]
connections: list[Connection][source]
elements: list[BaseLumped][source]
nodes: dict[NodeID, int][source]
has_source: bool[source]
class padne.problem.Resistor[source]

Bases: BaseLumped

Represents a lumped element in the network.

a: NodeID[source]
b: NodeID[source]
resistance: float[source]
property terminals: list[NodeID][source]
class padne.problem.VoltageSource[source]

Bases: BaseLumped

Represents a lumped element in the network.

p: NodeID[source]
n: NodeID[source]
voltage: float[source]
property terminals: list[NodeID][source]
property is_source: bool[source]
property extra_variable_count: int[source]
class padne.problem.CurrentSource[source]

Bases: BaseLumped

Represents a lumped element in the network.

f: NodeID[source]
t: NodeID[source]
current: float[source]
property terminals: list[NodeID][source]
property is_source: bool[source]
class padne.problem.VoltageRegulator[source]

Bases: BaseLumped

Represents a lumped element in the network.

v_p: NodeID[source]
v_n: NodeID[source]
s_f: NodeID[source]
s_t: NodeID[source]
voltage: float[source]
gain: float[source]
property terminals: list[NodeID][source]
property is_source: bool[source]
property extra_variable_count: int[source]
class padne.problem.Problem[source]
layers: list[Layer][source]
networks: list[Network][source]
project_name: str | None = None[source]