Xyce  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Xyce::Device::ADC::Instance Class Reference

#include <N_DEV_ADC.h>

Inheritance diagram for Xyce::Device::ADC::Instance:
Collaboration diagram for Xyce::Device::ADC::Instance:

Public Member Functions

 Instance (const Configuration &configuration, const InstanceBlock &IB, Model &ADCiter, const FactoryBlock &factory_block)
 
 Instance (const Instance &right)
 
 ~Instance ()
 
void registerLIDs (const std::vector< int > &intLIDVecRef, const std::vector< int > &extLIDVecRef)
 
void registerStateLIDs (const std::vector< int > &staLIDVecRef)
 
const std::vector< std::vector
< int > > & 
jacobianStamp () const
 
void registerJacLIDs (const std::vector< std::vector< int > > &jacLIDVec)
 
bool processParams ()
 
bool updateIntermediateVars ()
 
bool updatePrimaryState ()
 
bool updateSecondaryState ()
 
void getTVVEC (std::vector< std::pair< double, double > > &TVVVEC_Out)
 
void trimTVVEC (double earliestTime)
 
bool getInstanceBreakPoints (std::vector< N_UTL_BreakPoint > &breakPointTimes)
 
void acceptStep ()
 
bool getInstanceParamsMap (std::map< std::string, double > &paramsMap)
 
int getNumberQuantLevels ()
 
bool setBitVectorWidth (int width)
 
ModelgetModel ()
 
bool loadDAEQVector ()
 
bool loadDAEFVector ()
 
bool loadDAEdQdx ()
 
bool loadDAEdFdx ()
 
- Public Member Functions inherited from Xyce::Device::DeviceInstance
 DeviceInstance (const InstanceBlock &instance_block, ParametricData< void > &parametric_data, const FactoryBlock &factory_block)
 
virtual ~DeviceInstance ()
 
virtual void enableLeadCurrentCalc ()
 
virtual void registerGIDs (const std::list< index_pair > &intGIDListRef, const std::list< index_pair > &extGIDListRef)
 
virtual void registerStateGIDs (const std::list< index_pair > &staGIDListRef)
 
virtual void registerStoreGIDs (const std::list< index_pair > &stoGIDListRef)
 
virtual void registerStoreLIDs (const std::vector< int > &stoLIDVecRef)
 
virtual const std::vector
< std::string > & 
getDepSolnVars ()
 
virtual void registerDepSolnGIDs (const std::vector< std::vector< int > > &varList)
 
virtual const std::vector
< std::string > & 
getDepStateVars ()
 
virtual void registerDepStateGIDs (const std::vector< std::vector< int > > &varList)
 
virtual const std::vector
< std::string > & 
getDepStoreVars ()
 
virtual void registerDepStoreGIDs (const std::vector< std::vector< int > > &varList)
 
virtual void registerDepSolnLIDs (const std::vector< std::vector< int > > &depSolnLIDVecRef)
 
virtual void registerDepStateLIDs (const std::vector< std::vector< int > > &depStaLIDVecRef)
 
virtual void registerDepStoreLIDs (const std::vector< std::vector< int > > &depStoLIDVecRef)
 
virtual void registerGIDData (const std::vector< int > &counts, const std::vector< int > &GIDs, const std::vector< std::vector< int > > &jacGIDs)
 
virtual void setupPointers ()
 
virtual void getDepSolnGIDVec (std::vector< int > &depGIDVec)
 
virtual bool getIndexPairList (std::list< index_pair > &iplRef)
 
virtual bool updateSource ()
 
virtual bool processInstanceParams ()
 
virtual bool updateTemperature (const double &temp_tmp)
 
virtual bool isConverged ()
 
virtual bool testDAEMatrices (std::vector< std::string > &nameVec)
 
virtual bool loadTrivialDAE_FMatrixStamp ()
 
bool trivialStampLoader (N_LAS_Matrix *matPtr)
 
bool zeroMatrixDiagonal (N_LAS_Matrix *matPtr)
 
virtual bool setIC ()
 
virtual bool plotfileFlag ()
 
virtual bool loadDeviceMask ()
 
int getNumIntVars () const
 
int getNumExtVars () const
 
int getNumStateVars () const
 
int getNumStoreVars () const
 
void setNumStoreVars (int num_store_vars)
 
virtual void getDevConMap (std::vector< int > &)
 
virtual DeviceStategetInternalState ()
 
virtual bool setInternalState (const DeviceState &state)
 
virtual bool loadDFDV (int iElectrode, N_LAS_Vector *dfdvPtr)
 
virtual bool calcConductance (int iElectrode, const N_LAS_Vector *dxdvPtr)
 
virtual std::map< int,
std::string > & 
getIntNameMap ()
 
virtual std::map< int,
std::string > & 
getStateNameMap ()
 
virtual std::map< int,
std::string > & 
getStoreNameMap ()
 
void spiceInternalName (std::string &tmpname)
 
virtual bool outputPlotFiles ()
 
