Xyce
6.1
|
#include <N_DEV_ISRC.h>
Public Member Functions | |
Instance (const Configuration &configuration, const InstanceBlock &instance_block, Model &model, const FactoryBlock &factory_block) | |
~Instance () | |
bool | isLinearDevice () const |
void | registerLIDs (const std::vector< int > &intLIDVecRef, const std::vector< int > &extLIDVecRef) |
void | registerStateLIDs (const std::vector< int > &staLIDVecRef) |
void | registerStoreLIDs (const std::vector< int > &stoLIDVecRef) |
void | registerBranchDataLIDs (const std::vector< int > &branchLIDVecRef) |
Register the local store IDs. More... | |
virtual void | loadNodeSymbols (Util::SymbolTable &symbol_table) const |
Populates and returns the store name map. More... | |
const std::vector< std::vector< int > > & | jacobianStamp () const |
bool | processParams () |
bool | updateIntermediateVars () |
bool | updatePrimaryState () |
bool | loadTrivialMatrixStamp () |
bool | loadTrivialDAE_FMatrixStamp () |
bool | loadDAEQVector () |
bool | loadDAEFVector () |
bool | loadDAEBVector () |
bool | loadDAEdQdx () |
bool | loadDAEdFdx () |
bool | loadBVectorsforAC (double *bVecReal, double *bVecImag) |
Model & | getModel () |
![]() | |
SourceInstance (const InstanceBlock &IB, ParametricData< void > ¶metric_data, const FactoryBlock &factory_block) | |
~SourceInstance () | |
void | setFastSourceFlag (bool value) |
bool | getFastSourceFlag () const |
bool | getResetFlag () const |
double | period () const |
virtual bool | getInstanceBreakPoints (std::vector< Util::BreakPoint > &breakPointTimes) |
virtual bool | updateSource () |
![]() | |
DeviceInstance (const InstanceBlock &instance_block, ParametricData< void > ¶metric_data, const FactoryBlock &factory_block) | |
virtual | ~DeviceInstance () |
virtual std::ostream & | printName (std::ostream &os) const |
virtual void | enableLeadCurrentCalc () |
virtual void | registerGIDs (const IndexPairVector &intGIDListRef, const IndexPairVector &extGIDListRef) |
virtual void | registerStateGIDs (const IndexPairVector &staGIDListRef) |
virtual void | registerStoreGIDs (const IndexPairVector &stoGIDListRef) |
virtual const std::vector< std::string > & | getDepSolnVars () |
virtual void | registerDepSolnGIDs (const std::vector< IdVector > &varList) |
virtual const std::vector< std::string > & | getDepStateVars () |
virtual void | registerDepStateGIDs (const std::vector< IdVector > &varList) |
virtual const std::vector< std::string > & | getDepStoreVars () |
virtual void | registerDepStoreGIDs (const std::vector< IdVector > &varList) |
virtual const std::vector< std::string > & | getDepLeadCurrentVars () |
virtual void | registerDepLeadCurrentGIDs (const std::vector< IdVector > &varList) |
virtual void | registerDepSolnLIDs (const std::vector< IdVector > &depSolnLIDVecRef) |
virtual void | registerDepStateLIDs (const std::vector< IdVector > &depStaLIDVecRef) |
virtual void | registerDepStoreLIDs (const std::vector< IdVector > &depStoLIDVecRef) |
virtual void | registerJacLIDs (const JacobianStamp &jacLIDVec) |
virtual void | registerGIDData (const std::vector< int > &counts, const IdVector &GIDs, const JacobianStamp &jacGIDs) |
virtual void | setupPointers () |
virtual const IdVector & | getDepSolnGIDVec () |
virtual const IndexPairVector & | getIndexPairList () |
virtual bool | processInstanceParams () |
virtual bool | updateTemperature (const double &temp_tmp) |
virtual bool | isConverged () |
virtual bool | testDAEMatrices (const std::vector< const std::string * > &nameVec) |
bool | trivialStampLoader (Linear::Matrix *matPtr) |
bool | zeroMatrixDiagonal (Linear::Matrix *matPtr) |
virtual bool | updateSecondaryState () |
virtual bool | setIC () |
virtual bool | plotfileFlag () |
virtual void | loadErrorWeightMask () |
virtual void | acceptStep () |
virtual int | getNumNoiseSources () const |
virtual void | setupNoiseSources (Xyce::Analysis::NoiseData &noiseDataVec) |
virtual void | getNoiseSources (Xyce::Analysis::NoiseData &noiseDataVec) |
const InstanceName & | getName () const |
int | getNumIntVars () const |
int | getNumExtVars () const |
int | getNumStateVars () const |
int | getNumStoreVars () const |
int | getNumBranchDataVars () const |
void | setNumStoreVars (int num_store_vars) |
void | setNumBranchDataVars (int num_branch_data_vars) |
virtual const std::vector< int > & | getDevConMap () |
virtual DeviceState * | getInternalState () |
virtual bool | setInternalState (const DeviceState &state) |
virtual bool | loadDFDV (int iElectrode, Linear::Vector *dfdvPtr) |
virtual bool | calcConductance (int iElectrode, const Linear::Vector *dxdvPtr) |
virtual bool | outputPlotFiles (bool force_final_output) |
virtual bool | enablePDEContinuation (int &max_PDE_continuation_steps) |
virtual bool | disablePDEContinuation () |
virtual void | setPDEContinuationAlpha (double alpha) |
virtual void | setPDEContinuationBeta (double beta) |
virtual bool | setInitialGuess () |
virtual double | getMaxTimeStepSize () |
virtual void | varTypes (std::vector< char > &varTypeVec) |
bool | getOrigFlag () const |
void | setOrigFlag (bool origFlag_local) |
const IdVector & | getDevLIDs () const |
const std::vector< IdVector > & | getDevJacLIDs () const |
const IdVector & | getStaLIDVec () const |
bool | getMergeRowColChecked () const |
void | setMergeRowColChecked (bool mergeRowColChecked_local) |
const MatrixLoadData & | getMatrixLoadData () const |
MatrixLoadData & | getMatrixLoadData () |
const ExternData & | getExternData () const |
![]() | |
DeviceEntity (ParametricData< void > ¶metric_data, const SolverState &solver_state, const DeviceOptions &device_options, const std::string &netlist_filename, int netlist_line) | |
virtual | ~DeviceEntity () |
virtual CompositeParam * | constructComposite (const std::string &composite_name, const std::string ¶m_name) |
bool | setDefaultParam (double val, bool overrideOriginal=false) |
double | getDefaultParam () const |
bool | scaleParam (const std::string ¶mName, double val, double val0) |
bool | scaleParam (const std::string ¶mName, double val) |
bool | scaleDefaultParam (double val) |
bool | analyticSensitivityAvailable (const std::string ¶mName) |
bool | analyticSensitivityAvailableDefaultParam () |
bool | getAnalyticSensitivity (const std::string ¶mName, std::vector< double > &dfdpVec, std::vector< double > &dqdpVec, std::vector< double > &dbdpVec, std::vector< int > &FindicesVec, std::vector< int > &QindicesVec, std::vector< int > &BindicesVec) |
bool | getAnalyticSensitivityDefaultParam (std::vector< double > &dfdpVec, std::vector< double > &dqdpVec, std::vector< double > &dbdpVec, std::vector< int > &FindicesVec, std::vector< int > &QindicesVec, std::vector< int > &BindicesVec) |
bool | setParam (const std::string ¶mName, double val, bool overrideOriginal=false) |
bool | getParam (const std::string ¶mName, double &result) const |
bool | findParam (const std::string ¶m_name) const |
bool | getParamBreakpoints (std::vector< Util::BreakPoint > &) |
bool | updateDependentParameters (const Linear::Vector &vars) |
bool | updateDependentParameters (double temp_tmp) |
bool | updateGlobalParameters (GlobalParameterMap &) |
bool | updateDependentParameters () |
double | setDependentParameter (Util::Param &, double *, ParameterType::ExprAccess) |
double | setDependentParameter (Util::Param &, std::vector< double > *, int, ParameterType::ExprAccess) |
void | setDependentParameter (Util::Param &par, Depend &dependentParam, ParameterType::ExprAccess depend) |
void | setDefaultParams () |
void | setParams (const std::vector< Param > ¶ms) |
bool | given (const std::string ¶meter_name) const |
void | setDefaultParamName (const std::string &default_param_name) |
const std::vector< Depend > & | getDependentParams () |
void | addDependentParameter (const Depend ¶m) |
const DeviceOptions & | getDeviceOptions () const |
const SolverState & | getSolverState () const |
const NetlistLocation & | netlistLocation () const |
const ParameterMap & | getParameterMap () const |
![]() | |
ParameterBase () | |
virtual | ~ParameterBase () |
double | getOriginalValue (int serial_number) |
void | setOriginalValue (int serial_number, double value) |
bool | wasValueGiven (int serial_number) const |
void | setValueGiven (int serial_number, bool value) |
Private Member Functions | |
Instance (const Instance &) | |
Instance & | operator= (const Instance &) |
Private Attributes | |
Model & | model_ |
int | li_Pos |
int | li_Neg |
int | li_store_dev_i |
int | li_branch_data |
Index for lead current and junction voltage (for power calculations) More... | |
bool | HBSpecified_ |
bool | ACSpecified_ |
double | DCV0 |
double | par0 |
double | par1 |
double | par2 |
double | par3 |
double | par4 |
double | par5 |
double | par6 |
double | par7 |
double | REPEATTIME |
double | T |
double | V |
int | NUM |
bool | REPEAT |
int | TRANSIENTSOURCETYPE |
bool | TRANSIENTSOURCETYPEgiven |
int | ACSOURCETYPE |
bool | ACSOURCETYPEgiven |
int | DCSOURCETYPE |
bool | DCSOURCETYPEgiven |
bool | gotParams |
double | ACMAG |
double | ACPHASE |
Static Private Attributes | |
static std::vector< std::vector< int > > | jacStamp |
Friends | |
class | ParametricData< Instance > |
class | Model |
class | Traits |
class | Master |
Additional Inherited Members | |
![]() | |
std::vector< int > & | cols |
std::vector< double > & | vals |
NumericalJacobian * | numJacPtr |
bool | psLoaded |
bool | ssLoaded |
bool | rhsLoaded |
bool | origFlag |
int | numIntVars |
int | numExtVars |
int | numStateVars |
int | numStoreVars |
int | numLeadCurrentVars |
int | numLeadCurrentStoreVars |
bool | loadLeadCurrent |
int | numBranchDataVars |
int | numBranchDataVarsIfAllocated |
std::vector< int > | devConMap |
bool | mergeRowColChecked |
![]() | |
void | jacStampMap (const JacobianStamp &stamp_parent, IdVector &map_parent, JacobianStamp &map2_parent, JacobianStamp &stamp, IdVector &map, JacobianStamp &map2, int from, int to, int original_size) |
void | jacStampMap_fixOrder (const JacobianStamp &stamp_parent, JacobianStamp &map2_parent, JacobianStamp &stamp, JacobianStamp &map2) |
void | outputJacStamp (const JacobianStamp &jac) |
void | outputJacMaps (const std::vector< int > &jacMap, const JacobianStamp &jacMap2) |
![]() | |
int | sourceType |
type of source data More... | |
SourceData * | tranSourceData_ |
SourceData * | acSourceData_ |
SourceData * | dcSourceData_ |
![]() | |
const ExternData & | extData |
IndexPairVector | indexPairList |
IndexPairVector | intGIDList |
IndexPairVector | extGIDList |
IndexPairVector | staGIDList |
IdVector | intLIDVec |
IdVector | extLIDVec |
IdVector | staLIDVec |
IdVector | stoLIDVec |
IdVector | devLIDs |
devLIDs is a combined LID vector, containing int, ext, and expVar ID's. More... | |
JacobianStamp | devJacLIDs |
DeviceSupport | devSupport |
![]() | |
std::vector< int > | expVarGIDs |
std::vector< int > | expVarLIDs |
std::vector< std::string > | expVarNames |
std::vector< double > | expVarVals |
std::vector< double > | eVarVals |
Definition at line 86 of file N_DEV_ISRC.h.
Xyce::Device::ISRC::Instance::Instance | ( | const Configuration & | configuration, |
const InstanceBlock & | instance_block, | ||
Model & | model, | ||
const FactoryBlock & | factory_block | ||
) |
Definition at line 207 of file N_DEV_ISRC.C.
Xyce::Device::ISRC::Instance::~Instance | ( | ) |
Definition at line 373 of file N_DEV_ISRC.C.
|
private |
|
inline |
Definition at line 145 of file N_DEV_ISRC.h.
|
inlinevirtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 108 of file N_DEV_ISRC.h.
|
virtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 512 of file N_DEV_ISRC.C.
|
virtual |
Reimplemented from Xyce::Device::SourceInstance.
Definition at line 529 of file N_DEV_ISRC.C.
|
virtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 590 of file N_DEV_ISRC.C.
|
inlinevirtual |
Implements Xyce::Device::DeviceInstance.
Definition at line 135 of file N_DEV_ISRC.h.
|
inlinevirtual |
Implements Xyce::Device::DeviceInstance.
Definition at line 134 of file N_DEV_ISRC.h.
|
virtual |
Implements Xyce::Device::DeviceInstance.
Definition at line 575 of file N_DEV_ISRC.C.
|
inlinevirtual |
Implements Xyce::Device::DeviceInstance.
Definition at line 129 of file N_DEV_ISRC.h.
|
virtual |
Populates and returns the store name map.
Implements Xyce::Device::DeviceInstance.
Definition at line 494 of file N_DEV_ISRC.C.
|
inlinevirtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 260 of file N_DEV_ISRC.h.
|
inline |
Definition at line 247 of file N_DEV_ISRC.h.
|
virtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 328 of file N_DEV_ISRC.C.
|
virtual |
Register the local store IDs.
In addition to state vector, Xyce maintains a separate datastructure called a "branch data" vector. As with other such vectors, the device declares at construction time how many branch vector entries it needs, and later Topology assigns locations for devices, returning LIDs.
These LIDs are stored in this method for later use.
The Resistor device uses exactly one "branch data vector" element, where
stoLIDVecRef | Store variable local IDs |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 476 of file N_DEV_ISRC.C.
|
virtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 389 of file N_DEV_ISRC.C.
|
virtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 429 of file N_DEV_ISRC.C.
|
virtual |
Reimplemented from Xyce::Device::DeviceInstance.
Definition at line 442 of file N_DEV_ISRC.C.
|
inlinevirtual |
Implements Xyce::Device::DeviceInstance.
Definition at line 122 of file N_DEV_ISRC.h.
|
virtual |
Implements Xyce::Device::DeviceInstance.
Definition at line 561 of file N_DEV_ISRC.C.
|
friend |
Definition at line 91 of file N_DEV_ISRC.h.
|
friend |
Definition at line 89 of file N_DEV_ISRC.h.
|
friend |
Definition at line 88 of file N_DEV_ISRC.h.
|
friend |
Definition at line 90 of file N_DEV_ISRC.h.
|
private |
Definition at line 189 of file N_DEV_ISRC.h.
|
private |
Definition at line 190 of file N_DEV_ISRC.h.
|
private |
Definition at line 183 of file N_DEV_ISRC.h.
|
private |
Definition at line 184 of file N_DEV_ISRC.h.
|
private |
Definition at line 164 of file N_DEV_ISRC.h.
|
private |
Definition at line 185 of file N_DEV_ISRC.h.
|
private |
Definition at line 186 of file N_DEV_ISRC.h.
|
private |
Definition at line 167 of file N_DEV_ISRC.h.
|
private |
Definition at line 187 of file N_DEV_ISRC.h.
|
private |
Definition at line 163 of file N_DEV_ISRC.h.
|
staticprivate |
Definition at line 151 of file N_DEV_ISRC.h.
|
private |
Index for lead current and junction voltage (for power calculations)
Definition at line 161 of file N_DEV_ISRC.h.
|
private |
Definition at line 157 of file N_DEV_ISRC.h.
|
private |
Definition at line 156 of file N_DEV_ISRC.h.
|
private |
Definition at line 160 of file N_DEV_ISRC.h.
|
private |
Definition at line 153 of file N_DEV_ISRC.h.
|
private |
Definition at line 179 of file N_DEV_ISRC.h.
|
private |
Definition at line 168 of file N_DEV_ISRC.h.
|
private |
Definition at line 169 of file N_DEV_ISRC.h.
|
private |
Definition at line 170 of file N_DEV_ISRC.h.
|
private |
Definition at line 171 of file N_DEV_ISRC.h.
|
private |
Definition at line 172 of file N_DEV_ISRC.h.
|
private |
Definition at line 173 of file N_DEV_ISRC.h.
|
private |
Definition at line 174 of file N_DEV_ISRC.h.
|
private |
Definition at line 175 of file N_DEV_ISRC.h.
|
private |
Definition at line 180 of file N_DEV_ISRC.h.
|
private |
Definition at line 176 of file N_DEV_ISRC.h.
|
private |
Definition at line 177 of file N_DEV_ISRC.h.
|
private |
Definition at line 181 of file N_DEV_ISRC.h.
|
private |
Definition at line 182 of file N_DEV_ISRC.h.
|
private |
Definition at line 178 of file N_DEV_ISRC.h.