Click or drag to resize

Phasor Structure

Represents a phasor as a complex number value and a type (i.e., a voltage or a current).
Inheritance Hierarchy
SystemObject
  SystemValueType
    GSF.Units.EEPhasor

Namespace: GSF.Units.EE
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public struct Phasor : IEquatable<Phasor>
View Source

The Phasor type exposes the following members.

Constructors
 NameDescription
Public methodPhasor(PhasorType, ComplexNumber) Creates a Phasor of the specified type from the given ComplexNumber.
Public methodPhasor(PhasorType, Angle, Double) Creates a Phasor of the specified type from the given polar values.
Public methodPhasor(PhasorType, Double, Double) Creates a Phasor of the specified type from the given rectangular values.
Top
Properties
 NameDescription
Public propertyConjugate Gets the complex conjugate of this Phasor.
Top
Methods
 NameDescription
Public methodStatic memberCalculateActivePower Calculates active (or real) power P, i.e., total watts, from imaginary and real components of a voltage and current phasor.
Public methodStatic memberCalculateApparentPower Calculates apparent power |S|, i.e., magnitude of complex power, from a voltage and current phasor.
Public methodStatic memberCalculateComplexPower Calculates complex power S, i.e., total volt-amperes power vector, from a voltage and current phasor.
Public methodStatic memberCalculateReactivePower Calculates reactive power Q, i.e., total volt-amperes of reactive power, from imaginary and real components of a voltage and current phasor.
Public methodStatic memberCalculateRelativePhase Calculates phase φ of voltage relative to current, i.e., angle difference between current and voltage phasor.
Public methodEquals(Object) Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Phasor) Returns a value indicating whether this instance is equal to a specified Phasor value.
Public methodGetHashCode Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberPow Returns specified Phasor raised to the specified power.
Public methodToString Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Phasor, Phasor) Returns computed sum of values.
Public operatorStatic memberDivision(Phasor, Phasor) Returns computed division of values.
Public operatorStatic memberEquality(Phasor, Phasor) Compares the two values for equality.
Public operatorStatic memberExponent(Phasor, Double) Returns result of first value raised to power of second value.
Public operatorStatic member(Phasor to ComplexNumber) Implicitly converts a Phasor to a ComplexNumber.
Public operatorStatic member(Phasor to Complex) Implicitly converts a Phasor to a .NET Complex value.
Public operatorStatic memberInequality(Phasor, Phasor) Compares the two values for inequality.
Public operatorStatic memberMultiply(Phasor, Phasor) Returns computed product of values.
Public operatorStatic memberSubtraction(Phasor, Phasor) Returns computed difference of values.
Public operatorStatic memberUnaryNegation(Phasor) Returns the negated value.
Top
Fields
 NameDescription
Public fieldType Phasor type.
Public fieldValue Phasor value.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also