Class OpenBranchSide1ActiveFlowEquationTerm
- 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.OpenBranchSide1ActiveFlowEquationTerm
-
- All Implemented Interfaces:
EquationTerm<AcVariableType,AcEquationType>
,Evaluable
public class OpenBranchSide1ActiveFlowEquationTerm extends AbstractElementEquationTerm<LfBranch,AcVariableType,AcEquationType>
- Author:
- Geoffroy Jamgotchian
-
-
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
Fields Modifier and Type Field Description protected double
b1
protected double
b2
protected double
g1
protected double
g2
protected double
ksi
protected List<Variable<AcVariableType>>
variables
protected double
y
-
Fields inherited from class com.powsybl.openloadflow.equations.AbstractElementEquationTerm
element
-
Fields inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
self, sv
-
-
Constructor Summary
Constructors Constructor Description OpenBranchSide1ActiveFlowEquationTerm(LfBranch branch, LfBus bus2, VariableSet<AcVariableType> variableSet, boolean deriveA1, boolean deriveR1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
der(Variable<AcVariableType> variable)
Get partial derivative.double
eval()
Evaluate equation term.protected String
getName()
List<Variable<AcVariableType>>
getVariables()
Get the list of variable this equation term depends on.protected static double
shunt(double y, double cosKsi, double sinKsi, double g1, double b1)
-
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
minus, multiply, multiply
-
-
-
-
Field Detail
-
variables
protected final List<Variable<AcVariableType>> 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
-
-
Constructor Detail
-
OpenBranchSide1ActiveFlowEquationTerm
public OpenBranchSide1ActiveFlowEquationTerm(LfBranch branch, LfBus bus2, VariableSet<AcVariableType> variableSet, boolean deriveA1, boolean deriveR1)
-
-
Method Detail
-
eval
public double eval()
Description copied from interface:EquationTerm
Evaluate equation term.- Returns:
- value of the equation term
-
der
public double der(Variable<AcVariableType> 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<AcVariableType,AcEquationType>
-
shunt
protected static double shunt(double y, double cosKsi, double sinKsi, double g1, double b1)
-
getVariables
public List<Variable<AcVariableType>> 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.
-
-