virtual bool enablePDEContinuation ()
 
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 std::vector< int > & getDevLIDs () const
 
const std::vector< std::vector
< int > > & 
getDevJacLIDs () const
 
const std::vector< int > & getStaLIDVec () const
 
bool getMergeRowColChecked () const
 
void setMergeRowColChecked (bool mergeRowColChecked_local)
 
const MatrixLoadDatagetMatrixLoadData () const
 
MatrixLoadDatagetMatrixLoadData ()
 
- Public Member Functions inherited from Xyce::Device::DeviceEntity
 DeviceEntity (const char *const entity_type, const std::string &device_name, ParametricData< void > &parametric_data, const SolverState &solver_state, const DeviceOptions &device_options, const std::string &netlist_path, int netlist_line)
 
virtual ~DeviceEntity ()
 
virtual CompositeParamconstructComposite (const std::string &composite_name, const std::string &param_name)
 
bool setDefaultParam (double val)
 
double getDefaultParam ()
 
bool scaleParam (const std::string &paramName, double val, double val0)
 
bool scaleParam (const std::string &paramName, double val)
 
bool scaleDefaultParam (double val)
 
bool setParam (const std::string &paramName, double val)
 
bool getParam (const std::string &paramName, double &result)
 
bool getParamBreakpoints (std::vector< Util::BreakPoint > &)
 
bool updateDependentParameters (N_LAS_Vector &vars)
 
bool updateDependentParameters (double temp_tmp)
 
bool updateGlobalParameters (std::map< std::string, double > &)
 
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 > &params)
 
bool given (const std::string &parameter_name) const
 
const char * getEntityType () const
 
const std::string & getName () const
 
void setDefaultParamName (const std::string &default_param_name)
 
const std::vector< Depend > & getDependentParams ()
 
const DeviceOptionsgetDeviceOptions () const
 
const SolverStategetSolverState () const
 
const NetlistLocation & netlistLocation () const
 
const ParameterMapgetParameterMap () const
 
- Public Member Functions inherited from Xyce::Device::ParameterBase
 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 Attributes

Modelmodel_
 
double R
 
double G
 
double i0
 
double v_pos
 
double v_neg
 
std::vector< std::pair< double,
double > > 
TVVEC
 
int outputBitVectorWidth_
 
int nQuantLevels_
 
int lastOutputLevel_
 
int li_Pos
 
int li_Neg
 
int APosEquPosNodeOffset
 
int APosEquNegNodeOffset
 
int ANegEquPosNodeOffset
 
int ANegEquNegNodeOffset
 

Static Private Attributes

static std::vector
< std::vector< int > > 
jacStamp
 

Friends

class ParametricData< Instance >
 
class Model
 
class Traits
 
class Master
 

Additional Inherited Members

- Public Attributes inherited from Xyce::Device::DeviceInstance
std::vector< int > & cols
 
std::vector< double > & vals
 
NumericalJacobiannumJacPtr
 
bool psLoaded
 
bool ssLoaded
 
bool rhsLoaded
 
bool origFlag
 
int numIntVars
 
int numExtVars
 
int numStateVars
 
int numStoreVars
 
int numLeadCurrentStoreVars
 
bool loadLeadCurrent
 
std::vector< int > devConMap
 
bool mergeRowColChecked
 
- Protected Member Functions inherited from Xyce::Device::DeviceInstance
void jacStampMap (std::vector< std::vector< int > > &stamp_parent, std::vector< int > &map_parent, std::vector< std::vector< int > > &map2_parent, std::vector< std::vector< int > > &stamp, std::vector< int > &map, std::vector< std::vector< int > > &map2, int from, int to, int original_size)
 
void jacStampMap_fixOrder (std::vector< std::vector< int > > &stamp_parent, std::vector< std::vector< int > > &map2_parent, std::vector< std::vector< int > > &stamp, std::vector< std::vector< int > > &map2)
 
void outputJacStamp (const std::vector< std::vector< int > > &jac)
 
void outputJacMaps (const std::vector< int > &jacMap, const std::vector< std::vector< int > > &jacMap2)
 
- Protected Attributes inherited from Xyce::Device::DeviceInstance
const ExternDataextData
 
std::list< index_pair > intGIDList
 
std::list< index_pair > extGIDList
 
std::list< index_pair > indexPairList
 
std::list< index_pair > staGIDList
 
std::vector< int > intLIDVec
 
std::vector< int > extLIDVec
 
std::vector< int > staLIDVec
 
std::vector< int > stoLIDVec
 
std::vector< int > devLIDs
 
std::vector< std::vector< int > > devJacLIDs
 
std::map< int, std::string > intNameMap
 
std::map< int, std::string > stateNameMap
 
std::map< int, std::string > storeNameMap
 
DeviceSupport devSupport
 

Detailed Description

Definition at line 89 of file N_DEV_ADC.h.

Constructor & Destructor Documentation

Xyce::Device::ADC::Instance::Instance ( const Configuration configuration,
const InstanceBlock IB,
Model ADCiter,
const FactoryBlock factory_block 
)

