Class ClosedBranchSide1DcFlowEquationTerm
- 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
-
- com.powsybl.openloadflow.dc.equations.ClosedBranchSide1DcFlowEquationTerm
-
- All Implemented Interfaces:
EquationTerm<DcVariableType,DcEquationType>
,Evaluable
public final class ClosedBranchSide1DcFlowEquationTerm extends AbstractClosedBranchDcFlowEquationTerm
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
-
Fields inherited from class com.powsybl.openloadflow.dc.equations.AbstractClosedBranchDcFlowEquationTerm
a1Var, ph1Var, ph2Var, power, variables
-
Fields inherited from class com.powsybl.openloadflow.equations.AbstractBranchEquationTerm
branch
-
Fields inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
self, stateVector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calculateSensi(double ph1, double ph2, double a1)
static ClosedBranchSide1DcFlowEquationTerm
create(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet<DcVariableType> variableSet, boolean deriveA1, boolean useTransformerRatio)
double
der(Variable<DcVariableType> variable)
Get partial derivative.double
eval()
Evaluate equation term.protected String
getName()
double
rhs()
Get part of the partial derivative that has to be moved to right hand side.-
Methods inherited from class com.powsybl.openloadflow.dc.equations.AbstractClosedBranchDcFlowEquationTerm
a1, calculateSensi, getVariables, hasRhs, ph1, ph2
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractBranchEquationTerm
getElementNum, getElementType
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
write
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getEquation, isActive, setActive, setEquation, setSelf, setStateVector
-
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
minus, multiply, multiply
-
-
-
-
Method Detail
-
create
public static ClosedBranchSide1DcFlowEquationTerm create(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet<DcVariableType> variableSet, boolean deriveA1, boolean useTransformerRatio)
-
calculateSensi
protected double calculateSensi(double ph1, double ph2, double a1)
- Specified by:
calculateSensi
in classAbstractClosedBranchDcFlowEquationTerm
-
eval
public double eval()
Description copied from interface:EquationTerm
Evaluate equation term.- Returns:
- value of the equation term
-
der
public double der(Variable<DcVariableType> variable)
Description copied from interface:EquationTerm
Get partial derivative.- Parameters:
variable
- the variable the partial derivative is with respect to- Returns:
- value of the partial derivative
-
rhs
public double rhs()
Description copied from interface:EquationTerm
Get part of the partial derivative that has to be moved to right hand side.- Specified by:
rhs
in interfaceEquationTerm<DcVariableType,DcEquationType>
- Overrides:
rhs
in classAbstractEquationTerm<DcVariableType,DcEquationType>
- Returns:
- value of part of the partial derivative that has to be moved to right hand side
-
getName
protected String getName()
- Specified by:
getName
in classAbstractNamedEquationTerm<DcVariableType,DcEquationType>
-
-