69 :
Task(**resistor.
mName +
".MnaPostStepHarm"), mResistor(resistor),
70 mLeftVectors(leftVectors) {
71 for (
UInt i = 0; i < mLeftVectors.size(); i++)
80 std::vector<Attribute<Matrix>::Ptr> mLeftVectors;
88 void daeResidual(
double ttime,
const double state[],
const double dstate_dt[],
89 double resid[], std::vector<int> &off);
AttributePointer< Attribute< T > > Ptr
void execute(Real time, Int timeStepCount)
MnaPostStepHarm(Resistor &resistor, std::vector< Attribute< Matrix >::Ptr > &leftVectors)
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector)
Complex daeInitialize()
Voltage Getter.
void mnaCompUpdateCurrentHarm()
void mnaCompAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector)
add MNA pre and post step dependencies
void mnaCompInitializeHarm(Real omega, Real timeStep, std::vector< Attribute< Matrix >::Ptr > leftVector)
void mnaCompApplySystemMatrixStampHarm(SparseMatrixRow &systemMatrix, Int freqIdx)
Stamps system matrix considering the frequency index.
Resistor(String uid, String name, Logger::Level loglevel=Logger::Level::off)
Defines UID, name and logging level.
void mnaCompPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector)
MNA pre and post step operations.
void daeResidual(double ttime, const double state[], const double dstate_dt[], double resid[], std::vector< int > &off)
Residual Function for DAE Solver.
void mnaCompUpdateCurrent(const Matrix &leftVector)
Update interface current from MNA system result.
void mnaCompApplySystemMatrixStamp(SparseMatrixRow &systemMatrix)
Stamps system matrix.
SimPowerComp< Complex >::Ptr clone(String name)
Returns a modified copy of the component with the given suffix added to the name and without.
void mnaCompUpdateVoltageHarm(const Matrix &leftVector, Int freqIdx)
void mnaTearApplyMatrixStamp(SparseMatrixRow &tearMatrix)
void mnaCompUpdateVoltage(const Matrix &leftVector)
Update interface voltage from MNA system result.
void initializeFromNodesAndTerminals(Real frequency)
Initializes component from power flow data.
Resistor(String name, Logger::Level logLevel=Logger::Level::off)
Defines 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)
std::shared_ptr< SimPowerComp< VarType > > Ptr
std::vector< AttributeBase::Ptr > mModifiedAttributes
std::vector< AttributeBase::Ptr > mAttributeDependencies
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.
std::complex< Real > Complex
Eigen::SparseMatrix< Real, Eigen::RowMajor > SparseMatrixRow
Sparse matrix for real numbers (row major).