31 if( abs( aDistIso ) < 3 )
47 if( aAltitude <= 2000 )
49 if( aAltitude <= 3000 )
51 if( aAltitude <= 4000 )
53 if( aAltitude <= 5000 )
55 if( aAltitude <= 6000 )
57 if( aAltitude <= 7000 )
59 if( aAltitude <= 8000 )
61 if( aAltitude <= 9000 )
63 if( aAltitude <= 10000 )
65 if( aAltitude <= 15000 )
67 if( aAltitude <= 20000 )
301 if( aVoltage <= 0.33 )
303 if( aVoltage <= 0.40 )
305 if( aVoltage <= 0.50 )
307 if( aVoltage <= 0.60 )
309 if( aVoltage <= 0.80 )
311 if( aVoltage <= 1.0 )
316 if( aVoltage <= 1.0 )
318 if( aVoltage <= 1.2 )
320 if( aVoltage <= 1.5 )
325 if( aVoltage <= 1.5 )
327 if( aVoltage <= 2.0 )
329 if( aVoltage <= 2.5 )
334 if( aVoltage <= 3.0 )
336 if( aVoltage <= 4.0 )
338 if( aVoltage <= 5.0 )
340 if( aVoltage <= 6.0 )
342 if( aVoltage <= 8.0 )
364 if( aVoltage <= 100 )
372 if( aVoltage <= 0.33 )
374 if( aVoltage <= 0.40 )
376 if( aVoltage <= 0.50 )
378 if( aVoltage <= 0.60 )
380 if( aVoltage <= 0.80 )
382 if( aVoltage <= 1.0 )
384 if( aVoltage <= 1.2 )
389 if( aVoltage <= 1.2 )
391 if( aVoltage <= 1.5 )
393 if( aVoltage <= 2.0 )
395 if( aVoltage <= 2.5 )
397 if( aVoltage <= 3.0 )
402 if( aVoltage <= 3.0 )
404 if( aVoltage <= 4.0 )
406 if( aVoltage <= 5.0 )
411 if( aVoltage <= 6.0 )
413 if( aVoltage <= 8.0 )
435 if( aVoltage <= 100 )
454 if( aVoltage <= 0.04 )
456 if( aVoltage <= 0.06 )
458 if( aVoltage <= 0.1 )
460 if( aVoltage <= 0.12 )
462 if( aVoltage <= 0.15 )
464 if( aVoltage <= 0.20 )
466 if( aVoltage <= 0.25 )
468 if( aVoltage <= 0.33 )
470 if( aVoltage <= 0.4 )
472 if( aVoltage <= 0.5 )
474 if( aVoltage <= 0.6 )
476 if( aVoltage <= 0.8 )
478 if( aVoltage <= 1.0 )
480 if( aVoltage <= 1.2 )
482 if( aVoltage <= 1.5 )
484 if( aVoltage <= 2.0 )
486 if( aVoltage <= 2.5 )
488 if( aVoltage <= 3.0 )
490 if( aVoltage <= 4.0 )
492 if( aVoltage <= 5.0 )
494 if( aVoltage <= 6.0 )
496 if( aVoltage <= 8.0 )
518 if( aVoltage <= 0.04 )
520 if( aVoltage <= 0.06 )
522 if( aVoltage <= 0.1 )
524 if( aVoltage <= 0.12 )
526 if( aVoltage <= 0.15 )
528 if( aVoltage <= 0.20 )
530 if( aVoltage <= 0.25 )
532 if( aVoltage <= 0.33 )
534 if( aVoltage <= 0.33 )
536 if( aVoltage <= 0.4 )
538 if( aVoltage <= 0.5 )
540 if( aVoltage <= 0.6 )
542 if( aVoltage <= 0.8 )
544 if( aVoltage <= 1.0 )
546 if( aVoltage <= 1.2 )
548 if( aVoltage <= 1.5 )
550 if( aVoltage <= 2.0 )
552 if( aVoltage <= 2.5 )
554 if( aVoltage <= 3.0 )
556 if( aVoltage <= 4.0 )
558 if( aVoltage <= 5.0 )
560 if( aVoltage <= 6.0 )
562 if( aVoltage <= 8.0 )
584 if( aVoltage <= 100 )
613 if( voltage <= 1000 )
615 if( voltage <= 1250 )
617 if( voltage <= 1500 )
633 if( voltage <= 1000 )
635 if( voltage <= 1250 )
637 if( voltage <= 1500 )
653 if( voltage <= 1000 )
655 if( voltage <= 1250 )
657 if( voltage <= 1500 )
673 if( voltage <= 1000 )
675 if( voltage <= 1250 )
677 if( voltage <= 1500 )
711 if( aVoltage > 1000 )
712 IsPCBmaterial =
false;
714 IsPCBmaterial =
false;
716 IsPCBmaterial =
false;
728 if( aVoltage <= 100 )
730 if( aVoltage <= 125 )
732 if( aVoltage <= 160 )
734 if( aVoltage <= 200 )
736 if( aVoltage <= 250 )
738 if( aVoltage <= 320 )
740 if( aVoltage <= 400 )
742 if( aVoltage <= 500 )
744 if( aVoltage <= 630 )
746 if( aVoltage <= 800 )
748 if( aVoltage <= 1000 )
759 if( aVoltage <= 100 )
761 if( aVoltage <= 125 )
763 if( aVoltage <= 160 )
765 if( aVoltage <= 200 )
767 if( aVoltage <= 250 )
769 if( aVoltage <= 320 )
771 if( aVoltage <= 400 )
773 if( aVoltage <= 500 )
775 if( aVoltage <= 630 )
777 if( aVoltage <= 800 )
779 if( aVoltage <= 1000 )
787 if( aVoltage <= 12.5 )
805 if( aVoltage <= 100 )
807 if( aVoltage <= 125 )
809 if( aVoltage <= 160 )
811 if( aVoltage <= 200 )
813 if( aVoltage <= 250 )
815 if( aVoltage <= 320 )
817 if( aVoltage <= 400 )
819 if( aVoltage <= 500 )
821 if( aVoltage <= 630 )
823 if( aVoltage <= 800 )
825 if( aVoltage <= 1000 )
827 if( aVoltage <= 1250 )
829 if( aVoltage <= 1600 )
831 if( aVoltage <= 2000 )
833 if( aVoltage <= 2500 )
835 if( aVoltage <= 3200 )
837 if( aVoltage <= 4000 )
839 if( aVoltage <= 5000 )
841 if( aVoltage <= 6300 )
843 if( aVoltage <= 8000 )
845 if( aVoltage <= 10000 )
847 if( aVoltage <= 12500 )
849 if( aVoltage <= 16000 )
851 if( aVoltage <= 20000 )
853 if( aVoltage <= 25000 )
855 if( aVoltage <= 32000 )
857 if( aVoltage <= 40000 )
859 if( aVoltage <= 50000 )
861 if( aVoltage <= 63000 )
868 if( aVoltage <= 12.5 )
886 if( aVoltage <= 100 )
888 if( aVoltage <= 125 )
890 if( aVoltage <= 160 )
892 if( aVoltage <= 200 )
894 if( aVoltage <= 250 )
896 if( aVoltage <= 320 )
898 if( aVoltage <= 400 )
900 if( aVoltage <= 500 )
902 if( aVoltage <= 630 )
904 if( aVoltage <= 800 )
906 if( aVoltage <= 1000 )
908 if( aVoltage <= 1250 )
910 if( aVoltage <= 1600 )
912 if( aVoltage <= 2000 )
914 if( aVoltage <= 2500 )
916 if( aVoltage <= 3200 )
918 if( aVoltage <= 4000 )
920 if( aVoltage <= 5000 )
922 if( aVoltage <= 6300 )
924 if( aVoltage <= 8000 )
926 if( aVoltage <= 10000 )
928 if( aVoltage <= 12500 )
930 if( aVoltage <= 16000 )
932 if( aVoltage <= 20000 )
934 if( aVoltage <= 25000 )
936 if( aVoltage <= 32000 )
938 if( aVoltage <= 40000 )
940 if( aVoltage <= 50000 )
942 if( aVoltage <= 63000 )
949 if( aVoltage <= 12.5 )
967 if( aVoltage <= 100 )
969 if( aVoltage <= 125 )
971 if( aVoltage <= 160 )
973 if( aVoltage <= 200 )
975 if( aVoltage <= 250 )
977 if( aVoltage <= 320 )
979 if( aVoltage <= 400 )
981 if( aVoltage <= 500 )
983 if( aVoltage <= 630 )
985 if( aVoltage <= 800 )
987 if( aVoltage <= 1000 )
989 if( aVoltage <= 1250 )
991 if( aVoltage <= 1600 )
993 if( aVoltage <= 2000 )
995 if( aVoltage <= 2500 )
997 if( aVoltage <= 3200 )
999 if( aVoltage <= 4000 )
1001 if( aVoltage <= 5000 )
1003 if( aVoltage <= 6300 )
1005 if( aVoltage <= 8000 )
1007 if( aVoltage <= 10000 )
1009 if( aVoltage <= 12500 )
1011 if( aVoltage <= 16000 )
1013 if( aVoltage <= 20000 )
1015 if( aVoltage <= 25000 )
1017 if( aVoltage <= 32000 )
1019 if( aVoltage <= 40000 )
1021 if( aVoltage <= 50000 )
1023 if( aVoltage <= 63000 )
1029 if( aVoltage <= 10 )
1031 if( aVoltage <= 12.5 )
1033 if( aVoltage <= 16 )
1035 if( aVoltage <= 20 )
1037 if( aVoltage <= 25 )
1039 if( aVoltage <= 32 )
1041 if( aVoltage <= 40 )
1043 if( aVoltage <= 50 )
1045 if( aVoltage <= 63 )
1047 if( aVoltage <= 80 )
1049 if( aVoltage <= 100 )
1051 if( aVoltage <= 125 )
1053 if( aVoltage <= 160 )
1055 if( aVoltage <= 50000 )
1056 return aVoltage / 100;
1057 if( aVoltage <= 63000 )
1062 if( aVoltage <= 10 )
1064 if( aVoltage <= 12.5 )
1066 if( aVoltage <= 16 )
1068 if( aVoltage <= 20 )
1070 if( aVoltage <= 25 )
1072 if( aVoltage <= 32 )
1074 if( aVoltage <= 40 )
1076 if( aVoltage <= 50 )
1078 if( aVoltage <= 63 )
1080 if( aVoltage <= 80 )
1082 if( aVoltage <= 100 )
1084 if( aVoltage <= 125 )
1086 if( aVoltage <= 160 )
1088 if( aVoltage <= 200 )
1090 if( aVoltage <= 250 )
1092 if( aVoltage <= 320 )
1094 if( aVoltage <= 400 )
1096 if( aVoltage <= 500 )
1098 if( aVoltage <= 630 )
1100 if( aVoltage <= 800 )
1102 if( aVoltage <= 1000 )
1104 if( aVoltage <= 1250 )
1106 if( aVoltage <= 1600 )
1108 if( aVoltage <= 2000 )
1110 if( aVoltage <= 2500 )
1112 if( aVoltage <= 3200 )
1114 if( aVoltage <= 4000 )
1116 if( aVoltage <= 5000 )
1118 if( aVoltage <= 6300 )
1120 if( aVoltage <= 8000 )
1122 if( aVoltage <= 10000 )
1127 if( aVoltage <= 10 )
1129 if( aVoltage <= 12.5 )
1131 if( aVoltage <= 16 )
1133 if( aVoltage <= 20 )
1135 if( aVoltage <= 25 )
1137 if( aVoltage <= 32 )
1139 if( aVoltage <= 40 )
1141 if( aVoltage <= 50 )
1143 if( aVoltage <= 63 )
1145 if( aVoltage <= 80 )
1147 if( aVoltage <= 100 )
1149 if( aVoltage <= 125 )
1151 if( aVoltage <= 160 )
1153 if( aVoltage <= 200 )
1155 if( aVoltage <= 250 )
1157 if( aVoltage <= 320 )
1159 if( aVoltage <= 400 )
1161 if( aVoltage <= 500 )
1163 if( aVoltage <= 630 )
1165 if( aVoltage <= 800 )
1167 if( aVoltage <= 1000 )
1169 if( aVoltage <= 1250 )
1171 if( aVoltage <= 1600 )
1173 if( aVoltage <= 2000 )
1175 if( aVoltage <= 2500 )
1177 if( aVoltage <= 3200 )
1179 if( aVoltage <= 4000 )
1181 if( aVoltage <= 5000 )
1183 if( aVoltage <= 6300 )
1185 if( aVoltage <= 8000 )
1187 if( aVoltage <= 10000 )
1193 if( aVoltage <= 10 )
1195 if( aVoltage <= 12.5 )
1197 if( aVoltage <= 16 )
1199 if( aVoltage <= 20 )
1201 if( aVoltage <= 25 )
1203 if( aVoltage <= 32 )
1205 if( aVoltage <= 40 )
1207 if( aVoltage <= 50 )
1209 if( aVoltage <= 63 )
1211 if( aVoltage <= 80 )
1213 if( aVoltage <= 100 )
1215 if( aVoltage <= 125 )
1217 if( aVoltage <= 160 )
1219 if( aVoltage <= 200 )
1221 if( aVoltage <= 250 )
1223 if( aVoltage <= 320 )
1225 if( aVoltage <= 400 )
1227 if( aVoltage <= 500 )
1229 if( aVoltage <= 630 )
1231 if( aVoltage <= 800 )
1233 if( aVoltage <= 1000 )
1235 if( aVoltage <= 1250 )
1237 if( aVoltage <= 1600 )
1239 if( aVoltage <= 2000 )
1241 if( aVoltage <= 2500 )
1243 if( aVoltage <= 3200 )
1245 if( aVoltage <= 4000 )
1247 if( aVoltage <= 5000 )
1249 if( aVoltage <= 6300 )
1251 if( aVoltage <= 8000 )
1253 if( aVoltage <= 10000 )
1261 const double aAltitude )
1266 double frequency = 50;
1267 bool coatedOrPotted =
false;
1269 if( frequency > 30e3 )
1271 if( coatedOrPotted )
1284 if( ( clearance1 == -1 ) || ( clearance2 == -1 ) )
1290 double clearance = ( clearance1 > clearance2 ) ? clearance1 : clearance2;
1300 double frequency = 50;
1301 bool coatedOrPotted =
false;
1303 if( frequency > 30e3 )
1306 if( coatedOrPotted )
double GetRatedImpulseWithstandVoltage()
double ComputeCreepageDistance(const POLLUTION_DEGREE aPD, const MATERIAL_GROUP aMG)
double GetClearanceAltitudeCorrectionFactor(const double aAltitude)
POLLUTION_DEGREE m_pollutionDegree
double GetClearanceToWithstandPeaks(const double aVoltage, const FIELD aField)
double GetMinGrooveWidth()
double ComputeClearanceDistance(const POLLUTION_DEGREE aPD, const FIELD aField, const double aAltitude)
INSULATION_TYPE m_insulationType
double GetBasicCreepageDistance(const double aVoltage, const POLLUTION_DEGREE aPD, const MATERIAL_GROUP aMG)
MATERIAL_GROUP GetMaterialGroupFromCTI(const double aCTI)
double GetClearanceToWithstandTransientVoltage(const double aVoltage, const POLLUTION_DEGREE aPD, const FIELD aField)
double m_transientVoltage
MATERIAL_GROUP m_materialGroup
OV_CATEGORY m_overvoltageCat
double GetClearanceForRMSVoltage(const double aVRMS, const FIELD aField=FIELD::INHOMOGENEOUS)