DPsim
Loading...
Searching...
No Matches
CPS::Signal::DecouplingLine Class Reference
Inheritance diagram for CPS::Signal::DecouplingLine:
[legend]
Collaboration diagram for CPS::Signal::DecouplingLine:
[legend]

Classes

class  PostStep
 
class  PreStep
 

Public Types

typedef std::shared_ptr< DecouplingLinePtr
 
- Public Types inherited from CPS::SimSignalComp
enum  Behaviour { Initialization , Simulation }
 
typedef std::shared_ptr< SimSignalCompPtr
 
typedef std::vector< Ptr > List
 
- Public Types inherited from CPS::TopologicalSignalComp
typedef std::shared_ptr< TopologicalSignalCompPtr
 
typedef std::vector< Ptr > List
 
- Public Types inherited from CPS::IdentifiedObject
typedef std::shared_ptr< IdentifiedObjectPtr
 
typedef std::vector< Ptr > List
 

Public Member Functions

 DecouplingLine (String name, SimNode< Complex >::Ptr node1, SimNode< Complex >::Ptr node2, Real resistance, Real inductance, Real capacitance, Logger::Level logLevel=Logger::Level::info)
 
 DecouplingLine (String name, Logger::Level logLevel=Logger::Level::info)
 
void setParameters (SimNode< Complex >::Ptr node1, SimNode< Complex >::Ptr node2, Real resistance, Real inductance, Real capacitance)
 
void initialize (Real omega, Real timeStep)
 
void step (Real time, Int timeStepCount)
 
void postStep ()
 
Task::List getTasks ()
 
IdentifiedObject::List getLineComponents ()
 
- Public Member Functions inherited from CPS::SimSignalComp
 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)
 
void setBehaviour (Behaviour behaviour)
 Set behavior of component, e.g. initialization.
 
- Public Member Functions inherited from CPS::TopologicalSignalComp
 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.
 
- Public Member Functions inherited from CPS::IdentifiedObject
 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< Complex >::Ptr mSrcCur1Ref
 
const Attribute< Complex >::Ptr mSrcCur2Ref
 
const Attribute< Matrix >::Ptr mStates
 FIXME: workaround for dependency analysis as long as the states aren't attributes.
 
- Public Attributes inherited from CPS::IdentifiedObject
const Attribute< String >::Ptr mName
 Human readable name.
 
const Attribute< String >::Ptr mUID
 Unique identifier.
 

Protected Member Functions

Complex interpolate (std::vector< Complex > &data)
 

Protected Attributes

Real mDelay
 
Real mResistance
 
Real mInductance
 
Real mCapacitance
 
Real mSurgeImpedance
 
std::shared_ptr< DP::SimNodemNode1
 
std::shared_ptr< DP::SimNodemNode2
 
std::shared_ptr< DP::Ph1::ResistormRes1
 
std::shared_ptr< DP::Ph1::ResistormRes2
 
std::shared_ptr< DP::Ph1::CurrentSourcemSrc1
 
std::shared_ptr< DP::Ph1::CurrentSourcemSrc2
 
Attribute< Complex >::Ptr mSrcCur1
 
Attribute< Complex >::Ptr mSrcCur2
 
std::vector< Complex > mVolt1
 
std::vector< Complex > mVolt2
 
std::vector< Complex > mCur1
 
std::vector< Complex > mCur2
 
UInt mBufIdx = 0
 
UInt mBufSize
 
Real mAlpha
 
- Protected Attributes inherited from CPS::SimSignalComp
Bool mBehaviour = Behaviour::Simulation
 
- Protected Attributes inherited from CPS::TopologicalSignalComp
Logger::Log mSLog
 Component logger.
 
Logger::Level mLogLevel
 Component logger control for internal variables.
 
- Protected Attributes inherited from CPS::IdentifiedObject
AttributeList::Ptr mAttributes = AttributeList::make()
 Attribute List.
 

Additional Inherited Members

- Static Public Member Functions inherited from SharedFactory< DecouplingLine >
static std::shared_ptr< DecouplingLine > make (Args &&...args)
 

Detailed Description

Definition at line 21 of file DecouplingLine.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<DecouplingLine> CPS::Signal::DecouplingLine::Ptr

Definition at line 44 of file DecouplingLine.h.

Constructor & Destructor Documentation

◆ DecouplingLine() [1/2]

DecouplingLine::DecouplingLine ( String name,
SimNode< Complex >::Ptr node1,
SimNode< Complex >::Ptr node2,
Real resistance,
Real inductance,
Real capacitance,
Logger::Level logLevel = Logger::Level::info )

Definition at line 16 of file DecouplingLine.cpp.

◆ DecouplingLine() [2/2]

DecouplingLine::DecouplingLine ( String name,
Logger::Level logLevel = Logger::Level::info )

Definition at line 48 of file DecouplingLine.cpp.

Member Function Documentation

◆ getLineComponents()

IdentifiedObject::List DecouplingLine::getLineComponents ( )

Definition at line 181 of file DecouplingLine.cpp.

◆ getTasks()

