Class ClosedBranchSide2DcFlowEquationTerm
- java.lang.Object
-
- com.powsybl.openloadflow.equations.AbstractEquationTerm
-
- com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
-
- com.powsybl.openloadflow.dc.equations.AbstractClosedBranchDcFlowEquationTerm
-
- com.powsybl.openloadflow.dc.equations.ClosedBranchSide2DcFlowEquationTerm
-
- All Implemented Interfaces:
EquationTerm
,Evaluable
public final class ClosedBranchSide2DcFlowEquationTerm extends AbstractClosedBranchDcFlowEquationTerm
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationTerm
EquationTerm.MultiplyByScalarEquationTerm, EquationTerm.VariableEquationTerm
-
-
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 ClosedBranchSide2DcFlowEquationTerm
create(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean useTransformerRatio)
double
der(Variable 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.void
update(double[] x)
Update equation term usingx
variable values.-
Methods inherited from class com.powsybl.openloadflow.dc.equations.AbstractClosedBranchDcFlowEquationTerm
calculateSensi, getA1, getElementNum, getElementType, getVariables, hasRhs
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
write
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getEquation, isActive, setActive, setEquation
-
-
-
-
Method Detail
-
create
public static ClosedBranchSide2DcFlowEquationTerm create(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean useTransformerRatio)
-
calculateSensi
protected double calculateSensi(double ph1, double ph2, double a1)
- Specified by:
calculateSensi
in classAbstractClosedBranchDcFlowEquationTerm
-
update
public void update(double[] x)
Description copied from interface:EquationTerm
Update equation term usingx
variable values.- Parameters:
x
- variables values vector
-
eval
public double eval()
Description copied from interface:EquationTerm
Evaluate equation term.- Returns:
- value of the equation term
-
der
public double der(Variable 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.- 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
-
-