Closed oe8bck closed 1 year ago
The solution is correct.
Your transfer function has the form K / (s + p1)
which is dimensionless. However, s has units of rad/s and so K
has units of s/rad. Are you thinking of the DC gain which is -R1 / (R21 + R22)
?
Also note, A0
should be positive if you are trying to model an inverting opamp amplifier.
Thanks for your fast response.
Well, to be honest up to now I always thought that K is always dimensionless. But you are absolutely right, if the number of poles is not the same as the number of zeros, the units of poles and zeros do not cancel and so - if the transfer function is dimensionless (Vo/Vi) - the K-factor has to have a unit.
Thanks a lot for that great package, I just started to work with it and I like it more the more I am using it :-)
I find circuit behaviour is full of surprises!
I've fixed expression parameterization so that the units are correctly determined for the parameters. So for your example:
>>> defs['K'].units
rad
──
s
I think the K-factor in this small circuitry is wrong, The K-factor given is K=-R1/(C2R2^2) I do not expect a capacitor (Farad) in there, all units should cancel.
Many thanks for the hint what's going wrong.
KR, Christof