Oct-26-2020, 10:55 AM
Thanks.
1st value (i.e. L) is Ok.
2nd value (i.e. C) is lower than expected of 30%
The last one (i.e. R) is 40% of expected.
Here is code, that generates expected values:
1st value (i.e. L) is Ok.
2nd value (i.e. C) is lower than expected of 30%
The last one (i.e. R) is 40% of expected.
Here is code, that generates expected values:
import math Pi = math.pi for f_raw in (130, 140, 150): Cs_raw = 1.0 Cl_raw = 3.0 L_raw = 0.32 Cs = Cs_raw*1e-12 Cl = Cl_raw*1e-12 L = L_raw*1e-6 Rs = 5.0 Rin = 10.0 f = f_raw*1e6 omega = 2*Pi*f Ar = 1 - omega**2*Cs*Cl Aj = omega*Cs*Rs A = math.sqrt(Ar**2 + Aj**2) Br = 1 - omega**2*Cs*L - omega**2*Cl*L - omega**2*Cl*Cs*Rin*Rs Bj = omega*Cs*Rs + omega*Cl*Rin - omega**3*Cl*Cs*Rin*L + omega*Cl*Rs B = math.sqrt(Br**2 + Bj**2) print(f_raw, A/B)