public class FDPowerFlow
extends java.lang.Object
Constructor and Description |
---|
FDPowerFlow(PAModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addMismatchReporter(MismatchReporter r) |
BusTypeUtil |
getBusTypes()
Deprecated.
|
float |
getConvergenceTolerance()
Get the convergence tolerance for both active and reactive mismatches.
|
int |
getMaxInterations()
Get maximum iterations.
|
float |
getSlackActivationTolerance()
Get the slack activation tolerance.
|
float |
getUnitActiveLimitTolerance()
Get the unit active limit tolerance.
|
static void |
main(java.lang.String... args) |
ConvergenceList |
runPF()
Run the power flow
|
void |
setCovergenceTolerance(float tol)
Set the convergence tolerance for both active and reactive mismatches.
|
void |
setMaxIterations(int i)
Set maximum iterations (both active and reactive).
|
void |
setSlackActivationTolerance(float tol)
Set the slack activation tolerance.
|
void |
setUnitActiveLimitTolerance(float tol)
Set the unit active limit tolerance.
|
void |
updateBusResults()
update bus results to local model
|
void |
updateResults()
Update all results to the model (buses and branches)
|
public FDPowerFlow(PAModel model) throws PAModelException
PAModelException
public ConvergenceList runPF() throws PAModelException
PAModelException
public void addMismatchReporter(MismatchReporter r)
public void updateBusResults() throws PAModelException
PAModelException
public void updateResults() throws PAModelException
PAModelException
public void setMaxIterations(int i)
i
- max iteration count.public int getMaxInterations()
public void setCovergenceTolerance(float tol)
tol
- MVA value to meet or beat in order to be convergedpublic float getConvergenceTolerance()
public void setSlackActivationTolerance(float tol)
tol
- Slack activation tolerance in MWpublic float getSlackActivationTolerance()
public void setUnitActiveLimitTolerance(float tol)
tol
- percent of unit limit.public float getUnitActiveLimitTolerance()
@Deprecated public BusTypeUtil getBusTypes()
public static void main(java.lang.String... args) throws java.lang.Exception
java.lang.Exception