class_electrical_equipment.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 """
5 
6  PHM Gui Electrical Equipment Class
7 
8 """
9 
10 import math
11 
13  """
14  (Failures / 10 ^ 6 * Hours)
15 
16  CC_Lambda = λCapasitor
17 
18  DD_Lambda = λDiode
19 
20  ID_Lambda = λInductor
21 
22  TS_Lambda = λTransistor
23 
24  FS_Lambda = λFuse
25  """
26 
27  def __init__(self):
28  # Private System Attribute
29  self.__qrtz_lambda = 1.0
30  self.__con_sock_lambda = 1.0
31  self.__con_gen_lambda = 1.0
32  self.__rel_lambda = 1.0
33  self.__rd_lambda = 1.0
34  self.__res_lambda = 1.0
35  self.__cc_lambda = 1.0
36  self.__dd_lambda = 1.0
37  self.__id_lambda = 1.0
38  self.__ts_lambda = 1.0
39  self.__fs_lambda = 1.0
40 
41 # COMPONENTS' ATTRIBUTES - START -
42 
43  # QUARTZ CRYSTALS ATTRIBUTES - START -
44  # Public Relays Attributes
45  self.qrtz_pi_q = 1.0
46  self.qrtz_pi_e = 1.0
47 
48  # Private Relays Attributes
49  self.qrtz_lambda_b = 1.0
50 
51  # QUARTZ CRYSTALS ATTRIBUTES - END -
52 
53  # CONNECTORS, SOCKETS ATTRIBUTES - START -
54  # Public Relays Attributes
55  self.con_sock_lambda_b = 1.0
56  self.con_sock_pi_q = 1.0
57  self.con_sock_pi_e = 1.0
58 
59  # Private Relays Attributes
60  self.con_sock_pi_p = 1.0
61 
62  # CONNECTORS, SOCKETS ATTRIBUTES - END -
63 
64  # CONNECTORS, GENERAL ATTRIBUTES - START -
65  # Public Relays Attributes
66  self.con_gen_lambda_b = 1.0
67  self.con_gen_pi_k = 1.0
68  self.con_gen_pi_q = 1.0
69  self.con_gen_pi_e = 1.0
70 
71  # Private Relays Attributes
72  self.con_gen_pi_t = 1.0
73 
74  # CONNECTORS, GENERAL ATTRIBUTES - END -
75 
76  # RELAYS ATTRIBUTES - START -
77  # Public Relays Attributes
78  self.rel_lambda_b = 1.0
79  self.rel_pi_c = 1.0
80  self.rel_pi_q = 1.0
81  self.rel_pi_e = 1.0
82  self.rel_pi_f = 1.0
83 
84  # Private Relays Attributes
85  self.rel_pi_l = 1.0
86  self.rel_pi_cyc = 1.0
87 
88  # RELAYS ATTRIBUTES - END -
89 
90  # ROTATING DEVICES, MOTORS ATTRIBUTES - START -
91  # Public Rotating Devices Attributes
92  self.rd_determination_a = 1.0
93  self.rd_determination_b = 1.0
94 
95  # Private Rotating Devices Attributes
96  self.rd_lambda_1 = 1.0
97  self.rd_lambda_2 = 1.0
98  self.rd_alpha_b = 1.0
99  self.rd_alpha_w = 1.0
100  self.__rd_lambda_p_1 = 0.0
101  self.__rd_lambda_p_2 = 0.0
102  # ROTATING DEVICES, MOTORS ATTRIBUTES - END -
103 
104  # RESISTOR ATTRIBUTES - START -
105  # Public Resistor Attributes
106  self.res_lambda_b = 1.0
107  self.res_pi_q = 1.0
108  self.res_pi_e = 1.0
109 
110  # Private Resistor Attributes
111  self.res_pi_t = 1.0
112  self.res_pi_p = 1.0
113  self.res_pi_s = 1.0
114  # RESISTOR ATTRIBUTES - END -
115 
116  # CAPACITOR ATTRIBUTES - START -
117  # Public Capacitor Attribute
118  self.cc_lambda_b = 1.0
119  self.cc_pi_q = 1.0
120  self.cc_pi_e = 1.0
121 
122  # Private Capacitor Attribute
123  self.__cc_pi_t = 1.0
124  self.__cc_pi_c = 1.0
125  self.__cc_pi_v = 1.0
126  self.__cc_pi_sr = 1.0
127  # CAPACITOR ATTRIBUTES - END -
128 
129  # DIODE ATTRIBUTES - START -
130  # Public Diod Attribute
131  self.dd_lambda_b = 1.0
132  self.dd_pi_c = 1.0
133  self.dd_pi_q = 1.0
134  self.dd_pi_e = 1.0
135 
136  # Private Diod Attribute
137  self.__dd_pi_t = 1.0
138  self.__dd_pi_s = 1.0
139  # DIODE ATTRIBUTES - END -
140 
141  # INDUCTOR ATTRIBUTES - START -
142  # Public Inductor Attribute
143  self.id_lambda_b = 1.0
144  self.id_pi_q = 1.0
145  self.id_pi_e = 1.0
146 
147  # Private Inductor Attribute
148  self.__id_pi_t = 1.0
149  # INDUCTOR ATTRIBUTES - END -
150 
151  # TRANSISTOR ATTRIBUTES - START -
152  # Public Transistor Attribute
153  self.ts_lambda_b = 1.0
154  self.ts_pi_q = 1.0
155  self.ts_pi_e = 1.0
156 
157  # Private Transistor Attribute
158  self.__ts_pi_t = 1.0
159  # TRANSISTOR ATTRIBUTES - END -
160 
161  # FUSE ATTRIBUTES - START -
162  # Public Fuse Attribute
163  self.fs_lambda_b = 1.0
164  self.fs_pi_e = 1.0
165  # FUSE ATTRIBUTES - END -
166 
167 # COMPONENTS' ATTRIBUTES - END -
168 
169  # Get Main Functions
170  def get_qrtz_lambda(self):
171  """
172  get __qrtz_lambda attribute function
173  """
174  return self.__qrtz_lambda
175 
176 
178  """
179  get __con_sock_lambda attribute function
180  """
181  return self.__con_sock_lambda
182 
183 
185  """
186  get __con_gen_lambda attribute function
187  """
188  return self.__con_gen_lambda
189 
190 
191  def get_rel_lambda(self):
192  """
193  get __rel_lambda attribute function
194  """
195  return self.__rel_lambda
196 
197 
198  def get_rd_lambda(self):
199  """
200  get __rd_lambda attribute function
201  """
202  return self.__rd_lambda
203 
204 
205  def get_res_lambda(self):
206  """
207  get __res_lambda attribute function
208  """
209  return self.__res_lambda
210 
211 
212  def get_cc_lambda(self):
213  """
214  get __cc_lambda attribute function
215  """
216  return self.__cc_lambda
217 
218 
219  def get_dd_lambda(self):
220  """
221  get __dd_lambda attribute function
222  """
223  return self.__dd_lambda
224 
225 
226  def get_id_lambda(self):
227  """
228  get __id_lambda attribute function
229  """
230  return self.__id_lambda
231 
232 
233  def get_ts_lambda(self):
234  """
235  get __ts_lambda attribute function
236  """
237  return self.__ts_lambda
238 
239 
240  def get_fs_lambda(self):
241  """
242  get __fs_lambda attribute function
243  """
244  return self.__fs_lambda
245 
246 # GET COMPONENTS' FUNCTIONS - START -
247 
248  # GET QUARTZ CRYSTALS FUNCTIONS - START-
249 
250  def get_qrtz_lambda_b(self):
251  """
252  get qrtz_lambda_b attribute function
253  """
254  return self.qrtz_lambda_b
255 
256  # GET QUARTZ CRYSTALS FUNCTIONS - END-
257 
258  # GET CONNECTORS, SOCKETS FUNCTIONS - START-
259 
260  def get_con_sock_pi_p(self):
261  """
262  get con_sock_pi_p attribute function
263  """
264  return self.con_sock_pi_p
265 
266  # GET CONNECTORS, SOCKETS FUNCTIONS - END-
267 
268  # GET CONNECTORS, GENERAL FUNCTIONS - START-
269 
270  def get_con_gen_pi_t(self):
271  """
272  get con_gen_pi_t attribute function
273  """
274  return self.con_gen_pi_t
275 
276  # GET CONNECTORS, GENERAL FUNCTIONS - END-
277 
278  # GET RELAYS FUNCTIONS - START-
279 
280  def get_rel_lambda_b(self):
281  """
282  get rel_lambda_b attribute function
283  """
284  return self.rel_lambda_b
285 
286 
287  def get_rel_pi_l(self):
288  """
289  get rel_pi_l attribute function
290  """
291  return self.rel_pi_l
292 
293 
294  def get_rel_pi_cyc(self):
295  """
296  get rel_pi_cyc attribute function
297  """
298  return self.rel_pi_cyc
299 
300  # GET RELAYS FUNCTIONS - END -
301 
302  # GET ROTATING DEVICES, MOTORS FUNCTIONS - START-
303 
304  def get_rd_lambda_p_1(self):
305  """
306  get __rd_lambda_p_1 attribute function
307  """
308  return self.__rd_lambda_p_1
309 
310 
311  def get_rd_lambda_p_2(self):
312  """
313  get __rd_lambda_p_2 attribute function
314  """
315  return self.__rd_lambda_p_2
316 
317 
318  def get_rd_alpha_b(self):
319  """
320  get rd_alpha_b attribute function
321  """
322  return self.rd_alpha_b
323 
324 
325  def get_rd_alpha_w(self):
326  """
327  get rd_alpha_w attribute function
328  """
329  return self.rd_alpha_w
330 
331  # GET ROTATING DEVICES, MOTORS FUNCTIONS - END -
332 
333  # GET RESISTOR FUNCTIONS - START-
334 
335  def get_res_pi_t(self):
336  """
337  get res_pi_t attribute function
338  """
339  return self.res_pi_t
340 
341 
342  def get_res_pi_p(self):
343  """
344  get res_pi_p attribute function
345  """
346  return self.res_pi_p
347 
348 
349  def get_res_pi_s(self):
350  """
351  get res_pi_s attribute function
352  """
353  return self.res_pi_s
354 
355  # GET RESISTOR FUNCTIONS - END -
356 
357  # GET CAPACITOR FUNCTIONS - START-
358 
359  def get_cc_pi_t(self):
360  """
361  get __cc_pi_t attribute function
362  """
363  return self.__cc_pi_t
364 
365 
366  def get_cc_pi_c(self):
367  """
368  get __cc_pi_c attribute function
369  """
370  return self.__cc_pi_c
371 
372 
373  def get_cc_pi_v(self):
374  """
375  get __cc_pi_v attribute function
376  """
377  return self.__cc_pi_v
378 
379 
380  def get_cc_pi_sr(self):
381  """
382  get __cc_pi_sr attribute function
383  """
384  return self.__cc_pi_sr
385 
386  # GET CAPACITOR FUNCTIONS - END -
387 
388  # GET DIODE FUNCTIONS - START-
389 
390  def get_dd_pi_t(self):
391  """
392  get __dd_pi_t attribute function
393  """
394  return self.__dd_pi_t
395 
396 
397  def get_dd_pi_s(self):
398  """
399  get __dd_pi_s attribute function
400  """
401  return self.__dd_pi_s
402 
403  # GET DIODE FUNCTIONS - END -
404 
405 
406  # GET INDUCTOR FUNCTIONS - START-
407 
408  def get_id_pi_t(self):
409  """
410  get __id_pi_t attribute function
411  """
412  return self.__id_pi_t
413 
414  # GET INDUCTOR FUNCTIONS - END -
415 
416 
417  # GET TRANSISTOR FUNCTIONS - START-
418 
419  def get_ts_pi_t(self):
420  """
421  get __ts_pi_t attribute function
422  """
423  return self.__ts_pi_t
424 
425  # GET TRANSISTOR FUNCTIONS - END -
426 
427 # GET COMPONENTS' FUNCTIONS - END -
428 
429 
430 # COMPONENTS' FORMULAS - START -
431 
432  # QUARTZ CRYSTALS FORMULAS - START -
434  """
435  λp = (λb * πQ * πE) /10^6
436  """
437  self.__qrtz_lambda = float(self.qrtz_lambda_b * self.qrtz_pi_q * self.qrtz_pi_e) / float(pow(10, 6))
438 
439 
440  def qrtz_lambda_b_func(self, f_value):
441  """
442  calculate qrtz_lambda_b attribute function
443  """
444  self.qrtz_lambda_b = float(0.013 * pow(f_value, 0.23))
445 
446  # QUARTZ CRYSTALS FORMULAS - END -
447 
448 
449  # CONNECTORS, SOCKETS FORMULAS - START -
450 
452  """
453  λp = λb * πP * πQ * πE /10 6
454  """
455  self.__con_sock_lambda = float(self.con_sock_lambda_b * self.con_sock_pi_p * self.con_sock_pi_q * self.con_sock_pi_e) / float(pow(10, 6))
456 
457 
458  def con_sock_pi_p_func(self, n_value):
459  """
460  calculate con_sock_pi_p attribute function
461  """
462  self.con_sock_pi_p = math.exp(pow(((n_value - 1) / 10), 0.39))
463 
464  # CONNECTORS, SOCKETS FORMULAS - END -
465 
466 
467  # CONNECTORS, GENERAL FORMULAS - START -
468 
470  """
471  λp = (λb * πT * πK * πQ * πE) / 10^6
472  """
473  self.__con_gen_lambda = float(self.con_gen_lambda_b * self.con_gen_pi_t * self.con_gen_pi_k * self.con_gen_pi_q * self.con_gen_pi_e) / float(pow(10, 6))
474 
475 
476  def con_gen_pi_t_func(self, t0_value):
477  """
478  calculate con_gen_pi_t attribute function
479  """
480  self.con_gen_pi_t = float(math.exp((-0.14 / (8.617 * (pow(10, -5)))) * ((1 / (t0_value + 273)) - (1 / 298))))
481 
482  # CONNECTORS, GENERAL FORMULAS - END -
483 
484  # RELAYS FORMULAS - START -
485 
486  def relay_func(self):
487  """
488  λp = (λb * πL * πC * πCYC * πF * πQ * πE) / 10^6
489  """
490  self.__rel_lambda = float(self.rel_lambda_b * self.rel_pi_l * self.rel_pi_c * self.rel_pi_cyc * self.rel_pi_f * self.rel_pi_q * self.rel_pi_e) / float(pow(10, 6))
491 
492 
493  def rel_lambda_b_func(self, temperature, rated_temp):
494  """
495  calculate rel_lambda_b attribute function
496  """
497  if rated_temp == 85:
498  self.rel_lambda_b = float(0.0059 * float(math.exp((-0.19 / (8.617 * pow(10, -5))) * ((1 / (temperature + 273)) - (1 / 298)))))
499 
500  elif rated_temp == 125:
501  self.rel_lambda_b = float(0.0059 * float(math.exp((-0.17 / (8.617 * pow(10, -5))) * ((1 / (temperature + 273)) - (1 / 298)))))
502 
503 
504  def rel_pi_l_func(self, stress, select):
505  """
506  calculate rel_pi_l attribute function
507  """
508  if select == 1:
509  self.rel_pi_l = float(pow((stress / 0.8), 2) + 1)
510 
511  elif select == 2:
512  self.rel_pi_l = float(pow((stress / 0.4), 2) + 1)
513 
514  elif select == 3:
515  self.rel_pi_l = float(pow((stress / 0.2), 2) + 1)
516 
517 
518  def rel_pi_cyc_func(self, cycles, select):
519  """
520  calculate rel_pi_cyc attribute function
521  """
522  if select == 0:
523  if cycles >= float(1.0):
524  result = float(cycles / 10)
525 
526  elif cycles < float(1.0):
527  result = float(0.1)
528 
529  else:
530  if cycles <= 10:
531  result = float(1.0)
532 
533  elif cycles <= 1000:
534  result = float(cycles / 10)
535 
536  elif cycles > 1000:
537  result = float(pow(cycles/100, 2))
538 
539  self.rel_pi_cyc = result
540 
541  # RELAYS FORMULAS - END -
542 
543  # ROTATING DEVICES, MOTORS FORMULAS - START -
544 
546  """
547  λp = ((λ1 / (A *αB)) + (λ2 / (B *αW))) * 1 / 10^6
548  """
549  self.__rd_lambda = self.__rd_lambda_p_1 + self.__rd_lambda_p_2
550 
551 
553  """
554  λp1 = (λ1 / (A *αB)) * 1 / 10^6
555  """
556  self.__rd_lambda_p_1 = float((self.rd_lambda_1 / (self.rd_determination_a * self.rd_alpha_b)) / float(pow(10, 6)))
557 
558 
560  """
561  λp2 = (λ2 / (B *αW)) * 1 / 10^6
562  """
563  self.__rd_lambda_p_2 = float((self.rd_lambda_2 / (self.rd_determination_b * self.rd_alpha_w)) / float(pow(10, 6)))
564 
565 
566  def rd_alpha_b_func(self, temperature):
567  """
568  calculate rd_alpha_b attribute function
569  """
570  self.rd_alpha_b = float(pow(float(pow(10, float(2.534 - float(2357 / (temperature + 273)))) + (1 / float(pow(10, float(20 - (4500 / float(temperature + 273)))) + 300))), -1))
571 
572 
573  def rd_alpha_w_func(self, temperature):
574  """
575  calculate rd_alpha_w attribute function
576  """
577  self.rd_alpha_w = float(pow(10, float(float(2357 / (temperature + 273)) - 1.83)))
578 
579  # ROTATING DEVICES, MOTORS FORMULAS - END -
580 
581  # RESISTOR FORMULAS - START -
582  def resistors_func(self):
583  """
584  λp = λb * πT * πP * πS * πQ * πE * 1 / 10^6
585  """
586  self.__res_lambda = float((self.res_lambda_b * self.res_pi_t * self.res_pi_p * self.res_pi_s * self.res_pi_q * self.res_pi_e) / float(pow(10, 6)))
587 
588 
589  def res_pi_t_func(self, temperature, select):
590  """
591  calculate res_pi_t attribute function
592  """
593  if select == 1:
594  ea_value = 0.2
595  result = self.calculate_res_pi_t_func(temperature, ea_value)
596 
597  elif select == 2:
598  ea_value = 0.08
599  result = self.calculate_res_pi_t_func(temperature, ea_value)
600 
601  else:
602  result = 1.0
603 
604  self.res_pi_t = result
605 
606  @classmethod
607  def calculate_res_pi_t_func(cls, temperature, ea_value):
608  """
609  calculate res_pi_t value function
610  """
611  result = float(math.exp(((-1 * ea_value) / (8.617 * pow(10, -5))) * ((1 / (temperature + 273)) - (1 / 298))))
612 
613  return result
614 
615 
616  def res_pi_p_func(self, power_dissipiation):
617  """
618  calculate res_pi_p attribute function
619  """
620  self.res_pi_p = float(pow(power_dissipiation, 0.39))
621 
622 
623  def res_pi_s_func(self, stress, select):
624  """
625  calculate res_pi_s attribute function
626  """
627  if select == 1:
628  result = 0.71 * float(math.exp(1.1 * stress))
629 
630  elif select == 2:
631  result = 0.54 * float(math.exp(2.04 * stress))
632 
633  else:
634  result = 1.0
635 
636  self.res_pi_s = result
637 
638  # RESISTOR FORMULAS - END -
639 
640  # CAPACITOR FORMULAS - START -
641 
642  def capacitors_func(self):
643  """
644  λp = λb * πT * πC * πV * πSR * πQ * πE * 1 / 10^6
645  """
646  self.__cc_lambda = float(self.cc_lambda_b * self.__cc_pi_t * self.__cc_pi_c * self.__cc_pi_v * self.__cc_pi_sr * self.cc_pi_q * self.cc_pi_e) / float(pow(10, 6))
647 
648 
649  def cc_pi_t_func(self, temperature, select):
650  """
651  calculate __cc_pi_t attribute function
652  """
653  if select == 0:
654  result = float(temperature)
655 
656  elif select == 1:
657  ea_value = 0.15
658  result = self.calculate_cc_pi_t_func(temperature, ea_value)
659 
660  elif select == 2:
661  ea_value = 0.35
662  result = self.calculate_cc_pi_t_func(temperature, ea_value)
663 
664  else:
665  result = 1.0
666 
667  self.__cc_pi_t = result
668 
669  @classmethod
670  def calculate_cc_pi_t_func(cls, temperature, ea_value):
671  """
672  calculate __cc_pi_t value function
673  """
674  result = float(math.exp(((-1 * ea_value) / (8.617 * pow(10, -5))) * ((1 / (temperature + 273)) - (1 / 298))))
675 
676  return result
677 
678 
679  def cc_pi_c_func(self, capacitance, select):
680  """
681  calculate __cc_pi_c attribute function
682  """
683  if select == 0:
684  result = float(capacitance)
685 
686  elif select == 1:
687  result = float(pow(capacitance, 0.09))
688 
689  elif select == 2:
690  result = float(pow(capacitance, 0.23))
691 
692  else:
693  result = 1.0
694 
695  self.__cc_pi_c = result
696 
697 
698  def cc_pi_v_func(self, voltage_stress, select):
699  """
700  calculate __cc_pi_v attribute function
701  """
702  if select == 0:
703  result = float(voltage_stress)
704 
705  elif select == 1:
706  result = float(pow((voltage_stress / 0.6), 5) + 1)
707 
708  elif select == 2:
709  result = float(pow((voltage_stress / 0.6), 10) + 1)
710 
711  elif select == 3:
712  result = float(pow((voltage_stress / 0.6), 3) + 1)
713 
714  elif select == 4:
715  result = float(pow((voltage_stress / 0.6), 17) + 1)
716 
717  elif select == 5:
718  result = float(pow((voltage_stress / 0.6), 3) + 1)
719 
720  else:
721  result = 1.0
722 
723  self.__cc_pi_v = result
724 
725 
726  def cc_pi_sr_func(self, select):
727  """
728  calculate __cc_pi_sr attribute function
729  """
730  if select == "None":
731  result = 1.0
732 
733  elif select == "cr_g_0_8":
734  result = 0.66
735 
736  elif select == "cr_g_0_6_to_0_8":
737  result = 1.0
738 
739  elif select == "cr_g_0_4_to_0_6":
740  result = 1.3
741 
742  elif select == "cr_g_0_2_to_0_4":
743  result = 2.0
744 
745  elif select == "cr_g_0_1_to_0_2":
746  result = 2.7
747 
748  elif select == "cr_0_to_0_1":
749  result = 3.3
750 
751  else:
752  result = float(select)
753 
754  self.__cc_pi_sr = result
755 
756  # CAPACITOR FORMULAS - END -
757 
758 
759  # DIODE FORMULAS - START -
760  def diodes_func(self):
761  """
762  λp = λb * πT * πS * πC * πQ * πE * 1 / 10^6
763  """
764  self.__dd_lambda = float(self.dd_lambda_b * self.__dd_pi_t * self.__dd_pi_s * self.dd_pi_c * self.dd_pi_q * self.dd_pi_e) / float(pow(10, 6))
765 
766 
767  def dd_pi_t_func(self, temperature, select):
768  """
769  calculate __dd_pi_t attribute function
770  """
771  if select == 0:
772  result = float(temperature)
773 
774  elif select == 1:
775  constant = 1925
776  result = self.calculate_dd_pi_t_func(temperature, constant)
777 
778  elif select == 2:
779  constant = 3091
780  result = self.calculate_dd_pi_t_func(temperature, constant)
781 
782  else:
783  result = 1.0
784 
785  self.__dd_pi_t = result
786 
787  @classmethod
788  def calculate_dd_pi_t_func(cls, temperature, constant):
789  """
790  calculate __dd_pi_t value function
791  """
792  result = float(math.exp((-1 * constant) * ((1 / (temperature + 273)) - (1 / 298))))
793 
794  return result
795 
796 
797  def dd_pi_s_func(self, voltage_stress, select):
798  """
799  calculate __dd_pi_s attribute function
800  """
801  if select == 1:
802  if voltage_stress < 0.3:
803  result = 0.054
804 
805  elif voltage_stress <= 1.0:
806  result = float(pow(voltage_stress, 2.43))
807 
808  elif select == 2:
809  result = float(voltage_stress)
810 
811  else:
812  result = 1.0
813 
814  self.__dd_pi_s = result
815 
816  # DIODE FORMULAS - END -
817 
818  # INDUCTOR FORMULAS - START -
819 
820  def inductors_func(self):
821  """
822  λp = λb * πT * πQ * πE * 1 / 10^6
823  """
824  self.__id_lambda = float(self.id_lambda_b * self.__id_pi_t * self.id_pi_q * self.id_pi_e) / float(pow(10, 6))
825 
826 
827  def id_pi_t_func(self, hot_spot_temperature, select):
828  """
829  calculate __id_pi_t attribute function
830  """
831  if select == 0:
832  result = hot_spot_temperature
833 
834  elif select == 1:
835  result = float(math.exp(((-1 * 0.11) / (8.617 * pow(10, -5))) * ((1 / (hot_spot_temperature + 273)) - (1 / 298))))
836 
837  else:
838  result = 1.0
839 
840  self.__id_pi_t = result
841 
842  # INDUCTOR FORMULAS - END -
843 
844  # TRANSISTOR FORMULAS - START -
845 
846  def transistors_func(self):
847  """
848  λp = λb * πT * πQ * πE * 1 / 10^6
849  """
850  self.__ts_lambda = float(self.ts_lambda_b * self.__ts_pi_t * self.ts_pi_q * self.ts_pi_e) / float(pow(10, 6))
851 
852  def ts_pi_t_func(self, temperature, select):
853  """
854  calculate __ts_pi_t attribute function
855  """
856  if select == 0:
857  result = temperature
858 
859  elif select == 1:
860  result = float(math.exp((-1 * 1925) * ((1 / (temperature + 273)) - (1 / 298))))
861 
862  else:
863  result = 1.0
864 
865  self.__ts_pi_t = result
866 
867  # TRANSISTOR FORMULAS - END -
868 
869  # FUSE FORMULAS - START -
870  def fuses_func(self):
871  """
872  λp = λb * πE * 1 / 10^6
873  """
874  self.__fs_lambda = float(self.fs_lambda_b * self.fs_pi_e) / float(pow(10, 6))
875  # FUSE FORMULAS - END -
876 # COMPONENTS' FORMULAS - END -


phm_hazard_rate_calculation
Author(s):
autogenerated on Thu Aug 13 2020 16:41:45