40 const Eigen::Ref<const Matrix> &dq0);
45 "Rs",
"Ll",
"Ld",
"Lq",
"Ld_t",
"Ld_s",
46 "Lq_t",
"Lq_s",
"Td0_t",
"Td0_s",
"Tq0_t",
"Tq0_s"};
58 Real initTerminalVolt,
Real initVoltAngle,
Real initMechPower);
71 Real initTerminalVolt,
Real initVoltAngle,
AttributePointer< Attribute< T > > Ptr
Base synchronous generator model.
void initialize(Matrix frequencies) override
Initialize components with correct network frequencies.
virtual void mnaCompUpdateVoltage(const Matrix &leftVector) override
Retrieves calculated voltage from simulation for next step.
virtual ~SynchronGeneratorDQ()
void applyParametersOperationalPerUnit()
Calculates fundamental from operational parameters and applies them to the model.
void mnaCompApplyRightSideVectorStamp(Matrix &rightVector) override
void initializeMatrixAndStates()
Initializes internal states and matrix.
const std::vector< String > attrParamNames
void mnaCompApplySystemMatrixStamp(SparseMatrixRow &systemMatrix) override
Real rotationalSpeed() const
void setParametersOperationalPerUnit(Real nomPower, Real nomVolt, Real nomFreq, Int poleNumber, Real nomFieldCur, Real Rs, Real Ld, Real Lq, Real Ld_t, Real Lq_t, Real Ld_s, Real Lq_s, Real Ll, Real Td0_t, Real Tq0_t, Real Td0_s, Real Tq0_s, Real inertia)
void mnaCompAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
MatrixFixedSize< 3, 1 > dq0ToAbcTransform(Real theta, const Eigen::Ref< const Matrix > &dq0)
Inverse Park transform as described in Krause.
Real rotorPosition() const
Real electricalTorque() const
void setInitialValues(Real initActivePower, Real initReactivePower, Real initTerminalVolt, Real initVoltAngle, Real initMechPower)
Initialize states according to desired initial electrical powerflow and mechanical input power.
Matrix mCompensationCurrent
Compensation current source set point.
void setParametersFundamentalPerUnit(Real nomPower, Real nomVolt, Real nomFreq, Int poleNumber, Real nomFieldCur, Real Rs, Real Ll, Real Lmd, Real Lmq, Real Rfd, Real Llfd, Real Rkd, Real Llkd, Real Rkq1, Real Llkq1, Real Rkq2, Real Llkq2, Real inertia, Real initActivePower, Real initReactivePower, Real initTerminalVolt, Real initVoltAngle, Real initMechPower)
void mnaCompPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
void step(Matrix &voltage, Real time)
General step function for standalone simulation.
MatrixFixedSize< 3, 1 > abcToDq0Transform(Real theta, Matrix &abc)
Park transform as described in Krause.
SynchronGeneratorDQ(String name, String uid, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
String uid()
Returns unique id.
spdlog::level::level_enum Level
MNASimPowerComp(String uid, String name, Bool hasPreStep, Bool hasPostStep, Logger::Level logLevel)
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.
Eigen::Matrix< Real, rows, cols, Eigen::ColMajor > MatrixFixedSize
Dense matrix for real numbers with fixed dimension.
Eigen::SparseMatrix< Real, Eigen::RowMajor > SparseMatrixRow
Sparse matrix for real numbers (row major).