11#include <dpsim-models/CompositePowerComp.h>
12#include <dpsim-models/EMT/EMT_Ph3_CurrentSource.h>
13#include <dpsim-models/EMT/EMT_Ph3_VoltageSource.h>
14#include <dpsim-models/Solver/MNAInterface.h>
24 CPS::GeneratorType mSourceType;
26 std::shared_ptr<EMT::Ph3::VoltageSource> mSubVoltageSource;
28 std::shared_ptr<EMT::Ph3::CurrentSource> mSubCurrentSource;
36 String
uid, String name, Logger::Level logLevel = Logger::Level::off,
37 CPS::GeneratorType sourceType = CPS::GeneratorType::IdealVoltageSource);
40 Logger::Level logLevel = Logger::Level::off);
42 SimPowerComp<Real>::Ptr
clone(String name)
override;
53 Attribute<Matrix>::Ptr &leftVector)
override;
56 AttributeBase::List &prevStepDependencies,
57 AttributeBase::List &attributeDependencies,
58 AttributeBase::List &modifiedAttributes)
override;
62 AttributeBase::List &attributeDependencies,
63 AttributeBase::List &modifiedAttributes,
64 Attribute<Matrix>::Ptr &leftVector)
override;
CompositePowerComp(String uid, String name, Bool hasPreStep, Bool hasPostStep, Logger::Level logLevel)
void mnaCompUpdateCurrent(const Matrix &leftVector) override
Updates current through the component.
SimPowerComp< Real >::Ptr clone(String name) override
Returns a modified copy of the component with the given suffix added to the name and without.
void mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
void mnaParentAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
void mnaParentPreStep(Real time, Int timeStepCount) override
MNA pre step operations.
const Attribute< MatrixComp >::Ptr mRefVoltage
CHECK: Is this actually necessary? It is never read from within the component's code.
SynchronGeneratorIdeal(String uid, String name, Logger::Level logLevel=Logger::Level::off, CPS::GeneratorType sourceType=CPS::GeneratorType::IdealVoltageSource)
Defines UID, name, component parameters and logging level.
void mnaCompUpdateVoltage(const Matrix &leftVector) override
Updates voltage across component.
void mnaParentPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
MNA post step operations.
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
String uid()
Returns unique id.