skrf.vectorFitting.VectorFitting.is_passive

VectorFitting.is_passive(parameter_type='s')[source]

Returns the passivity status of the model as a boolean value.

Parameters:

parameter_type (str, optional) – Representation type of the fitted frequency responses. Either scattering (s or S), impedance (z or Z) or admittance (y or Y). Currently, only scattering parameters are supported for passivity evaluation.

Returns:

passivityTrue if model is passive, else False.

Return type:

bool

See also

passivity_test

Verbose passivity evaluation routine.

passivity_enforce

Enforces the passivity of the vector fitted model, if required.

Examples

Load and fit the Network, then check whether or not the model is passive:

>>> nw_3port = skrf.Network('my3port.s3p')
>>> vf = skrf.VectorFitting(nw_3port)
>>> vf.vector_fit(n_poles_real=1, n_poles_cmplx=4)
>>> vf.is_passive() # returns True or False