|
DPsim
|
#include <MathUtils.h>
Public Types | |
| typedef Real(* | DeriveFnPtr) (Matrix inputs) |
Static Public Member Functions | |
| static Real | radtoDeg (Real rad) |
| static Real | degToRad (Real deg) |
| static Real | phase (Complex value) |
| static Real | phaseDeg (Complex value) |
| static Real | abs (Complex value) |
| static Matrix | abs (const MatrixComp &mat) |
| static Matrix | phase (const MatrixComp &mat) |
| static Complex | polar (Real abs, Real phase) |
| static Complex | polarDeg (Real abs, Real phase) |
| template<typename DerivedA, typename DerivedB> | |
| static auto | elementwiseProduct (const Eigen::MatrixBase< DerivedA > &a, const Eigen::MatrixBase< DerivedB > &b) |
| Elementwise product of two same-shaped Eigen expressions. | |
| static bool | isFinite (Real value) |
| static bool | isFinite (Complex value) |
| static void | setVectorElement (Matrix &mat, Matrix::Index row, Complex value, Int maxFreq=1, Int freqIdx=0, Matrix::Index colOffset=0) |
| static void | addToVectorElement (Matrix &mat, Matrix::Index row, Complex value, Int maxFreq=1, Int freqIdx=0) |
| static Complex | complexFromVectorElement (const Matrix &mat, Matrix::Index row, Int maxFreq=1, Int freqIdx=0) |
| static void | addToVectorElement (Matrix &mat, Matrix::Index row, Real value) |
| static void | setVectorElement (Matrix &mat, Matrix::Index row, Real value) |
| static Real | realFromVectorElement (const Matrix &mat, Matrix::Index row) |
| static void | setMatrixElement (SparseMatrixRow &mat, Matrix::Index row, Matrix::Index column, Complex value, Int maxFreq=1, Int freqIdx=0) |
| static void | addToMatrixElement (SparseMatrixRow &mat, Matrix::Index row, Matrix::Index column, Complex value, Int maxFreq=1, Int freqIdx=0) |
| static void | addToMatrixElement (SparseMatrixRow &mat, Matrix::Index row, Matrix::Index column, Matrix value, Int maxFreq=1, Int freqIdx=0) |
| static void | setMatrixElement (SparseMatrixRow &mat, Matrix::Index row, Matrix::Index column, Real value) |
| static void | addToMatrixElement (SparseMatrixRow &mat, std::vector< UInt > rows, std::vector< UInt > columns, Complex value) |
| static void | addToMatrixElement (SparseMatrixRow &mat, Matrix::Index row, Matrix::Index column, Real value) |
| static void | addToMatrixElement (SparseMatrixRow &mat, std::vector< UInt > rows, std::vector< UInt > columns, Real value) |
| static void | invertMatrix (const Matrix &mat, Matrix &matInv) |
| static Matrix | StateSpaceTrapezoidal (Matrix states, Matrix A, Matrix B, Real dt, Matrix u_new, Matrix u_old) |
| static Matrix | StateSpaceTrapezoidal (Matrix states, Matrix A, Matrix B, Matrix C, Real dt, Matrix u_new, Matrix u_old) |
| static Matrix | StateSpaceTrapezoidal (Matrix states, Matrix A, Matrix B, Real dt, Matrix u) |
| static Matrix | StateSpaceTrapezoidal (Matrix states, Matrix A, Matrix B, Matrix C, Real dt, Matrix u) |
| static Matrix | StateSpaceTrapezoidal (Matrix states, Matrix A, Matrix input, Real dt) |
| static Real | StateSpaceTrapezoidal (Real states, Real A, Real B, Real C, Real dt, Real u) |
| static Real | StateSpaceTrapezoidal (Real states, Real A, Real B, Real dt, Real u) |
| static Matrix | StateSpaceEuler (Matrix states, Matrix A, Matrix B, Real dt, Matrix u) |
| static Matrix | StateSpaceEuler (Matrix states, Matrix A, Matrix B, Matrix C, Real dt, Matrix u) |
| static Matrix | StateSpaceEuler (Matrix states, Matrix A, Matrix input, Real dt) |
| static Real | StateSpaceEuler (Real states, Real A, Real B, Real dt, Real u) |
| static Real | StateSpaceEuler (Real states, Real A, Real B, Real C, Real dt, Real u) |
| static void | calculateStateSpaceTrapezoidalMatrices (const Matrix &A, const Matrix &B, const Matrix &C, const Real &dt, Matrix &Ad, Matrix &Bd, Matrix &Cd) |
| Calculate the discretized state space matrices Ad, Bd, Cd using trapezoidal rule. | |
| static void | calculateStateSpaceTrapezoidalMatrices (const Matrix &A, const Matrix &B, const Real &dt, Matrix &Ad, Matrix &Bd) |
| static Matrix | applyStateSpaceTrapezoidalMatrices (const Matrix &Ad, const Matrix &Bd, const Matrix &Cd, const Matrix &statesPrevStep, const Matrix &inputCurrStep, const Matrix &inputPrevStep) |
| Apply the trapezoidal based state space matrices Ad, Bd, Cd to get the states at the current time step. | |
| static void | FFT (std::vector< Complex > &samples) |
| static Complex | rotatingFrame2to1 (Complex f2, Real theta1, Real theta2) |
| static MatrixComp | singlePhaseVariableToThreePhase (Complex var_1ph) |
| To convert single phase complex variables (voltages, currents) to symmetrical three phase ones. | |
| static Matrix | singlePhaseParameterToThreePhase (Real parameter) |
| To convert single phase parameters to symmetrical three phase ones. | |
| static Matrix | singlePhasePowerToThreePhase (Real power) |
| To convert single phase power to symmetrical three phase. | |
| static std::pair< Real, Real > | pccPowerFromFilterPowerReference (Real pFilterRef, Real qFilterRef, Real rc, Real vGridRmsLL) |
| static Matrix | parkTransformPowerInvariant (Real theta, const Matrix &fabc) |
| static Matrix | parkTransformMatrixPowerInvariant (Real theta) |
| static Matrix | inverseParkTransformPowerInvariant (Real theta, const Matrix &fdq) |
| static Matrix | inverseParkTransformMatrixPowerInvariant (Real theta) |
Definition at line 17 of file MathUtils.h.
Definition at line 19 of file MathUtils.h.
Definition at line 27 of file MathUtils.cpp.
|
static |
Definition at line 29 of file MathUtils.cpp.
|
static |
Definition at line 130 of file MathUtils.cpp.
|
static |
Definition at line 146 of file MathUtils.cpp.
|
static |
Definition at line 172 of file MathUtils.cpp.
|
static |
Definition at line 166 of file MathUtils.cpp.
|
static |
Definition at line 177 of file MathUtils.cpp.
|
static |
Definition at line 83 of file MathUtils.cpp.
Definition at line 103 of file MathUtils.cpp.
|
static |
Apply the trapezoidal based state space matrices Ad, Bd, Cd to get the states at the current time step.
Definition at line 395 of file MathUtils.cpp.
|
static |
Calculate the discretized state space matrices Ad, Bd, Cd using trapezoidal rule.
Definition at line 363 of file MathUtils.cpp.
|
static |
Definition at line 380 of file MathUtils.cpp.
|
static |
Definition at line 94 of file MathUtils.cpp.
Definition at line 21 of file MathUtils.cpp.
|
inlinestatic |
Elementwise product of two same-shaped Eigen expressions.
Definition at line 41 of file MathUtils.h.
|
static |
Definition at line 404 of file MathUtils.cpp.
Definition at line 472 of file MathUtils.cpp.
Definition at line 468 of file MathUtils.cpp.
Definition at line 183 of file MathUtils.cpp.
|
static |
Definition at line 69 of file MathUtils.cpp.
|
static |
Definition at line 63 of file MathUtils.cpp.
Definition at line 455 of file MathUtils.cpp.
Definition at line 451 of file MathUtils.cpp.
|
static |
PCC-side injected power from an averaged-VSI filter-side power reference, correcting the loss across the coupling resistance rc (S = 1.5*Vpeak*I*).
Definition at line 238 of file MathUtils.cpp.
Definition at line 23 of file MathUtils.cpp.
|
static |
Definition at line 42 of file MathUtils.cpp.
Definition at line 25 of file MathUtils.cpp.
Definition at line 55 of file MathUtils.cpp.
Definition at line 59 of file MathUtils.cpp.
Definition at line 19 of file MathUtils.cpp.
Definition at line 111 of file MathUtils.cpp.
Definition at line 444 of file MathUtils.cpp.
|
static |
Definition at line 115 of file MathUtils.cpp.
|
static |
Definition at line 161 of file MathUtils.cpp.
|
static |
Definition at line 73 of file MathUtils.cpp.
Definition at line 107 of file MathUtils.cpp.
To convert single phase parameters to symmetrical three phase ones.
Definition at line 226 of file MathUtils.cpp.
To convert single phase power to symmetrical three phase.
Definition at line 232 of file MathUtils.cpp.
|
static |
To convert single phase complex variables (voltages, currents) to symmetrical three phase ones.
Definition at line 220 of file MathUtils.cpp.
|
static |
Definition at line 349 of file MathUtils.cpp.
Definition at line 340 of file MathUtils.cpp.
Definition at line 359 of file MathUtils.cpp.
Definition at line 354 of file MathUtils.cpp.
Definition at line 345 of file MathUtils.cpp.
|
static |
Definition at line 287 of file MathUtils.cpp.
|
static |
Definition at line 274 of file MathUtils.cpp.
Definition at line 308 of file MathUtils.cpp.
|
static |
Definition at line 262 of file MathUtils.cpp.
Definition at line 320 of file MathUtils.cpp.
Definition at line 299 of file MathUtils.cpp.
Definition at line 332 of file MathUtils.cpp.