70 mAttributeDependencies.push_back(
71 line.mSubResistor->attribute(
"right_vector"));
72 mAttributeDependencies.push_back(
73 line.mSubInductor->attribute(
"right_vector"));
74 mModifiedAttributes.push_back(line.attribute(
"right_vector"));
88 mAttributeDependencies.push_back(leftVector);
89 mAttributeDependencies.push_back(line.mSubInductor->attribute(
"i_intf"));
90 mModifiedAttributes.push_back(line.attribute(
"i_intf"));
91 mModifiedAttributes.push_back(line.attribute(
"v_intf"));
AttributePointer< Attribute< T > > Ptr
String uid()
Returns unique id.
spdlog::level::level_enum Level
MNASimPowerComp(String uid, String name, Bool hasPreStep, Bool hasPostStep, Logger::Level logLevel)
void mnaCompAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
void initializeFromNodesAndTerminals(Real frequency)
Initializes component from power flow data.
void mnaCompAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector)
void mnaCompUpdateCurrent(const Matrix &leftVector)
SimPowerComp< Real >::Ptr clone(String name)
Returns a modified copy of the component with the given suffix added to the name and without.
void mnaCompAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
void mnaCompApplyRightSideVectorStamp(Matrix &rightVector)
Stamps right side (source) vector.
void mnaApplyInitialSystemMatrixStamp(SparseMatrixRow &systemMatrix)
Stamps system matrix.
RxLine(String name, Logger::Level logLevel=Logger::Level::off)
Defines name, component parameters and logging level.
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector)
Initializes internal variables of the component.
std::shared_ptr< Resistor > mInitialResistor
Inductor end to ground resistor to facilitate initialization.
RxLine(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name, logging level.
Matrix mVoltage
Voltage across the component [V].
void mnaCompUpdateVoltage(const Matrix &leftVector)
std::shared_ptr< Inductor > mSubInductor
Inductance submodel.
Matrix mCurrent
Current through the component [A].
void mnaCompAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes)
void mnaCompApplySystemMatrixStamp(SparseMatrixRow &systemMatrix)
Stamps system matrix.
std::shared_ptr< Resistor > mSubResistor
Resistor submodel.
std::shared_ptr< SimPowerComp< VarType > > Ptr
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.
Eigen::SparseMatrix< Real, Eigen::RowMajor > SparseMatrixRow
Sparse matrix for real numbers (row major).