An ideal current source.
More...
#include <CurrentSource.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 CurrentSource< T >
An ideal current source.
- Template Parameters
-
Definition at line 10 of file CurrentSource.hpp.
◆ addDCAnalysisStampTo()
template<typename T >
void CurrentSource< 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 31 of file CurrentSource.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 17 of file CurrentSource.hpp.
◆ addToElements()
template<typename T >
static void CurrentSource< T >::addToElements |
( |
const std::string & |
line, |
|
|
CircuitElements< T > & |
elements, |
|
|
size_t & |
numNodes, |
|
|
size_t & |
numCurrents, |
|
|
size_t & |
numDCCurrents |
|
) |
| |
|
inlinestatic |
◆ n1
◆ n2
◆ value
The documentation for this struct was generated from the following file: