예제 #1
0
 def input_voltage(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.capacitor_v = value
         print("v=" + str(self.capacitor_v))
     else:
         self.capacitor_v = var.capacitor_v
예제 #2
0
 def input_thickness_layer(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.capacitor_d0 = value
         print("d0=" + str(self.capacitor_d0))
     else:
         self.capacitor_d0 = var.capacitor_d0
예제 #3
0
 def current_carrying_capacity(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.resistor_j = value
         print("j=" + str(self.resistor_j))
     else:
         self.resistor_j = var.resistor_j
예제 #4
0
 def input_capacity(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.capacitor_c = value
         print("C=" + str(self.capacitor_c))
     else:
         self.capacitor_c = var.capacitor_c
예제 #5
0
 def resistance_corection(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.resistor_korekta = value
         print("korekta=" + str(self.resistor_korekta))
     else:
         self.resistor_korekta = var.resistor_korekta
예제 #6
0
 def safety_factor_power(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.resistor_k_p = value
         print("k_p=" + str(self.resistor_k_p))
     else:
         self.resistor_k_p = var.resistor_k_p
예제 #7
0
 def input_power_max(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.resistor_p_max = value
         print("Pmax=" + str(self.resistor_p_max))
     else:
         self.resistor_p_max = var.resistor_p_max
예제 #8
0
 def input_current_max(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.resistor_i_max = value
         print("Imax=" + str(self.resistor_i_max))
     else:
         self.resistor_i_max = var.resistor_i_max
예제 #9
0
 def input_final_resistance(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.resistor_r = value
         print("R=" + str(self.resistor_r))
     else:
         self.resistor_r = var.resistor_r
예제 #10
0
 def input_new_paste_r(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.new_paste_r = value
         var.new_paste_r = value
         print("new_paste_r=" + str(self.new_paste_r))
     else:
         self.new_paste_r = var.new_paste_r
예제 #11
0
 def input_new_paste_przenikalnosc(self, text):
     value = static.input_to_float(text)
     if type(value) == float:
         self.new_paste_przenikalnosc = value
         var.new_paste_przenikalnosc = value
         print("new_paste_przenikalnosc=" +
               str(self.new_paste_przenikalnosc))
     else:
         self.new_paste_przenikalnosc = var.new_paste_przenikalnosc