getConductivity method

double getConductivity(
  1. ConductorInsulation insulation
)

Implementation

double getConductivity(ConductorInsulation insulation) {
  if (this == ConductorMaterial.copper) {
    if (insulation == ConductorInsulation.pvc) return 48.0;
    return 44.0; // XLPE/EPR
  } else {
    // Aluminum
    if (insulation == ConductorInsulation.pvc) return 30.0;
    return 28.0; // XLPE/EPR
  }
}