11 #include <dpsim-models/CompositePowerComp.h>
12 #include <dpsim-models/DP/DP_Ph1_VoltageSource.h>
13 #include <dpsim-models/Solver/MNAInterface.h>
23 std::shared_ptr<DP::Ph1::VoltageSource> mSubVoltageSource;
31 Logger::Level logLevel = Logger::Level::off);
34 Logger::Level logLevel = Logger::Level::off);
50 AttributeBase::List &prevStepDependencies,
51 AttributeBase::List &attributeDependencies,
52 AttributeBase::List &modifiedAttributes)
override;
56 AttributeBase::List &attributeDependencies,
57 AttributeBase::List &modifiedAttributes,
Base class for composite power components.
Ideal voltage source representing a synchronous generator.
const Attribute< Complex >::Ptr mVoltageRef
SynchronGeneratorIdeal(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name, component parameters and logging level.
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
void mnaCompUpdateVoltage(const Matrix &leftVector) override
Updates voltage across component.
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.
SimPowerComp< Complex >::Ptr clone(String name) override
Returns a modified copy of the component with the given suffix added to the name and without.
void mnaParentPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
MNA post step operations.
void mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
void mnaCompUpdateCurrent(const Matrix &leftVector) override
Updates current through the component.
String uid()
Returns unique id.
Base class for all components that are transmitting power.