DPsim
Loading...
Searching...
No Matches
CPS::Base::Ph3::Switch Class Reference

Common base for three-phase switches. More...

#include <Base_Ph3_Switch.h>

Inheritance diagram for CPS::Base::Ph3::Switch:
[legend]
Collaboration diagram for CPS::Base::Ph3::Switch:
[legend]

Public Member Functions

 Switch (CPS::AttributeList::Ptr attributeList)
 
virtual ~Switch ()=default
 
void setParameters (Matrix openResistance, Matrix closedResistance, Bool closed=false)
 
virtual void closeSwitch ()
 
virtual void openSwitch ()
 
Bool isClosed ()
 Check commanded/global state.
 

Public Attributes

const CPS::Attribute< Matrix >::Ptr mOpenResistance
 Resistance if switch is open [ohm].
 
const CPS::Attribute< Matrix >::Ptr mClosedResistance
 Resistance if switch is closed [ohm].
 
const CPS::Attribute< Bool >::Ptr mIsClosed
 Commanded/global switch state.
 

Protected Attributes

Bool mIsClosedPrev = false
 

Detailed Description

Common base for three-phase switches.

Definition at line 19 of file Base_Ph3_Switch.h.

Constructor & Destructor Documentation

◆ Switch()

CPS::Base::Ph3::Switch::Switch ( CPS::AttributeList::Ptr attributeList)
inlineexplicit

Definition at line 31 of file Base_Ph3_Switch.h.

◆ ~Switch()

virtual CPS::Base::Ph3::Switch::~Switch ( )
virtualdefault

Member Function Documentation

◆ closeSwitch()

virtual void CPS::Base::Ph3::Switch::closeSwitch ( )
inlinevirtual

Close command.

Virtual so domain-specific breaker models can distinguish commanded state from the physical pole state.

Reimplemented in CPS::DP::Ph3::Switch, and CPS::EMT::Ph3::Switch.

Definition at line 49 of file Base_Ph3_Switch.h.

◆ isClosed()

Bool CPS::Base::Ph3::Switch::isClosed ( )
inline

Check commanded/global state.

Definition at line 58 of file Base_Ph3_Switch.h.

◆ openSwitch()

virtual void CPS::Base::Ph3::Switch::openSwitch ( )
inlinevirtual

Open command.

Virtual so EMT/DP current-zero breakers can remain physically conducting after the command until the individual phase currents reach zero.

Reimplemented in CPS::DP::Ph3::Switch, and CPS::EMT::Ph3::Switch.

Definition at line 55 of file Base_Ph3_Switch.h.

◆ setParameters()

void CPS::Base::Ph3::Switch::setParameters ( Matrix openResistance,
Matrix closedResistance,
Bool closed = false )
inline

Definition at line 38 of file Base_Ph3_Switch.h.

Member Data Documentation

◆ mClosedResistance

const CPS::Attribute<Matrix>::Ptr CPS::Base::Ph3::Switch::mClosedResistance

Resistance if switch is closed [ohm].

Definition at line 27 of file Base_Ph3_Switch.h.

◆ mIsClosed

const CPS::Attribute<Bool>::Ptr CPS::Base::Ph3::Switch::mIsClosed

Commanded/global switch state.

Definition at line 29 of file Base_Ph3_Switch.h.

◆ mIsClosedPrev

Bool CPS::Base::Ph3::Switch::mIsClosedPrev = false
protected

Definition at line 21 of file Base_Ph3_Switch.h.

◆ mOpenResistance

const CPS::Attribute<Matrix>::Ptr CPS::Base::Ph3::Switch::mOpenResistance

Resistance if switch is open [ohm].

Definition at line 25 of file Base_Ph3_Switch.h.


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