calculateIb static method
Calculate Design Current (Ib) - Current required by the load
Implementation
static double calculateIb({
required double powerWatts,
required double voltage,
required double cosPhi,
required bool isThreePhase,
}) {
final phi = cosPhi.clamp(0.1, 1.0);
if (isThreePhase) {
return powerWatts / (sqrt(3) * voltage * phi);
} else {
return powerWatts / (voltage * phi);
}
}