An ideal voltageSource.
More...
#include <VoltageSource.hpp>
|
| void | addStaticStampTo (Stamp< T > &stamp) const |
| | Adds this component's static stamp to the target stamp. More...
|
| |
| void | addDCAnalysisStampTo (Stamp< T > &stamp, const Matrix< T > &solutionVector, size_t numCurrents) const |
| | adds this component's DC stamp to the target stamp. More...
|
| |
| virtual void | addDynamicStampTo (Stamp< T > &destination, const Matrix< T > &solutionMatrix, const size_t currentSolutionIndex, T timestep) const |
| | Adds this component's dynamic stamp to the target stamp. More...
|
| |
| virtual void | addNonLinearStampTo (Stamp< T > &destination, const Matrix< T > &solutionMatrix, const size_t currentSolutionIndex, T timestep=0) const |
| | adds this component's non-linear stamp to the target stamp. More...
|
| |
| virtual void | updateStoredState (const Matrix< T > &solutionMatrix, const size_t currentSolutionIndex, T timestep, size_t numCurrents) |
| | Updates any stored state based on the current solution index. More...
|
| |
| virtual void | updateDCStoredState (const Matrix< T > &solutionVector, size_t sizeG_A, size_t numCurrents) |
| | a function to update the stored state of a component based on a DC value More...
|
| |
| virtual void | setTimestep (T timestep) |
| | initialises the component More...
|
| |
| virtual | ~Component () |
| |
template<typename T>
struct VoltageSource< T >
An ideal voltageSource.
- Template Parameters
-
Definition at line 10 of file VoltageSource.hpp.
◆ addDCAnalysisStampTo()
template<typename T >
| void VoltageSource< T >::addDCAnalysisStampTo |
( |
Stamp< T > & |
destination, |
|
|
const Matrix< T > & |
solutionVector, |
|
|
size_t |
numCurrents |
|
) |
| const |
|
inlinevirtual |
adds this component's DC stamp to the target stamp.
- Parameters
-
| destination | The stamp to be added to. |
| solutionMatrix | A vector containing all past solutions to the circuit |
| numCurrents | The number of currents used by the transient simulation |
Reimplemented from Component< T >.
Definition at line 36 of file VoltageSource.hpp.
◆ addStaticStampTo()
Adds this component's static stamp to the target stamp.
- Parameters
-
| destination | The stamp to be added to. |
Reimplemented from Component< T >.
Definition at line 18 of file VoltageSource.hpp.
◆ addToElements()
template<typename T >
| static void VoltageSource< T >::addToElements |
( |
const std::string & |
line, |
|
|
CircuitElements< T > & |
elements, |
|
|
size_t & |
numNodes, |
|
|
size_t & |
numCurrents, |
|
|
size_t & |
numDCCurrents |
|
) |
| |
|
inlinestatic |
◆ currentIndex
◆ n1
◆ n2
◆ value
The documentation for this struct was generated from the following file: