示例#1
0
文件: bbq.py 项目: accb529/pyHFSS
 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)
示例#2
0
文件: bbq.py 项目: zlatkom/pyHFSS
 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
示例#3
0
文件: bbq.py 项目: accb529/pyHFSS
 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
示例#4
0
文件: bbq.py 项目: zlatkom/pyHFSS
 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)