Task::List DecouplingLine::getTasks ( )
virtual

Reimplemented from CPS::SimSignalComp.

Definition at line 176 of file DecouplingLine.cpp.

◆ initialize()

void DecouplingLine::initialize ( Real omega,
Real timeStep )
virtual

Reimplemented from CPS::SimSignalComp.

Definition at line 88 of file DecouplingLine.cpp.

◆ interpolate()

Complex DecouplingLine::interpolate ( std::vector< Complex > & data)
protected

Definition at line 118 of file DecouplingLine.cpp.

◆ postStep()

void DecouplingLine::postStep ( )

Definition at line 160 of file DecouplingLine.cpp.

◆ setParameters()

void DecouplingLine::setParameters ( SimNode< Complex >::Ptr node1,
SimNode< Complex >::Ptr node2,
Real resistance,
Real inductance,
Real capacitance )

Definition at line 63 of file DecouplingLine.cpp.

◆ step()

void DecouplingLine::step ( Real time,
Int timeStepCount )

Definition at line 125 of file DecouplingLine.cpp.

Member Data Documentation

◆ mAlpha

Real CPS::Signal::DecouplingLine::mAlpha
protected

Definition at line 39 of file DecouplingLine.h.

◆ mBufIdx

UInt CPS::Signal::DecouplingLine::mBufIdx = 0
protected

Definition at line 37 of file DecouplingLine.h.

◆ mBufSize

UInt CPS::Signal::DecouplingLine::mBufSize
protected

Definition at line 38 of file DecouplingLine.h.

◆ mCapacitance

Real CPS::Signal::DecouplingLine::mCapacitance
protected

Definition at line 26 of file DecouplingLine.h.

◆ mCur1

std::vector<Complex> CPS::Signal::DecouplingLine::mCur1
protected

Definition at line 36 of file DecouplingLine.h.

◆ mCur2

std::vector<Complex> CPS::Signal::DecouplingLine::mCur2
protected

Definition at line 36 of file DecouplingLine.h.

◆ mDelay

Real CPS::Signal::DecouplingLine::mDelay
protected

Definition at line 24 of file DecouplingLine.h.

◆ mInductance

Real CPS::Signal::DecouplingLine::mInductance
protected

Definition at line 26 of file DecouplingLine.h.

◆ mNode1

std::shared_ptr<DP::SimNode> CPS::Signal::DecouplingLine::mNode1
protected

Definition at line 29 of file DecouplingLine.h.

◆ mNode2

std::shared_ptr<DP::SimNode> CPS::Signal::DecouplingLine::mNode2
protected

Definition at line 29 of file DecouplingLine.h.

◆ mRes1

std::shared_ptr<DP::Ph1::Resistor> CPS::Signal::DecouplingLine::mRes1
protected

Definition at line 30 of file DecouplingLine.h.

◆ mRes2

std::shared_ptr<DP::Ph1::Resistor> CPS::Signal::DecouplingLine::mRes2
protected

Definition at line 30 of file DecouplingLine.h.

◆ mResistance

Real CPS::Signal::DecouplingLine::mResistance
protected

Definition at line 25 of file DecouplingLine.h.

◆ mSrc1

std::shared_ptr<DP::Ph1::CurrentSource> CPS::Signal::DecouplingLine::mSrc1
protected

Definition at line 31 of file DecouplingLine.h.

◆ mSrc2

std::shared_ptr<DP::Ph1::CurrentSource> CPS::Signal::DecouplingLine::mSrc2
protected

Definition at line 31 of file DecouplingLine.h.

◆ mSrcCur1

Attribute<Complex>::Ptr CPS::Signal::DecouplingLine::mSrcCur1
protected

Definition at line 32 of file DecouplingLine.h.

◆ mSrcCur1Ref

const Attribute<Complex>::Ptr CPS::Signal::DecouplingLine::mSrcCur1Ref

Definition at line 46 of file DecouplingLine.h.

◆ mSrcCur2

Attribute<Complex>::Ptr CPS::Signal::DecouplingLine::mSrcCur2
protected

Definition at line 32 of file DecouplingLine.h.

◆ mSrcCur2Ref

const Attribute<Complex>::Ptr CPS::Signal::DecouplingLine::mSrcCur2Ref

Definition at line 47 of file DecouplingLine.h.

◆ mStates

const Attribute<Matrix>::Ptr CPS::Signal::DecouplingLine::mStates

FIXME: workaround for dependency analysis as long as the states aren't attributes.

Definition at line 50 of file DecouplingLine.h.

◆ mSurgeImpedance

Real CPS::Signal::DecouplingLine::mSurgeImpedance
protected

Definition at line 27 of file DecouplingLine.h.

◆ mVolt1

std::vector<Complex> CPS::Signal::DecouplingLine::mVolt1
protected

Definition at line 36 of file DecouplingLine.h.

◆ mVolt2

std::vector<Complex> CPS::Signal::DecouplingLine::mVolt2
protected

Definition at line 36 of file DecouplingLine.h.


The documentation for this class was generated from the following files: