Class ClosedBranchI1xFlowEquationTerm
- 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.AbstractClosedBranchAcFlowEquationTerm
-
- com.powsybl.openloadflow.ac.equations.ClosedBranchI1xFlowEquationTerm
-
- All Implemented Interfaces:
EquationTerm<AcVariableType,AcEquationType>
,Evaluable
public class ClosedBranchI1xFlowEquationTerm extends AbstractClosedBranchAcFlowEquationTerm
- Author:
- Jean-Baptiste Heyberger
-
-
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
b12
protected double
b2
protected double
g1
protected double
g12
protected double
g2
protected double
ksi
protected double
y
-
Fields inherited from class com.powsybl.openloadflow.ac.equations.AbstractClosedBranchAcFlowEquationTerm
a1Var, ph1Var, ph2Var, r1Var, v1Var, v2Var, variables
-
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 ClosedBranchI1xFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet<AcVariableType> variableSet, boolean deriveA1, boolean deriveR1, Fortescue.SequenceType sequenceType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateSensi(double dph1, double dph2, double dv1, double dv2, double da1, double dr1)
double
der(Variable<AcVariableType> variable)
Get partial derivative.double
eval()
Evaluate equation term.String
getName()
static double
i1x(double g1, double b1, double v1, double ph1, double v2, double ph2, double g12, double b12)
ignoring for now rho, we have: [I1x] [ g1+g12 -b1-b12 -g12 b12 ] [V1x] [I1y] [ b1+b12 g1+g12 -b12 -g12 ] [V1y] [I2x] = [ -g21 b21 g2+g21 -b2-b21 ] * [V2x] [I2y] [ -b21 -g21 b2+b21 g2+g21 ] [V2y]-
Methods inherited from class com.powsybl.openloadflow.ac.equations.AbstractClosedBranchAcFlowEquationTerm
a1, calculateSensi, getA1Var, getVariables, ph1, ph2, r1, theta1, theta2, v1, v2
-
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
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
-
-
-
-
Constructor Detail
-
ClosedBranchI1xFlowEquationTerm
public ClosedBranchI1xFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet<AcVariableType> variableSet, boolean deriveA1, boolean deriveR1, Fortescue.SequenceType sequenceType)
-
-
Method Detail
-
calculateSensi
public double calculateSensi(double dph1, double dph2, double dv1, double dv2, double da1, double dr1)
- Specified by:
calculateSensi
in classAbstractClosedBranchAcFlowEquationTerm
-
i1x
public static double i1x(double g1, double b1, double v1, double ph1, double v2, double ph2, double g12, double b12)
ignoring for now rho, we have: [I1x] [ g1+g12 -b1-b12 -g12 b12 ] [V1x] [I1y] [ b1+b12 g1+g12 -b12 -g12 ] [V1y] [I2x] = [ -g21 b21 g2+g21 -b2-b21 ] * [V2x] [I2y] [ -b21 -g21 b2+b21 g2+g21 ] [V2y]
-
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
public String getName()
- Specified by:
getName
in classAbstractNamedEquationTerm<AcVariableType,AcEquationType>
-
-