Behaviorally modeled op amp sort of like the MCP6281.

I attempt to model op-amp behavior with offset voltage, bias current (opposite and equal amounts for each input), common and differential mode input resistance and capacitance, a large but finite DC open-loop gain, gain-bandwith product, and output slew rate. Also has a second 1/RC pole that implements a 45-degree phase margin frequency.

My internal voltages never go within hr0 volts of vcc and ground. I have a low but finite output impedance that increases that headroom with higher output source or sink current.

My default attributes are aimed at matching the Microchip MCP6281. Subclass me with your own attributes, or set different ones with constructor keywords, for a different op amp.

Static Method capValueUnity Returns the capacitance value for a single RC pole with R when unity gain is at f, with DC gain of gDC.
Static Method capValue45deg Returns the capacitance value for a single RC pole with R when there is a 45 degree phase shift at f.
Method setup Undocumented
@staticmethod
def capValueUnity(R, f0, gDC):

Returns the capacitance value for a single RC pole with R when unity gain is at f, with DC gain of gDC.

@staticmethod
def capValue45deg(R, f):

Returns the capacitance value for a single RC pole with R when there is a 45 degree phase shift at f.

def setup(self, f):
Undocumented
API Documentation for pingspice, generated by pydoctor at 2021-09-18 08:41:11.