snl.ccss.jpowerflow.dc
Class DCSolver

java.lang.Object
  extended by snl.ccss.jpowerflow.AbstractPFSolver
      extended by snl.ccss.jpowerflow.dc.DCSolver
All Implemented Interfaces:
java.lang.Runnable, PFSolver

public class DCSolver
extends AbstractPFSolver

This class holds all the methods necessary for computing DC power flow on a power system.

Author:
Bryan T. Richardson - Sandia National Laboratories

Field Summary
 
Fields inherited from class snl.ccss.jpowerflow.AbstractPFSolver
DEBUG
 
Constructor Summary
DCSolver()
          Default constructor for DCSolver class.
 
Method Summary
 java.util.HashMap getMwFlows()
           
 double getSlackOutput()
           
 boolean solve(PFPowerSystem powerSystem)
          Main method for performing a DC 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

DCSolver

public DCSolver()
Default constructor for DCSolver class.

Method Detail

solve

public boolean solve(PFPowerSystem powerSystem)
Main method for performing a DC power flow analysis. This method builds the bBus matrix for the system and calculates real power flows on all branches in the system.

Parameters:
powerSystem - PFPowerSystem that implements the required getBusList and getEnergizedBranchList methods
Returns:
true if solver was successful (in this case, always true)

getMwFlows

public java.util.HashMap getMwFlows()

getSlackOutput

public double getSlackOutput()