public abstract class BaseDclfSolver extends BMatrixSolver implements IDclfSolver
IDclfSolver.CacheType
Modifier and Type | Field and Description |
---|---|
protected DclfAlgorithm |
dclfAlgo |
protected double[] |
dclfResult |
static JacobianMatrixType |
JMatrixType |
protected static java.lang.String |
Token_PAngle |
protected static java.lang.String |
Token_QVoltage |
aclfNet
MaxItrDclfLoss
Constructor and Description |
---|
BaseDclfSolver(DclfAlgorithm algo) |
Modifier and Type | Method and Description |
---|---|
double |
calBranchFlow(AclfBranch branch)
calculate branch power flow
|
double |
calBranchFlow(AclfBranch branch,
Unit.UnitType unit)
calculate branch power flow in the unit specified
|
boolean |
calculateDclf(DclfMethod method)
calculate DC Loadflow and store the bus results in the dcResult[] and
branch results in branch.weight
|
double[] |
calSensitivity(SenAnalysisType type,
java.lang.String injectBusId)
calculate the bus sensitivity.
|
double[] |
calSensitivityImpl(SenAnalysisType type,
java.lang.String injectBusId)
calculate the bus sensitivity
|
double |
getBusAngle(int busSortNumber)
get bus voltage angle
|
double |
getBusAngle(java.lang.String busId)
get bus voltage angle
|
double[] |
getDclfResult()
get the Dclf result
|
void |
initDclfResultForDebug(double[] dclfResult) |
void |
prepareBMatrix(SenAnalysisType type)
if the B1/11 matrix is dirty, form the B-matrix and LU the matrix.
|
void |
setBMatrixDirty()
set B1 and B11 matrix dirty
|
void |
setBusAngle(java.lang.String busId,
double ang)
for debug and investigation purpose
|
distructor, getB11Matrix, getB1Matrix, isB11MatrixDirty, isB1MatrixDirty, setB11MatrixDirty, setB1MatrixDirty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distructor, getB11Matrix, getB1Matrix, getSenPAngle, getSenQVoltage
public static JacobianMatrixType JMatrixType
protected static java.lang.String Token_PAngle
protected static java.lang.String Token_QVoltage
protected DclfAlgorithm dclfAlgo
protected double[] dclfResult
public BaseDclfSolver(DclfAlgorithm algo)
public double[] getDclfResult()
IDclfSolver
getDclfResult
in interface IDclfSolver
public void setBMatrixDirty()
BMatrixSolver
setBMatrixDirty
in interface IDclfSolver
setBMatrixDirty
in class BMatrixSolver
public boolean calculateDclf(DclfMethod method) throws InterpssException, IpssNumericException, ReferenceBusException
calculateDclf
in interface IDclfSolver
InterpssException
IpssNumericException
ReferenceBusException
public void prepareBMatrix(SenAnalysisType type) throws InterpssException, IpssNumericException
prepareBMatrix
in interface IDclfSolver
type
- InterpssException
IpssNumericException
public double calBranchFlow(AclfBranch branch)
calBranchFlow
in interface IDclfSolver
branch
- public double calBranchFlow(AclfBranch branch, Unit.UnitType unit)
calBranchFlow
in interface IDclfSolver
branch
- unit
- public double getBusAngle(int busSortNumber)
getBusAngle
in interface IDclfSolver
busSortNumber
- public double getBusAngle(java.lang.String busId)
getBusAngle
in interface IDclfSolver
busId
- public void setBusAngle(java.lang.String busId, double ang)
setBusAngle
in interface IDclfSolver
busId
- ang
- public double[] calSensitivity(SenAnalysisType type, java.lang.String injectBusId) throws InterpssException, IpssNumericException, ReferenceBusException
IDclfSolver
calSensitivity
in interface IDclfSolver
type
- Sen Analysis TypeinjectBusId
- injection bus idInterpssException
IpssNumericException
ReferenceBusException
public double[] calSensitivityImpl(SenAnalysisType type, java.lang.String injectBusId) throws InterpssException, IpssNumericException, ReferenceBusException
IDclfSolver
calSensitivityImpl
in interface IDclfSolver
type
- Sen Analysis TypeinjectBusId
- injection bus idInterpssException
IpssNumericException
ReferenceBusException
public void initDclfResultForDebug(double[] dclfResult)