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 (
sorS), impedance (zorZ) or admittance (yorY). Currently, only scattering parameters are supported for passivity evaluation.- Returns:
passivity –
Trueif model is passive, elseFalse.- Return type:
See also
passivity_testVerbose passivity evaluation routine.
passivity_enforceEnforces 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