snl.ccss.jpowerflow.ac
Class FullNewton

java.lang.Object
  extended by snl.ccss.jpowerflow.AbstractPFSolver
      extended by 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

Field Summary
 
Fields inherited from class snl.ccss.jpowerflow.AbstractPFSolver
DEBUG
 
Constructor Summary
FullNewton()
          Default constructor for FullNewton class.
FullNewton(int maxIterations, double adjustError, double convergeError, boolean enforceGenMvarLimits)
          Argument-accepting constructor for FullNewton class.
 
Method Summary
 int getIterations()
           
 void setAdjustError(double adjustError)
           
 void setConvergeError(double convergeError)
           
 void setEnforceGenMvarLimits(boolean enforceGenMvarLimits)
           
 void setMaxIterations(int maxIterations)
           
 boolean solve(PFPowerSystem powerSystem)
          Main method for performing an AC power flow analysis.
 
Methods inherited from class snl.ccss.jpowerflow.AbstractPFSolver
run, setPowerSystem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 perform
adjustError - Value of power mismatch that determines when generator reactive power limits should be examined
convergeError - Value of power mismatch that determines the system has converged
enforceGenMvarLimits - Set to true if reactive power limits of generators should be enforced
Method Detail

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)