Clarify calculation and origin of np.conj()

pull/604/head
Roel Jordans 2023-02-11 14:04:58 +01:00 zatwierdzone przez Holger Müller
rodzic 0ffe0eaf72
commit 02371bc56b
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -171,7 +171,8 @@ class RealImaginaryMuChart(RealImaginaryChart):
return self.mu_r(p)
def mu_r(self, p: Datapoint) -> complex:
inductance = np.conj(-1j * p.impedance()/(2*math.pi*p.freq))
inductance = p.impedance()/(2j*math.pi*p.freq)
# Core length and core area are in mm and mm2 respectively
return inductance * (self.coreLength/1e3) / (mu_0 * self.coreWindings**2 * (self.coreArea/1e6))
# note: mu_r = mu' - j * mu ''
return np.conj(inductance * (self.coreLength/1e3) / (mu_0 * self.coreWindings**2 * (self.coreArea/1e6)))