209 Real initReactivePower,
Real initTerminalVolt,
210 Real initVoltAngle,
Real initMechPower);
Base synchronous generator model.
Real mBase_OmMech
base mechanical angular frequency
const Attribute< Real >::Ptr mOmMech
rotor speed omega_r
const Attribute< Real >::Ptr mElecTorque
electrical torque
void mnaCompPostStep(Matrix &rightVector, Matrix &leftVector, Real time)
Retrieves calculated voltage from simulation for next step.
Real mVaIm
Interface voltage phase a _ Imaginary part.
Real c21_omega
Auxiliar variables.
Matrix R_EQ
Equivalent stator resistance matrix.
Real mVbIm
Interface voltage phase b _ Imaginary part.
Real mPsimd
Magnetizing flux linkage in d axis.
Matrix mKrs_teta
Park Transformation Matrix.
Real c11
Auxiliar constants.
Matrix mDInductanceMat
inductance matrix
Matrix & statorCurrents()
Real mIbIm
Interface current phase b _ Imaginary part.
Matrix LD0
Constant part of equivalent stator inductance.
Real mIbRe
Interface current phase b _ Real part.
Real mIcIm
Interface current phase c _ Imaginary part.
Matrix R_eq_DP
Equivalent VBR resistance matrix.
Matrix E_eq_DP
Equivalent VBR voltage source vector.
void mnaStep(Matrix &systemMatrix, Matrix &rightVector, Matrix &leftVector, Real time)
Matrix mKrs_teta_inv
Inverse Park Transformation Matrix.
Real mIaRe
Interface current phase a _ Real part.
Real mVbRe
Interface voltage phase b _ Real part.
Real mVaRe
Interface voltage phase a _ Real part.
Matrix mConductanceMat
Equivalent Stator Conductance Matrix.
Real mVcRe
Interface voltage phase c _ Real part.
Matrix mPsifdkd
D axis rotor flux.
void CalculateAuxiliarVariables(Real time)
void stepInPerUnit(Real om, Real dt, Real time, NumericalMethod numMethod)
Real mIcRe
Interface current phase c _ Real part.
Real mIaIm
Interface current phase a _ Imaginary part.
Real mDPsiq
q dynamic flux
Real mTheta0
initial theta
Real mIq_hist
stator current in q axis (last time step)
Matrix dq0ToAbcTransform(Real theta, Real d, Real q, Real zero)
dq to abc
Real mLa
Auxiliar inductance.
Matrix R_load
load resistance matrix
void CalculateLandR(Real time, Real dt)
Matrix abcToDq0Transform(Real theta, Real aRe, Real bRe, Real cRe, Real aIm, Real bIm, Real cIm)
abc to dq
void addGovernor(Real Ta, Real Tb, Real Tc, Real Fa, Real Fb, Real Fc, Real K, Real Tsr, Real Tsm, Real Tm_init, Real PmRef)
Function to initialize Governor and Turbine.
Real mDLmd
d dynamic inductance
void initialize(Matrix frequencies) override
Initialize components with correct network frequencies.
Matrix mIabc
Interfase phase current vector.
void addExciter(Real Ta, Real Ka, Real Te, Real Ke, Real Tf, Real Kf, Real Tr, Real Lad, Real Rfd)
Function to initialize Exciter.
Real mPsimq
Magnetizing flux linkage in q axis.
Real mDPsid
d dynamic flux
Matrix mPsikq1kq2
Q axis Rotor flux.
Matrix mISourceEq
Equivalent Stator Current Source.
void CalculateAuxiliarConstants(Real dt)
Real mVcIm
Interface voltage phase c _ Imaginary part.
Real mDLmq
q dynamic inductance
Real mLb
Auxiliar inductance.
SynchronGeneratorVBR(String name, Real nomPower, Real nomVolt, Real nomFreq, Int poleNumber, Real nomFieldCur, Real Rs, Real Ll, Real Lmd, Real Lmd0, Real Lmq, Real Lmq0, Real Rfd, Real Llfd, Real Rkd, Real Llkd, Real Rkq1, Real Llkq1, Real Rkq2, Real Llkq2, Real inertia, Logger::Level logLevel=Logger::Level::off)
FIXME: SynchronGeneratorBase does not exist!
Matrix mDVabc
Dynamic Voltage vector.
Matrix L_EQ
Equivalent stator inductance matrix.
Matrix mDqStatorCurrents
Dq stator current vector.
Matrix & dqStatorCurrents()
Real mId_hist
stator current in d axis (last time step)
spdlog::level::level_enum Level
Interface to be implemented by all models used by the MNA solver.
SimPowerComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
virtual void initialize(Matrix frequencies)
Initialize components with correct network frequencies.
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.