DPsim
|
Classes | |
class | PreStep |
class | Step |
Public Member Functions | |
PLL (String name, Logger::Level logLevel=Logger::Level::off) | |
void | setParameters (Real kpPLL, Real kiPLL, Real omegaNom) |
Setter for PLL parameters. | |
void | setSimulationParameters (Real timestep) |
Setter for simulation parameters. | |
void | setInitialValues (Real input_init, Matrix state_init, Matrix output_init) |
Setter for initial values. | |
void | composeStateSpaceMatrices () |
Composition of A, B, C, D matrices based on PLL parameters. | |
void | signalPreStep (Real time, Int timeStepCount) |
pre step operations | |
void | signalStep (Real time, Int timeStepCount) |
step operations | |
void | signalAddPreStepDependencies (AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) |
pre step dependencies | |
void | signalAddStepDependencies (AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) |
add step dependencies | |
Task::List | getTasks () |
![]() | |
SimSignalComp (String uid, String name, Logger::Level logLevel=Logger::Level::off) | |
SimSignalComp (String name, Logger::Level logLevel=Logger::Level::off) | |
virtual void | initialize (Real timeStep) |
virtual void | initialize (Real omega, Real timeStep) |
void | setBehaviour (Behaviour behaviour) |
Set behavior of component, e.g. initialization. | |
![]() | |
TopologicalSignalComp (String uid, String name, Logger::Level logLevel=Logger::Level::off) | |
Basic constructor that takes UID, name and log level. | |
TopologicalSignalComp (String name, Logger::Level logLevel=Logger::Level::off) | |
Basic constructor that takes name and log level and sets the UID to name as well. | |
![]() | |
IdentifiedObject (const String &uid, const String &name) | |
IdentifiedObject (const String &name) | |
AttributeBase::Ptr | attribute (const String &name) const |
Return pointer to an attribute. | |
template<typename T> | |
Attribute< T >::Ptr | attributeTyped (const String &name) const |
Return pointer to an attribute. | |
const AttributeBase::Map & | attributes () const |
String | name () |
String | uid () |
Returns unique id. | |
String | type () |
Get component type (cross-platform) | |
virtual String | description () |
Public Attributes | |
const Attribute< Real >::Ptr | mInputRef |
This is never explicitely set to reference anything, so the outside code is responsible for setting up the reference. | |
const Attribute< Matrix >::Ptr | mInputPrev |
Previous Input. | |
const Attribute< Matrix >::Ptr | mInputCurr |
Current Input. | |
const Attribute< Matrix >::Ptr | mStatePrev |
Previous State. | |
const Attribute< Matrix >::Ptr | mStateCurr |
Current State. | |
const Attribute< Matrix >::Ptr | mOutputPrev |
Previous Output. | |
const Attribute< Matrix >::Ptr | mOutputCurr |
Current Output. | |
![]() | |
const Attribute< String >::Ptr | mName |
Human readable name. | |
const Attribute< String >::Ptr | mUID |
Unique identifier. | |
Protected Attributes | |
Real | mKp |
Proportional constant of PI controller. | |
Real | mKi |
Integration constant of PI controller. | |
Real | mOmegaNom |
Nominal frequency. | |
Real | mTimeStep |
Integration time step. | |
Matrix | mA = Matrix::Zero(2, 2) |
matrix A of state space model | |
Matrix | mB = Matrix::Zero(2, 2) |
matrix B of state space model | |
Matrix | mC = Matrix::Zero(2, 2) |
matrix C of state space model | |
Matrix | mD = Matrix::Zero(2, 2) |
matrix D of state space model | |
![]() | |
Bool | mBehaviour = Behaviour::Simulation |
![]() | |
Logger::Log | mSLog |
Component logger. | |
Logger::Level | mLogLevel |
Component logger control for internal variables. | |
![]() | |
AttributeList::Ptr | mAttributes = AttributeList::make() |
Attribute List. | |
Additional Inherited Members | |
![]() | |
enum | Behaviour { Initialization , Simulation } |
typedef std::shared_ptr< SimSignalComp > | Ptr |
typedef std::vector< Ptr > | List |
![]() | |
typedef std::shared_ptr< TopologicalSignalComp > | Ptr |
typedef std::vector< Ptr > | List |
![]() | |
typedef std::shared_ptr< IdentifiedObject > | Ptr |
typedef std::vector< Ptr > | List |
![]() | |
static std::shared_ptr< PLL > | make (Args &&...args) |
PLL::PLL | ( | String | name, |
Logger::Level | logLevel = Logger::Level::off ) |
void PLL::composeStateSpaceMatrices | ( | ) |
|
virtual |
Reimplemented from CPS::SimSignalComp.
void PLL::setInitialValues | ( | Real | input_init, |
Matrix | state_init, | ||
Matrix | output_init ) |
void PLL::setParameters | ( | Real | kpPLL, |
Real | kiPLL, | ||
Real | omegaNom ) |
void PLL::setSimulationParameters | ( | Real | timestep | ) |
void PLL::signalAddPreStepDependencies | ( | AttributeBase::List & | prevStepDependencies, |
AttributeBase::List & | attributeDependencies, | ||
AttributeBase::List & | modifiedAttributes ) |
void PLL::signalAddStepDependencies | ( | AttributeBase::List & | prevStepDependencies, |
AttributeBase::List & | attributeDependencies, | ||
AttributeBase::List & | modifiedAttributes ) |
void PLL::signalPreStep | ( | Real | time, |
Int | timeStepCount ) |
void PLL::signalStep | ( | Real | time, |
Int | timeStepCount ) |
|
protected |
|
protected |
|
protected |
|
protected |
const Attribute<Matrix>::Ptr CPS::Signal::PLL::mInputCurr |
const Attribute<Matrix>::Ptr CPS::Signal::PLL::mInputPrev |
const Attribute<Real>::Ptr CPS::Signal::PLL::mInputRef |
|
protected |
|
protected |
const Attribute<Matrix>::Ptr CPS::Signal::PLL::mOutputCurr |
const Attribute<Matrix>::Ptr CPS::Signal::PLL::mOutputPrev |
const Attribute<Matrix>::Ptr CPS::Signal::PLL::mStateCurr |
const Attribute<Matrix>::Ptr CPS::Signal::PLL::mStatePrev |
|
protected |