Fixed another bug in RectangularWaveguide.Z0
@@ -342,7 +342,7 @@ class RectangularWaveguide(Media):
'''
## haringtons form
- if True:#self.m==1 and self.n==0:
+ if False:#self.m==1 and self.n==0:
fs = Freespace(frequency=self.frequency,
ep_r=self.ep_r,
mu_r=self.mu_r)
@@ -422,7 +422,7 @@ class RectangularWaveguide(Media):
'''
omega = self.frequency.w
impedance_dict = {'te': 1j*omega*self.mu/(self.gamma),
- 'tm': 1j*self.gamma/(omega*self.ep),\
+ 'tm': -1j*self.gamma/(omega*self.ep),\
}
return impedance_dict[self.mode_type]
