85 mPLL.signalAddPreStepDependencies(
89 mPLL.signalPreStep(time, timeStepCount);
99 mPLL.signalAddStepDependencies(
103 mPLL.signalStep(time, timeStepCount);
AttributePointer< Attribute< T > > Ptr
spdlog::level::level_enum Level
void execute(Real time, Int timeStepCount)
void execute(Real time, Int timeStepCount)
void setInitialValues(Real input_init, Matrix state_init, Matrix output_init)
Setter for initial values.
const Attribute< Matrix >::Ptr mOutputPrev
Previous Output.
Real mKp
Proportional constant of PI controller.
Real mTimeStep
Integration time step.
void signalStep(Real time, Int timeStepCount)
step operations
Matrix mD
matrix D of state space model
const Attribute< Real >::Ptr mInputRef
This is never explicitely set to reference anything, so the outside code is responsible for setting u...
const Attribute< Matrix >::Ptr mInputCurr
Current Input.
const Attribute< Matrix >::Ptr mStatePrev
Previous State.
void signalAddStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes)
add step dependencies
Matrix mC
matrix C of state space model
const Attribute< Matrix >::Ptr mOutputCurr
Current Output.
void setSimulationParameters(Real timestep)
Setter for simulation parameters.
Matrix mB
matrix B of state space model
void setParameters(Real kpPLL, Real kiPLL, Real omegaNom)
Setter for PLL parameters.
PLL(String name, Logger::Level logLevel=Logger::Level::off)
Real mOmegaNom
Nominal frequency.
void composeStateSpaceMatrices()
Composition of A, B, C, D matrices based on PLL parameters.
Matrix mA
matrix A of state space model
void signalAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes)
pre step dependencies
const Attribute< Matrix >::Ptr mStateCurr
Current State.
const Attribute< Matrix >::Ptr mInputPrev
Previous Input.
void signalPreStep(Real time, Int timeStepCount)
pre step operations
Real mKi
Integration constant of PI controller.
SimSignalComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
std::vector< AttributeBase::Ptr > mModifiedAttributes
std::vector< AttributeBase::Ptr > mPrevStepDependencies
std::vector< AttributeBase::Ptr > mAttributeDependencies
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.