A DTIR based model of an s-parameter block.
More...
#include <SParameterBlock.hpp>
|
T | aWaveConvValue (size_t portIndex, const Matrix< T > &solutionMatrix, const size_t n, T sTimePoint, const T simulationTimestep, size_t sizeG_A) const |
| performs a linear interpolation and returns the a wave value for use in the convolution. More...
|
|
T | V_p (size_t p, const Matrix< T > &solutionMatrix, const size_t n, T simulationTimestep, size_t sizeG_A) const |
| Determines the equivalent port voltage source by convolving the (historic) a wave values with the DTIR. More...
|
|
T | R_p (size_t p) const |
|
T | beta_p (size_t p) const |
|
void | addStaticStampTo (Stamp< T > &stamp) const |
| Adds this component's static stamp to the target stamp. More...
|
|
void | addDynamicStampTo (Stamp< T > &stamp, const Matrix< T > &solutionMatrix, const size_t currentSolutionIndex, T simulationTimestep) const |
| Adds this component's dynamic 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...
|
|
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 | readInTouchstoneFile () |
| reads in the s-parameter data from a touchstone file. Currently it ignores the units of frequency, and only works with real-imag formatting 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 SParameterBlock< T >
A DTIR based model of an s-parameter block.
- Template Parameters
-
Definition at line 87 of file SParameterBlock.hpp.
◆ addDCAnalysisStampTo()
template<typename T >
void SParameterBlock< 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 240 of file SParameterBlock.hpp.
◆ addDynamicStampTo()
template<typename T >
void SParameterBlock< 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 228 of file SParameterBlock.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 194 of file SParameterBlock.hpp.
◆ addToElements()
template<typename T >
static void SParameterBlock< T >::addToElements |
( |
const std::string & |
line, |
|
|
CircuitElements< T > & |
elements, |
|
|
size_t & |
numNodes, |
|
|
size_t & |
numCurrents, |
|
|
size_t & |
numDCCurrents |
|
) |
| |
|
inlinestatic |
◆ aWaveConvValue()
template<typename T >
T SParameterBlock< T >::aWaveConvValue |
( |
size_t |
portIndex, |
|
|
const Matrix< T > & |
solutionMatrix, |
|
|
const size_t |
n, |
|
|
T |
sTimePoint, |
|
|
const T |
simulationTimestep, |
|
|
size_t |
sizeG_A |
|
) |
| const |
|
inline |
performs a linear interpolation and returns the a wave value for use in the convolution.
- Parameters
-
portIndex | The port being processed |
solutionMatrix | The working solution vector |
n | The current time step |
sTimePoint | The time of DTIR |
simulationTimestep | The timestep of the simulation |
sizeG_A | The size of the voltage dependant portion of the stamp |
- Returns
- the value for use in the convolution
Definition at line 106 of file SParameterBlock.hpp.
◆ beta_p()
◆ R_p()
◆ readInTouchstoneFile()
reads in the s-parameter data from a touchstone file. Currently it ignores the units of frequency, and only works with real-imag formatting
Definition at line 308 of file SParameterBlock.hpp.
◆ updateStoredState()
template<typename T >
void SParameterBlock< 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 299 of file SParameterBlock.hpp.
◆ V_p()
template<typename T >
T SParameterBlock< T >::V_p |
( |
size_t |
p, |
|
|
const Matrix< T > & |
solutionMatrix, |
|
|
const size_t |
n, |
|
|
T |
simulationTimestep, |
|
|
size_t |
sizeG_A |
|
) |
| const |
|
inline |
Determines the equivalent port voltage source by convolving the (historic) a wave values with the DTIR.
- Parameters
-
p | The port index |
solutionMatrix | The solution vector of the circuit |
n | The current timestep |
simulationTimestep | the simulations timestep |
sizeG_A | the size of the voltage dependant part of the stamp |
- Returns
- Equivalent port voltage source voltage
Definition at line 166 of file SParameterBlock.hpp.
◆ fracMaxToKeep
◆ port
◆ touchstoneFilePath
◆ z_ref
The documentation for this struct was generated from the following file: