Class AbstractClosedBranchDcFlowEquationTerm
- java.lang.Object
-
- com.powsybl.openloadflow.equations.AbstractEquationTerm<V,E>
-
- com.powsybl.openloadflow.equations.AbstractNamedEquationTerm<V,E>
-
- com.powsybl.openloadflow.equations.AbstractBranchEquationTerm<DcVariableType,DcEquationType>
-
- com.powsybl.openloadflow.dc.equations.AbstractClosedBranchDcFlowEquationTerm
-
- All Implemented Interfaces:
EquationTerm<DcVariableType,DcEquationType>
,Evaluable
- Direct Known Subclasses:
ClosedBranchSide1DcFlowEquationTerm
,ClosedBranchSide2DcFlowEquationTerm
public abstract class AbstractClosedBranchDcFlowEquationTerm extends AbstractBranchEquationTerm<DcVariableType,DcEquationType>
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected Variable<DcVariableType>
a1Var
protected Variable<DcVariableType>
ph1Var
protected Variable<DcVariableType>
ph2Var
protected double
power
protected List<Variable<DcVariableType>>
variables
-
Fields inherited from class com.powsybl.openloadflow.equations.AbstractBranchEquationTerm
branch
-
Fields inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
self, stateVector
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractClosedBranchDcFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet<DcVariableType> variableSet, boolean deriveA1, boolean useTransformerRatio)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected double
a1()
protected abstract double
calculateSensi(double ph1, double ph2, double a1)
double
calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
List<Variable<DcVariableType>>
getVariables()
Get the list of variable this equation term depends on.boolean
hasRhs()
CheckEquationTerm.rhs()
can return a value different from zero.protected double
ph1()
protected double
ph2()
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractBranchEquationTerm
getElementNum, getElementType
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
getName, write
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getEquation, isActive, rhs, setActive, setEquation, setSelf, setStateVector
-
-
-
-
Field Detail
-
ph1Var
protected final Variable<DcVariableType> ph1Var
-
ph2Var
protected final Variable<DcVariableType> ph2Var
-
a1Var
protected final Variable<DcVariableType> a1Var
-
variables
protected final List<Variable<DcVariableType>> variables
-
power
protected final double power
-
-
Constructor Detail
-
AbstractClosedBranchDcFlowEquationTerm
protected AbstractClosedBranchDcFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet<DcVariableType> variableSet, boolean deriveA1, boolean useTransformerRatio)
-
-
Method Detail
-
calculateSensi
public double calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
- Specified by:
calculateSensi
in interfaceEquationTerm<DcVariableType,DcEquationType>
- Overrides:
calculateSensi
in classAbstractEquationTerm<DcVariableType,DcEquationType>
-
ph1
protected double ph1()
-
ph2
protected double ph2()
-
calculateSensi
protected abstract double calculateSensi(double ph1, double ph2, double a1)
-
a1
protected double a1()
-
getVariables
public List<Variable<DcVariableType>> 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.- Specified by:
hasRhs
in interfaceEquationTerm<DcVariableType,DcEquationType>
- Overrides:
hasRhs
in classAbstractEquationTerm<DcVariableType,DcEquationType>
- Returns:
- true if
EquationTerm.rhs()
can return a value different from zero, false otherwise
-
-