Class AbstractClosedBranchDcFlowEquationTerm
- java.lang.Object
-
- com.powsybl.openloadflow.equations.AbstractEquationTerm
-
- com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
-
- com.powsybl.openloadflow.dc.equations.AbstractClosedBranchDcFlowEquationTerm
-
- All Implemented Interfaces:
EquationTerm
,Evaluable
- Direct Known Subclasses:
ClosedBranchSide1DcFlowEquationTerm
,ClosedBranchSide2DcFlowEquationTerm
public abstract class AbstractClosedBranchDcFlowEquationTerm extends AbstractNamedEquationTerm
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationTerm
EquationTerm.MultiplyByScalarEquationTerm, EquationTerm.VariableEquationTerm
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractClosedBranchDcFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean useTransformerRatio)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract double
calculateSensi(double ph1, double ph2, double a1)
double
calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
protected double
getA1(double[] stateVector)
int
getElementNum()
ElementType
getElementType()
List<Variable>
getVariables()
Get the list of variable this equation term depends on.boolean
hasRhs()
CheckEquationTerm.rhs()
can return a value different from zero.-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
getName, write
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getEquation, isActive, setActive, setEquation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.openloadflow.equations.EquationTerm
der, eval, rhs, update
-
-
-
-
Constructor Detail
-
AbstractClosedBranchDcFlowEquationTerm
protected AbstractClosedBranchDcFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean useTransformerRatio)
-
-
Method Detail
-
calculateSensi
public double calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
- Specified by:
calculateSensi
in interfaceEquationTerm
- Overrides:
calculateSensi
in classAbstractEquationTerm
-
calculateSensi
protected abstract double calculateSensi(double ph1, double ph2, double a1)
-
getA1
protected double getA1(double[] stateVector)
-
getElementType
public ElementType getElementType()
-
getElementNum
public int getElementNum()
-
getVariables
public List<Variable> getVariables()
Description copied from interface:EquationTerm
Get the list of variable this equation term depends on.- Returns:
- the list of variable this equation term depends on.
-
hasRhs
public boolean hasRhs()
Description copied from interface:EquationTerm
CheckEquationTerm.rhs()
can return a value different from zero.- Returns:
- true if
EquationTerm.rhs()
can return a value different from zero, false otherwise
-
-