A time series voltage source model.
More...
#include <TimeSeriesVoltageSource.hpp>
|
T | lerp (size_t lowIndex, T timeVal) const |
|
void | addDynamicStampTo (Stamp< T > &stamp, const Matrix< T > &solutionMatrix, const size_t currentSolutionIndex, T timestep) const |
| Adds this component's dynamic stamp to the target stamp. More...
|
|
void | updateStoredState (const Matrix< T > &solutionMatrix, const size_t currentSolutionIndex, T timestep, size_t sizeG_A) |
| Updates any stored state based on the current solution index. 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...
|
|
void | readInTimeSeries (T timescale, const std::string &seriesPath) |
|
virtual void | addStaticStampTo (Stamp< T > &destination) const |
| Adds this component's static 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 | 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 TimeSeriesVoltageSource< T >
A time series voltage source model.
- Template Parameters
-
Definition at line 11 of file TimeSeriesVoltageSource.hpp.
◆ addDCAnalysisStampTo()
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 67 of file TimeSeriesVoltageSource.hpp.
◆ addDynamicStampTo()
template<typename T >
void TimeSeriesVoltageSource< T >::addDynamicStampTo |
( |
Stamp< T > & |
destination, |
|
|
const Matrix< T > & |
solutionMatrix, |
|
|
const size_t |
currentSolutionIndex, |
|
|
T |
timestep |
|
) |
| const |
|
inlinevirtual |
Adds this component's dynamic stamp to the target stamp.
- Parameters
-
destination | The stamp to be added to. |
solutionMatrix | A vector containing all past solutions to the circuit |
currentSolutionIndex | The current timeStep index |
timestep | The length of each time step |
Reimplemented from Component< T >.
Definition at line 29 of file TimeSeriesVoltageSource.hpp.
◆ addToElements()
◆ lerp()
◆ readInTimeSeries()
◆ updateStoredState()
template<typename T >
void TimeSeriesVoltageSource< T >::updateStoredState |
( |
const Matrix< T > & |
solutionMatrix, |
|
|
const size_t |
currentSolutionIndex, |
|
|
T |
timestep, |
|
|
size_t |
numCurrents |
|
) |
| |
|
inlinevirtual |
Updates any stored state based on the current solution index.
- Parameters
-
solutionMatrix | A vector containing all past solutions to the circuit |
currentSolutionIndex | The current timeStep index |
timestep | The length of each time step |
sizeG_A | the size of the A portion of G, marks the end of the equiv currents |
Reimplemented from Component< T >.
Definition at line 55 of file TimeSeriesVoltageSource.hpp.
◆ currentIndex
◆ dataSeries
◆ lastTimeSeriesIndex
◆ n1
◆ n2
◆ timeSeries
The documentation for this struct was generated from the following file: