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 &instance_block, Model &model, 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 ()
 
int getLIPos () const
 
int getLINeg () const
 
- Public Member Functions inherited from Xyce::Device::DeviceInstance
 DeviceInstance (const InstanceBlock &instance_block, ParametricData< void > &parametric_data, const FactoryBlock &factory_block)
 
virtual ~DeviceInstance ()
 
virtual std::ostream & printName (std::ostream &os) const
 
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 getInstanceBreakPoints (std::vector< Util::BreakPoint > &breakPointTimes)
 
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 ()
 
virtual bool loadDAEBVector ()
 
const InstanceNamegetName () const
 
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 ()
 
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 ()
 
const ExternDatagetExternData () const
 
- Public Member Functions inherited from Xyce::Device::DeviceEntity
 DeviceEntity (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 () const
 
bool scaleParam (const std::string &paramName, double val, double val0)
 
bool scaleParam (const std::string &paramName, double val)
 
bool scaleDefaultParam (double val)
 
bool analyticSensitivityAvailable (const std::string &paramName)
 
bool getAnalyticSensitivity (const std::string &paramName, 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 &paramName, double val)
 
bool getParam (const std::string &paramName, double &result) const
 
bool getParamBreakpoints (std::vector< Util::BreakPoint > &)
 
bool updateDependentParameters (N_LAS_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 > &params)
 
bool given (const std::string &parameter_name) const
 
void setDefaultParamName (const std::string &default_param_name)
 
const std::vector< Depend > & getDependentParams ()
 
void addDependentParameter (const Depend &param)
 
const DeviceOptionsgetDeviceOptions () const
 
const SolverStategetSolverState () const
 
const NetlistLocation & netlistLocation () const
 
const ParameterMapgetParameterMap () const
 
- Public Member Functions inherited from Xyce::Device::ParameterBase
 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 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
 
class DeviceInstanceOp
 

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 instance_block,
Model model,
const FactoryBlock factory_block 
)

Definition at line 134 of file N_DEV_ADC.C.

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

Definition at line 200 of file N_DEV_ADC.C.

Member Function Documentation

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

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 566 of file N_DEV_ADC.C.

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

Definition at line 446 of file N_DEV_ADC.C.

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

Definition at line 632 of file N_DEV_ADC.C.

int Xyce::Device::ADC::Instance::getLINeg ( ) const
inline

Definition at line 153 of file N_DEV_ADC.h.

int Xyce::Device::ADC::Instance::getLIPos ( ) const
inline

Definition at line 149 of file N_DEV_ADC.h.

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

Definition at line 133 of file N_DEV_ADC.h.

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

Definition at line 278 of file N_DEV_ADC.h.

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

Definition at line 344 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 268 of file N_DEV_ADC.C.

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

Implements Xyce::Device::DeviceInstance.

Definition at line 413 of file N_DEV_ADC.C.

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

Implements Xyce::Device::DeviceInstance.

Definition at line 146 of file N_DEV_ADC.h.

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

Implements Xyce::Device::DeviceInstance.

Definition at line 386 of file N_DEV_ADC.C.

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

Implements Xyce::Device::DeviceInstance.

Definition at line 143 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 281 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 212 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 255 of file N_DEV_ADC.C.

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

Definition at line 651 of file N_DEV_ADC.C.

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

Definition at line 364 of file N_DEV_ADC.C.

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

Implements Xyce::Device::DeviceInstance.

Definition at line 297 of file N_DEV_ADC.C.

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

Implements Xyce::Device::DeviceInstance.

Definition at line 317 of file N_DEV_ADC.C.

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

Reimplemented from Xyce::Device::DeviceInstance.

Definition at line 330 of file N_DEV_ADC.C.

Friends And Related Function Documentation

friend class DeviceInstanceOp
friend

Definition at line 95 of file N_DEV_ADC.h.

friend class Master
friend

Definition at line 94 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 184 of file N_DEV_ADC.h.

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

Definition at line 183 of file N_DEV_ADC.h.

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

Definition at line 182 of file N_DEV_ADC.h.

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

Definition at line 181 of file N_DEV_ADC.h.

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

Definition at line 164 of file N_DEV_ADC.h.

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

Definition at line 165 of file N_DEV_ADC.h.

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

Definition at line 158 of file N_DEV_ADC.h.

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

Definition at line 172 of file N_DEV_ADC.h.

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

Definition at line 178 of file N_DEV_ADC.h.

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

Definition at line 177 of file N_DEV_ADC.h.

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

Definition at line 139 of file N_DEV_ADC.h.

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

Definition at line 171 of file N_DEV_ADC.h.

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

Definition at line 170 of file N_DEV_ADC.h.

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

Definition at line 161 of file N_DEV_ADC.h.

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

Definition at line 169 of file N_DEV_ADC.h.

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

Definition at line 166 of file N_DEV_ADC.h.

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

Definition at line 166 of file N_DEV_ADC.h.


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