Class ClosedBranchSide2CurrentMagnitudeEquationTerm
- java.lang.Object
-
- com.powsybl.openloadflow.equations.AbstractEquationTerm
-
- com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
-
- com.powsybl.openloadflow.ac.equations.AbstractClosedBranchAcFlowEquationTerm
-
- com.powsybl.openloadflow.ac.equations.ClosedBranchSide2CurrentMagnitudeEquationTerm
-
- All Implemented Interfaces:
EquationTerm
,Evaluable
public class ClosedBranchSide2CurrentMagnitudeEquationTerm extends AbstractClosedBranchAcFlowEquationTerm
- Author:
- Gael Macherel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationTerm
EquationTerm.MultiplyByScalarEquationTerm, EquationTerm.VariableEquationTerm
-
-
Constructor Summary
Constructors Constructor Description ClosedBranchSide2CurrentMagnitudeEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean deriveR1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calculateSensi(double dph1, double dph2, double dv1, double dv2, double a1, double r1)
double
der(Variable variable)
Get partial derivative.double
eval()
Evaluate equation term.int
getElementNum()
ElementType
getElementType()
protected String
getName()
boolean
hasRhs()
CheckEquationTerm.rhs()
can return a value different from zero.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.ac.equations.AbstractClosedBranchAcFlowEquationTerm
calculateSensi, getA1, getR1, getVariables
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
write
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getEquation, isActive, setActive, setEquation
-
-
-
-
Field Detail
-
branch
protected final LfBranch branch
-
b1
protected final double b1
-
b2
protected final double b2
-
g1
protected final double g1
-
g2
protected final double g2
-
y
protected final double y
-
ksi
protected final double ksi
-
sinKsi
protected final double sinKsi
-
cosKsi
protected final double cosKsi
-
-
Constructor Detail
-
ClosedBranchSide2CurrentMagnitudeEquationTerm
public ClosedBranchSide2CurrentMagnitudeEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean deriveR1)
-
-
Method Detail
-
calculateSensi
protected double calculateSensi(double dph1, double dph2, double dv1, double dv2, double a1, double r1)
- Specified by:
calculateSensi
in classAbstractClosedBranchAcFlowEquationTerm
-
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
-
getName
protected String getName()
- Specified by:
getName
in classAbstractNamedEquationTerm
-
getElementType
public ElementType getElementType()
-
getElementNum
public int getElementNum()
-
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
-
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
-
-