A simple PNP BJT model.
More...
#include <BJT.hpp>
|
void | addNonLinearStampTo (Stamp< T > &stamp, const Matrix< T > &solutionMatrix, const size_t currentSolutionIndex, T timestep=0) const |
| adds this component's non-linear 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...
|
|
virtual void | addStaticStampTo (Stamp< T > &destination) const |
| Adds this component's static 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 | 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 BJTP< T >
A simple PNP BJT model.
- Template Parameters
-
Definition at line 151 of file BJT.hpp.
◆ addDCAnalysisStampTo()
template<typename T >
void BJTP< 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 260 of file BJT.hpp.
◆ addNonLinearStampTo()
template<typename T >
void BJTP< T >::addNonLinearStampTo |
( |
Stamp< T > & |
destination, |
|
|
const Matrix< T > & |
solutionMatrix, |
|
|
const size_t |
currentSolutionIndex, |
|
|
T |
timestep = 0 |
|
) |
| const |
|
inlinevirtual |
adds this component's non-linear 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 170 of file BJT.hpp.
◆ addToElements()
template<typename T >
static void BJTP< T >::addToElements |
( |
const std::string & |
line, |
|
|
CircuitElements< T > & |
elements, |
|
|
size_t & |
numNodes, |
|
|
size_t & |
numCurrents, |
|
|
size_t & |
numDCCurrents |
|
) |
| |
|
inlinestatic |
◆ updateStoredState()
template<typename T >
void BJTP< 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 255 of file BJT.hpp.
◆ alpha_f
template<typename T >
T BJTP< T >::alpha_f = 0.99 |
◆ alpha_r
template<typename T >
T BJTP< T >::alpha_r = 0.02 |
◆ I_cs
template<typename T >
const T BJTP< T >::I_cs = 99e-14 |
◆ I_es
template<typename T >
const T BJTP< T >::I_es = 2e-14 |
◆ V_bc_crit
◆ V_be_crit
◆ V_Tc
template<typename T >
const T BJTP< T >::V_Tc = 26e-3 |
◆ V_Te
template<typename T >
const T BJTP< T >::V_Te = 26e-3 |
The documentation for this struct was generated from the following file:
- D:/dslog/Documents/JUK1/C++/src/includes/CircuitElements/BJT.hpp