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 |
aclfNetMaxItrDclfLoss| 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, setB1MatrixDirtyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistructor, getB11Matrix, getB1Matrix, getSenPAngle, getSenQVoltagepublic 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()
IDclfSolvergetDclfResult in interface IDclfSolverpublic void setBMatrixDirty()
BMatrixSolversetBMatrixDirty in interface IDclfSolversetBMatrixDirty in class BMatrixSolverpublic boolean calculateDclf(DclfMethod method) throws InterpssException, IpssNumericException, ReferenceBusException
calculateDclf in interface IDclfSolverInterpssExceptionIpssNumericExceptionReferenceBusExceptionpublic void prepareBMatrix(SenAnalysisType type) throws InterpssException, IpssNumericException
prepareBMatrix in interface IDclfSolvertype - InterpssExceptionIpssNumericExceptionpublic double calBranchFlow(AclfBranch branch)
calBranchFlow in interface IDclfSolverbranch - public double calBranchFlow(AclfBranch branch, Unit.UnitType unit)
calBranchFlow in interface IDclfSolverbranch - unit - public double getBusAngle(int busSortNumber)
getBusAngle in interface IDclfSolverbusSortNumber - public double getBusAngle(java.lang.String busId)
getBusAngle in interface IDclfSolverbusId - public void setBusAngle(java.lang.String busId,
double ang)
setBusAngle in interface IDclfSolverbusId - ang - public double[] calSensitivity(SenAnalysisType type, java.lang.String injectBusId) throws InterpssException, IpssNumericException, ReferenceBusException
IDclfSolvercalSensitivity in interface IDclfSolvertype - Sen Analysis TypeinjectBusId - injection bus idInterpssExceptionIpssNumericExceptionReferenceBusExceptionpublic double[] calSensitivityImpl(SenAnalysisType type, java.lang.String injectBusId) throws InterpssException, IpssNumericException, ReferenceBusException
IDclfSolvercalSensitivityImpl in interface IDclfSolvertype - Sen Analysis TypeinjectBusId - injection bus idInterpssExceptionIpssNumericExceptionReferenceBusExceptionpublic void initDclfResultForDebug(double[] dclfResult)