Class: ElectriCalc

ElectriCalc()

A library for calculations related to electrical wiring and circuits

Constructor

new ElectriCalc()

Source:

Methods

CalculateSinglePhasePower(voltage, current) → {Promise}

Calcualte single phase power based on measured voltage and current
Parameters:
Name Type Description
voltage number Measured voltage in Volts
current number Measured current in Amps
Source:
Returns:
Apparent Power in VA Promise will resolve to type number.
Type
Promise

CalculateThreePhasePower(voltage, lineTo, current) → {Promise}

Calcualte three phase power based on measured voltage and current
Parameters:
Name Type Description
voltage number Measured voltage in Volts
lineTo string Which voltage was measured. Must be "line" or "netural"
current number Measured current in Amps
Source:
Returns:
Apparent Power in VA Promise will resolve to type number.
Type
Promise

ConvertPhaseAngleToPowerFactor(phaseAngle) → {Promise}

Convert from Phase Angle to Power Factor
Parameters:
Name Type Description
phaseAngle number Phase Angle in degrees
Source:
Returns:
Power Factor Promise will resolve to type number.
Type
Promise

ConvertPowerFactorToPhaseAngle(powerFactor) → {Promise}

Convert from Power Factor to Phase Angle
Parameters:
Name Type Description
powerFactor number Power Factor
Source:
Returns:
Phase Angle in degrees Promise will resolve to type number.
Type
Promise