11 #include <dpsim-models/CompositePowerComp.h>
12 #include <dpsim-models/EMT/EMT_Ph3_VoltageSource.h>
13 #include <dpsim-models/Solver/MNAInterface.h>
26 std::shared_ptr<EMT::Ph3::VoltageSource> mSubVoltageSource;
30 std::vector<const Matrix *> mRightVectorStamps;
38 Logger::Level loglevel = Logger::Level::off);
44 Logger::Level logLevel = Logger::Level::off);
52 void setParameters(MatrixComp voltageRef, Real srcFreq = 50.0);
54 void setParameters(MatrixComp voltageRef, Real freqStart, Real rocof,
55 Real timeStart, Real duration,
bool smoothRamp =
true);
57 void setParameters(MatrixComp voltageRef, Real modulationFrequency,
58 Real modulationAmplitude, Real baseFrequency = 50.0,
75 AttributeBase::List &prevStepDependencies,
76 AttributeBase::List &attributeDependencies,
77 AttributeBase::List &modifiedAttributes)
override;
81 AttributeBase::List &attributeDependencies,
82 AttributeBase::List &modifiedAttributes,
Base class for composite power components.
void mnaParentApplyRightSideVectorStamp(Matrix &rightVector) override
Stamps right side (source) vector.
void setParameters(MatrixComp voltageRef, Real srcFreq=50.0)
Setter for reference voltage parameters.
void mnaCompUpdateVoltage(const Matrix &leftVector) override
Updates voltage across component.
NetworkInjection(String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name, component parameters and logging level.
void mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
void mnaCompUpdateCurrent(const Matrix &leftVector) override
Returns current through the component.
NetworkInjection(String name, Complex voltage, Logger::Level logLevel=Logger::Level::off)
Defines name, component parameters and logging level.
void mnaParentPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
MNA post step operations.
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 mnaParentPreStep(Real time, Int timeStepCount) override
MNA pre step operations.
void mnaParentAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
NetworkInjection(String uid, String name, Logger::Level loglevel=Logger::Level::off)
Defines UID, name, component parameters and logging level.
String uid()
Returns unique id.
Base class for all components that are transmitting power.