getMaxCurrent method
- required ConductorMaterial material,
- required ConductorInsulation insulation,
- required InstallationMethod method,
- required double section,
- bool threePhase = true,
Returns the maximum admissible current (Ampacity / Iz) in Amperes Returns 0.0 if not found
Implementation
Future<double> getMaxCurrent({
required ConductorMaterial material,
required ConductorInsulation insulation,
required InstallationMethod method,
required double section,
bool threePhase =
true, // If false, assume single phase (2 loaded conductors) -> usually higher current allowed
}) async {
if (method != InstallationMethod.b2) {}
if (material == ConductorMaterial.copper &&
insulation == ConductorInsulation.pvc) {
return copperPvc3PhMethodB2[section] ?? 0.0;
}
if (material == ConductorMaterial.aluminum &&
insulation == ConductorInsulation.xlpe) {
return aluXlpe3PhMethodB2[section] ?? 0.0;
}
// Default Fallbacks (Approximations)
return 0.0;
}