31 SPDLOG_LOGGER_INFO(
mSLog,
32 "\nFluxStateSpaceMat: \n{}"
33 "\nOmegaFluxMat: \n{}"
34 "\nResistances: {} {} {}",
AttributePointer< Attribute< T > > Ptr
Matrix mIsr
Vector of stator and rotor currents.
Real mTimeStep
Simulation time step.
Real mBase_I
base stator current peak
Bool mHasExciter
Determines if Exciter is activated.
const Attribute< Real >::Ptr mMechTorque
mechanical torque
Matrix mFluxToCurrentMat
Calculates currents from fluxes.
Matrix mFluxStateSpaceMat
Flux state space matrix excluding omega term.
Matrix mVsr
Vector of stator and rotor voltages.
Matrix mPsisr
Vector of stator and rotor fluxes.
Matrix mOmegaFluxMat
Omega-flux matrix for state space system.
Matrix mIdq0
dq0 current calculated from terminal current
NumericalMethod mNumericalMethod
Real mBase_OmElec
base electrical angular frequency
Matrix mVdq0
dq0 voltage calculated from terminal voltage
Real mBase_OmMech
base mechanical angular frequency
Real mBase_V
base stator voltage (phase-to-ground peak)
const Attribute< Real >::Ptr mOmMech
rotor speed omega_r
Bool mHasTurbineGovernor
Determines if legacy TurbineGovernor is activated.
const Attribute< Real >::Ptr mInertia
inertia constant H [s] for per unit or moment of inertia J [kg*m^2]
const Attribute< Real >::Ptr mElecTorque
electrical torque
MatrixFixedSizeComp< 3, 1 > dq0ToAbcTransform(Real theta, const Eigen::Ref< const Matrix > &dq0)
Inverse Park transform as described in Krause.
void initializeMatrixAndStates()
Build the per-unit steady-state machine state after PF values are loaded.
SynchronGeneratorDQ(String name, String uid, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
MatrixFixedSize< 3, 1 > abcToDq0Transform(Real theta, MatrixComp &abc)
Park transform as described in Krause.
void mnaCompApplyRightSideVectorStamp(Matrix &rightVector) override
void mnaCompAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
void setMultisamplingRate(Int rate)
void stepInPerUnit(Real time)
void mnaCompPreStep(Real time, Int timeStepCount) override
SynchronGeneratorDQTrapez(String uid, String name, Logger::Level loglevel=Logger::Level::off)
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector) override
Initializes variables of component.
String uid()
Returns unique id.
spdlog::level::level_enum Level
Attribute< Matrix >::Ptr mRightVector
static Matrix StateSpaceTrapezoidalNoCopy(const Matrix &states, const Matrix &A, const Matrix &B, Real dt, const Matrix &u_new, const Matrix &u_old)
static Matrix StateSpaceEulerNoCopy(const Matrix &states, const Matrix &A, const Matrix &B, Real dt, const Matrix &u)
const Attribute< MatrixVar< Complex > >::Ptr mIntfCurrent
const Attribute< MatrixVar< Complex > >::Ptr mIntfVoltage
void updateMatrixNodeIndices()
Logger::Log mSLog
Component logger.