snl.ccss.jpowerflow.ac
Class FullNewton
java.lang.Object
snl.ccss.jpowerflow.AbstractPFSolver
snl.ccss.jpowerflow.ac.FullNewton
- All Implemented Interfaces:
- java.lang.Runnable, PFSolver
- Direct Known Subclasses:
- DecoupledNewton
public class FullNewton
- extends AbstractPFSolver
This class holds all the methods necessary for performing a
steady-state AC power flow analysis on a power system.
This class uses the Full Newton-Raphson iterative technique
for solving the unknowns in the power system.
- Author:
- Bryan T. Richardson - Sandia National Laboratories
Constructor Summary |
FullNewton()
Default constructor for FullNewton class. |
FullNewton(int maxIterations,
double adjustError,
double convergeError,
boolean enforceGenMvarLimits)
Argument-accepting constructor for FullNewton class. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FullNewton
public FullNewton()
- Default constructor for FullNewton class.
Required parameters will need to be set using the get/set
methods if this constructor is used.
FullNewton
public FullNewton(int maxIterations,
double adjustError,
double convergeError,
boolean enforceGenMvarLimits)
- Argument-accepting constructor for FullNewton class.
- Parameters:
maxIterations
- Maximum number of iterations to performadjustError
- Value of power mismatch that determines when generator reactive power limits should be examinedconvergeError
- Value of power mismatch that determines the system has convergedenforceGenMvarLimits
- Set to true if reactive power limits of generators should be enforced
solve
public boolean solve(PFPowerSystem powerSystem)
- Main method for performing an AC power flow analysis.
This method builds the yBus for the system and performs
the Full Newton-Raphson iterative technique to solve for the
unknown values.
- Parameters:
powerSystem
- PFPowerSystem that implements the required getBusList and getEnergizedBranchList methods
- Returns:
- true if simulation converged within maximum number of iterations
setAdjustError
public void setAdjustError(double adjustError)
setConvergeError
public void setConvergeError(double convergeError)
setMaxIterations
public void setMaxIterations(int maxIterations)
getIterations
public int getIterations()
setEnforceGenMvarLimits
public void setEnforceGenMvarLimits(boolean enforceGenMvarLimits)