public class DclfSolver extends BMatrixSolver implements IDclfSolver
| Modifier and Type | Field and Description |
|---|---|
static JacobianMatrixType |
JMatrixType |
| Constructor and Description |
|---|
DclfSolver(AclfNetwork net) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
calculateDclf()
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
|
void |
distructor()
distructor to release resource if necessary
|
double |
getBranchFlow(AclfBranch branch)
calculate branch power flow
|
double |
getBranchFlow(AclfBranch branch,
Unit.UnitType unit)
calculate branch power flow in the unit specified
|
double |
getBusAngle(int busSortNumber)
get bus voltage angle
|
double |
getBusAngle(java.lang.String busId)
get bus voltage angle
|
double[] |
getDclfResult()
get the Dclf result
|
double[] |
getSenPAngle(java.lang.String busId)
Retrieve P-Ang sen from the cache table or calculate sen if it is not found
|
double[] |
getSenQVoltage(java.lang.String busId)
Retrieve Q-Voltage sen from the cache table or calculate sen if it is not found
|
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
|
void |
setCacheSensitivity(boolean b)
set the cache sensitivity flag
|
getB11Matrix, getB1Matrix, setB11MatrixDirty, setB1MatrixDirtyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetB11Matrix, getB1Matrixpublic static JacobianMatrixType JMatrixType
public DclfSolver(AclfNetwork net)
public double[] getDclfResult()
IDclfSolvergetDclfResult in interface IDclfSolverpublic void setCacheSensitivity(boolean b)
IDclfSolversetCacheSensitivity in interface IDclfSolverb - flagpublic void distructor()
BMatrixSolverdistructor in interface IDclfSolverdistructor in class BMatrixSolverpublic void setBMatrixDirty()
BMatrixSolversetBMatrixDirty in interface IDclfSolversetBMatrixDirty in class BMatrixSolverpublic boolean calculateDclf()
throws InterpssException,
IpssNumericException,
ReferenceBusException
calculateDclf in interface IDclfSolverInterpssExceptionIpssNumericExceptionReferenceBusExceptionpublic void prepareBMatrix(SenAnalysisType type) throws InterpssException, IpssNumericException
prepareBMatrix in interface IDclfSolvertype - InterpssExceptionIpssNumericExceptionpublic double getBranchFlow(AclfBranch branch)
getBranchFlow in interface IDclfSolverbranch - public double getBranchFlow(AclfBranch branch, Unit.UnitType unit)
getBranchFlow 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[] getSenPAngle(java.lang.String busId)
throws InterpssException,
IpssNumericException,
ReferenceBusException
getSenPAngle in interface IDclfSolverbusId - InterpssExceptionIpssNumericExceptionReferenceBusExceptionpublic double[] getSenQVoltage(java.lang.String busId)
throws InterpssException,
IpssNumericException,
ReferenceBusException
getSenQVoltage in interface IDclfSolverbusId - InterpssExceptionIpssNumericExceptionReferenceBusExceptionpublic 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)