Class AbstractClosedBranchAcFlowEquationTerm
- java.lang.Object
-
- com.powsybl.openloadflow.equations.AbstractEquationTerm
-
- com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
-
- com.powsybl.openloadflow.ac.equations.AbstractClosedBranchAcFlowEquationTerm
-
- All Implemented Interfaces:
EquationTerm
,Evaluable
- Direct Known Subclasses:
ClosedBranchSide1ActiveFlowEquationTerm
,ClosedBranchSide1CurrentMagnitudeEquationTerm
,ClosedBranchSide1ReactiveFlowEquationTerm
,ClosedBranchSide2ActiveFlowEquationTerm
,ClosedBranchSide2CurrentMagnitudeEquationTerm
,ClosedBranchSide2ReactiveFlowEquationTerm
public abstract class AbstractClosedBranchAcFlowEquationTerm extends AbstractNamedEquationTerm
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationTerm
EquationTerm.MultiplyByScalarEquationTerm, EquationTerm.VariableEquationTerm
-
-
Field Summary
Fields Modifier and Type Field Description protected Variable
a1Var
protected double
b1
protected double
b2
protected LfBranch
branch
protected double
cosKsi
static double
CURRENT_NORMALIZATION_FACTOR
protected double
g1
protected double
g2
protected double
ksi
protected Variable
ph1Var
protected Variable
ph2Var
protected Variable
r1Var
protected double
sinKsi
protected Variable
v1Var
protected Variable
v2Var
protected List<Variable>
variables
protected double
y
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractClosedBranchAcFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean deriveR1)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract double
calculateSensi(double ph1, double ph2, double v1, double v2, double a1, double r1)
double
calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
protected double
getA1(com.powsybl.math.matrix.DenseMatrix x, int column)
int
getElementNum()
ElementType
getElementType()
protected double
getR1(com.powsybl.math.matrix.DenseMatrix x, int column)
List<Variable>
getVariables()
Get the list of variable this equation term depends on.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.-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractNamedEquationTerm
getName, write
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getEquation, isActive, setActive, setEquation
-
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
der, eval, update
-
-
-
-
Field Detail
-
v1Var
protected final Variable v1Var
-
v2Var
protected final Variable v2Var
-
ph1Var
protected final Variable ph1Var
-
ph2Var
protected final Variable ph2Var
-
a1Var
protected Variable a1Var
-
r1Var
protected Variable r1Var
-
CURRENT_NORMALIZATION_FACTOR
public static final double CURRENT_NORMALIZATION_FACTOR
-
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
-
AbstractClosedBranchAcFlowEquationTerm
protected AbstractClosedBranchAcFlowEquationTerm(LfBranch branch, LfBus bus1, LfBus bus2, VariableSet variableSet, boolean deriveA1, boolean deriveR1)
-
-
Method Detail
-
calculateSensi
protected abstract double calculateSensi(double ph1, double ph2, double v1, double v2, double a1, double r1)
-
calculateSensi
public double calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
- Specified by:
calculateSensi
in interfaceEquationTerm
- Overrides:
calculateSensi
in classAbstractEquationTerm
-
getA1
protected double getA1(com.powsybl.math.matrix.DenseMatrix x, int column)
-
getR1
protected double getR1(com.powsybl.math.matrix.DenseMatrix x, int column)
-
getVariables
public List<Variable> 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.
-
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
-
-