public class PAMath
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static float |
D2R
Constant to convert degrees and radians
|
static float |
PI |
static float |
THREEOVERPI
3 over PI
|
static float |
THREESQRT2OVERPI
3 sqrt(2) over PI
|
Constructor and Description |
---|
PAMath() |
Modifier and Type | Method and Description |
---|---|
static float |
calcMVA(float mw,
float mvar) |
static float |
deg2rad(float deg)
convert degrees to radians
|
static float[] |
deg2rad(float[] deg) |
static PComplex |
getComplexV(Bus bus) |
static PComplexList |
getComplexV(BusList buses)
get bus complex voltage.
|
static float[] |
mva2pu(float[] mva,
float mvabase) |
static float |
mva2pu(float mva,
float mvabase)
convert MVA to per-unit
|
static float[] |
pu2mva(float[] pu,
float mvabase) |
static float |
pu2mva(float pu,
float mvabase)
convert per-unit to MVA
|
static float |
rad2deg(float rad)
convert radians to degrees
|
static float[] |
rad2deg(float[] rad) |
static Complex |
rebaseZ100(Complex zval,
float mvabase)
convert p.u.
|
static float |
rebaseZ100(float zval,
float mvabase)
convert p.u.
|
static float |
vmpu(Bus bus) |
static float[] |
vmpu(BusList buses) |
public static final float PI
public static final float THREEOVERPI
public static final float THREESQRT2OVERPI
public static final float D2R
public static float deg2rad(float deg)
public static float[] deg2rad(float[] deg)
public static float rad2deg(float rad)
public static float[] rad2deg(float[] rad)
public static float mva2pu(float mva, float mvabase)
public static float[] mva2pu(float[] mva, float mvabase)
public static float pu2mva(float pu, float mvabase)
public static float[] pu2mva(float[] pu, float mvabase)
public static float rebaseZ100(float zval, float mvabase)
public static Complex rebaseZ100(Complex zval, float mvabase)
public static float calcMVA(float mw, float mvar)
public static float[] vmpu(BusList buses) throws PAModelException
PAModelException
public static float vmpu(Bus bus) throws PAModelException
PAModelException
public static PComplex getComplexV(Bus bus) throws PAModelException
PAModelException
public static PComplexList getComplexV(BusList buses) throws PAModelException
buses
- List of buses to get voltage fromPAModelException