Class OpenBranchSide2CurrentMagnitudeEquationTerm
java.lang.Object
com.powsybl.openloadflow.equations.AbstractEquationTerm<V,E>
com.powsybl.openloadflow.equations.AbstractNamedEquationTerm<V,E>
com.powsybl.openloadflow.equations.AbstractElementEquationTerm<LfBranch,AcVariableType,AcEquationType>
com.powsybl.openloadflow.ac.equations.OpenBranchSide2CurrentMagnitudeEquationTerm
- All Implemented Interfaces:
EquationTerm<AcVariableType,
,AcEquationType> Evaluable
public class OpenBranchSide2CurrentMagnitudeEquationTerm
extends AbstractElementEquationTerm<LfBranch,AcVariableType,AcEquationType>
- Author:
- Gael Macherel <gael.macherel at artelys.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationTerm
EquationTerm.MultiplyByScalarEquationTerm<V extends Enum<V> & Quantity,
E extends Enum<E> & Quantity> -
Field Summary
Modifier and TypeFieldDescriptionprotected final double
protected final double
protected final double
protected final double
protected final double
protected final double
protected final double
protected final List<Variable<AcVariableType>>
protected final double
Fields inherited from class com.powsybl.openloadflow.equations.AbstractElementEquationTerm
element
Fields inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
self, sv
-
Constructor Summary
ConstructorDescriptionOpenBranchSide2CurrentMagnitudeEquationTerm
(LfBranch branch, LfBus bus1, VariableSet<AcVariableType> variableSet, boolean deriveR1) -
Method Summary
Modifier and TypeMethodDescriptiondouble
der
(Variable<AcVariableType> variable) Get partial derivative.static double
di1dv1
(double y, double cosKsi, double sinKsi, double g1, double b1, double g2, double b2, double v1, double ph1, double r1) double
eval()
Evaluate equation term.protected String
getName()
Get the list of variable this equation term depends on.protected static double
shunt
(double y, double cosKsi, double sinKsi, double g2, double b2) Methods inherited from class com.powsybl.openloadflow.equations.AbstractElementEquationTerm
getElementNum, getElementType
Methods inherited from class com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
write
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
calculateSensi, getChildren, getEquation, hasRhs, isActive, rhs, 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
eval, minus, multiply, multiply
-
Field Details
-
variables
-
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 -
g12
protected final double g12 -
b12
protected final double b12
-
-
Constructor Details
-
OpenBranchSide2CurrentMagnitudeEquationTerm
public OpenBranchSide2CurrentMagnitudeEquationTerm(LfBranch branch, LfBus bus1, VariableSet<AcVariableType> variableSet, boolean deriveR1)
-
-
Method Details
-
di1dv1
public static double di1dv1(double y, double cosKsi, double sinKsi, double g1, double b1, double g2, double b2, double v1, double ph1, double r1) -
eval
public double eval()Description copied from interface:EquationTerm
Evaluate equation term.- Returns:
- value of the equation term
-
der
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
- Specified by:
getName
in classAbstractNamedEquationTerm<AcVariableType,
AcEquationType>
-
shunt
protected static double shunt(double y, double cosKsi, double sinKsi, double g2, double b2) -
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.
-