Skip to content

Instantly share code, notes, and snippets.

import ahkab
class NLResistor(ahkab.devices.Component):
def __init__(self, part_id, n1, n2, value):
self.part_id = part_id
self.value = value
self.is_nonlinear = True
self.is_symbolic = False
self.n1 = n1