Calculates vars (total volt-amperes of reactive power) from imaginary and real components of a voltage and current phasor.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static Power CalculateVars( IPhasorValue voltage, IPhasorValue current )
Public Shared Function CalculateVars ( _ voltage As IPhasorValue, _ current As IPhasorValue _ ) As Power
public: static Power CalculateVars( IPhasorValue^ voltage, IPhasorValue^ current )
Parameters
- voltage (IPhasorValue)
- Voltage phasor.
- current (IPhasorValue)
- Current phasor.
Return Value
Calculated vars (total volt-amperes of reactive power) from imaginary and real components of specified voltage and current phasors.
Remarks
Although the Power units class technically represents watts (i.e., real power) and vars (i.e., imaginary power)
are properly expressed in volt-amperes reactive (VAr), the calculated result is still a representation of power and therefore
the Power units class is used to express the return value leaving the consumer to properly apply the needed
engineering units for display purposes.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | voltage and current must not be null. |