Exemplo n.º 1
0
 def calc_line_current(self, variation, junc_line_name):
     lv = self.get_lv(variation)
     calc = CalcObject([], self.setup)
     calc = calc.getQty("H").imag().integrate_line_tangent(
         name=junc_line_name)
     #self.design.Clear_Field_Clac_Stack()
     return calc.evaluate(lv=lv)
Exemplo n.º 2
0
 def calc_avg_current_J_surf_mag(self, variation, junc_rect, junc_len):
     ''' Peak current I_max for mdoe J in junction J  
         The avg. is over the surface of the junction. I.e., spatial. '''
     lv   = self.get_lv(variation)
     calc = CalcObject([],self.setup)
     calc = calc.getQty("Jsurf").mag().integrate_surf(name = junc_rect)
     I    = calc.evaluate(lv=lv) / junc_len #phase = 90
     #self.design.Clear_Field_Clac_Stack()
     return  I
Exemplo n.º 3
0
 def calc_avg_current_J_surf_mag(self, variation, junc_rect, junc_len):
     ''' Peak current I_max for mdoe J in junction J  
         The avg. is over the surface of the junction. I.e., spatial. '''
     lv = self.get_lv(variation)
     calc = CalcObject([], self.setup)
     calc = calc.getQty("Jsurf").mag().integrate_surf(name=junc_rect)
     I = calc.evaluate(lv=lv) / junc_len  #phase = 90
     #self.design.Clear_Field_Clac_Stack()
     return I
Exemplo n.º 4
0
 def calc_line_current(self, variation, junc_line_name):
     lv   = self.get_lv(variation)
     calc = CalcObject([],self.setup)
     calc = calc.getQty("H").imag().integrate_line_tangent(name = junc_line_name)
     #self.design.Clear_Field_Clac_Stack()
     return calc.evaluate(lv=lv)