Definition at line 135 of file N_DEV_ADC.C.

Xyce::Device::ADC::Instance::Instance ( const Instance right)
Xyce::Device::ADC::Instance::~Instance ( )

Definition at line 201 of file N_DEV_ADC.C.

Member Function Documentation

void Xyce::Device::ADC::Instance::acceptStep ( )
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 567 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::getInstanceBreakPoints ( std::vector< N_UTL_BreakPoint > &  breakPointTimes)
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 447 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::getInstanceParamsMap ( std::map< std::string, double > &  paramsMap)

Definition at line 633 of file N_DEV_ADC.C.

Model& Xyce::Device::ADC::Instance::getModel ( )
inline

Definition at line 132 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::getNumberQuantLevels ( )
inline

Definition at line 285 of file N_DEV_ADC.h.

void Xyce::Device::ADC::Instance::getTVVEC ( std::vector< std::pair< double, double > > &  TVVVEC_Out)

Definition at line 345 of file N_DEV_ADC.C.

const std::vector< std::vector< int > > & Xyce::Device::ADC::Instance::jacobianStamp ( ) const
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 269 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::loadDAEdFdx ( )
virtual

Implements Xyce::Device::DeviceInstance.

Definition at line 414 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::loadDAEdQdx ( )
inlinevirtual

Implements Xyce::Device::DeviceInstance.

Definition at line 145 of file N_DEV_ADC.h.

bool Xyce::Device::ADC::Instance::loadDAEFVector ( )
virtual

Implements Xyce::Device::DeviceInstance.

Definition at line 387 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::loadDAEQVector ( )
inlinevirtual

Implements Xyce::Device::DeviceInstance.

Definition at line 142 of file N_DEV_ADC.h.

bool Xyce::Device::ADC::Instance::processParams ( )
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 121 of file N_DEV_ADC.C.

void Xyce::Device::ADC::Instance::registerJacLIDs ( const std::vector< std::vector< int > > &  jacLIDVec)
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 282 of file N_DEV_ADC.C.

void Xyce::Device::ADC::Instance::registerLIDs ( const std::vector< int > &  intLIDVecRef,
const std::vector< int > &  extLIDVecRef 
)
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 213 of file N_DEV_ADC.C.

void Xyce::Device::ADC::Instance::registerStateLIDs ( const std::vector< int > &  staLIDVecRef)
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 256 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::setBitVectorWidth ( int  width)

Definition at line 652 of file N_DEV_ADC.C.

void Xyce::Device::ADC::Instance::trimTVVEC ( double  earliestTime)

Definition at line 365 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::updateIntermediateVars ( )
virtual

Implements Xyce::Device::DeviceInstance.

Definition at line 298 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::updatePrimaryState ( )
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 318 of file N_DEV_ADC.C.

bool Xyce::Device::ADC::Instance::updateSecondaryState ( )
virtual

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 331 of file N_DEV_ADC.C.

Friends And Related Function Documentation

friend class Master
friend

Definition at line 93 of file N_DEV_ADC.h.

friend class Model
friend

Definition at line 92 of file N_DEV_ADC.h.

friend class ParametricData< Instance >
friend

Definition at line 91 of file N_DEV_ADC.h.

friend class Traits
friend

Definition at line 93 of file N_DEV_ADC.h.

Member Data Documentation

int Xyce::Device::ADC::Instance::ANegEquNegNodeOffset
private

Definition at line 178 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::ANegEquPosNodeOffset
private

Definition at line 177 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::APosEquNegNodeOffset
private

Definition at line 176 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::APosEquPosNodeOffset
private

Definition at line 175 of file N_DEV_ADC.h.

double Xyce::Device::ADC::Instance::G
private

Definition at line 155 of file N_DEV_ADC.h.

double Xyce::Device::ADC::Instance::i0
private

Definition at line 156 of file N_DEV_ADC.h.

std::vector< std::vector< int > > Xyce::Device::ADC::Instance::jacStamp
staticprivate

Definition at line 149 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::lastOutputLevel_
private

Definition at line 165 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::li_Neg
private

Definition at line 172 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::li_Pos
private

Definition at line 171 of file N_DEV_ADC.h.

Model& Xyce::Device::ADC::Instance::model_
private

Definition at line 138 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::nQuantLevels_
private

Definition at line 164 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::outputBitVectorWidth_
private

Definition at line 163 of file N_DEV_ADC.h.

double Xyce::Device::ADC::Instance::R
private

Definition at line 152 of file N_DEV_ADC.h.

std::vector< std::pair<double, double> > Xyce::Device::ADC::Instance::TVVEC
private

Definition at line 162 of file N_DEV_ADC.h.

double Xyce::Device::ADC::Instance::v_neg
private

Definition at line 157 of file N_DEV_ADC.h.

double Xyce::Device::ADC::Instance::v_pos
private

Definition at line 157 of file N_DEV_ADC.h.


The documentation for this class was generated from the following files: