AbstractMNACircuitSolver

class pmrf.models.composite.interconnected.circuit.base.AbstractMNACircuitSolver

Bases: Module

Abstract base class for solvers that resolve arbitrary circuits using MNA.

abstractmethod run(y_flattened: Array, b_flattened: Array, c_flattened: Array, d_flattened: Array, z0: Array, topology: MNARepresentation) → ScatteringResult

Executes the Modified Nodal Analysis circuit solving algorithm.

The result is S at the probe reference z0, found by loading each external port with it (ADR-0007), so that ports shorted together stay exact.

Parameters:
  • y_flattened (jnp.ndarray) – A 1D array of flattened Y-block elements.

  • b_flattened (jnp.ndarray) – A 1D array of flattened B-block elements.

  • c_flattened (jnp.ndarray) – A 1D array of flattened C-block elements.

  • d_flattened (jnp.ndarray) – A 1D array of flattened D-block elements.

  • z0 (jnp.ndarray) – The probe reference impedance, one per external port. May be complex.

  • topology (MNARepresentation) – The static map dictating the MNA assembly and partition logic.

Returns:

The external S-parameters at z0.

Return type:

ScatteringResult