46 #ifndef Xyce_N_DEV_SW_h
47 #define Xyce_N_DEV_SW_h
65 static const char *
name() {
return "Controlled Switch";}
106 void registerLIDs(
const std::vector<int> & intLIDVecRef,
107 const std::vector<int> & extLIDVecRef );
117 const std::vector< std::vector<int> > &
jacobianStamp()
const;
118 void registerJacLIDs(
const std::vector< std::vector<int> > & jacLIDVec );
296 virtual bool updateState (
double * solVec,
double * staVec,
double * stoVec);
300 virtual bool loadDAEVectors (
double * solVec,
double * fVec,
double * qVec,
double * bVec,
double * storeLeadF,
double * storeLeadQ,
double * leadF,
double * leadQ,
double * junctionV);
303 virtual bool loadDAEMatrices (Linear::Matrix & dFdx, Linear::Matrix & dQdx);
static void loadModelParameters(ParametricData< Model > &model_parameters)
static Device * factory(const Configuration &configuration, const FactoryBlock &factory_block)
static void loadInstanceParameters(ParametricData< Instance > &instance_parameters)
virtual void forEachInstance(DeviceInstanceOp &op) const
Apply a device instance "op" to all instances associated with this model.
std::vector< Instance * > InstanceVector
virtual bool updateSecondaryState(double *staDeriv, double *stoVec)
Updates the devices secondary state information.
Instance & operator=(const Instance &)
Pure virtual class to augment a linear system.
virtual bool loadDAEVectors(double *solVec, double *fVec, double *qVec, double *bVec, double *storeLeadF, double *storeLeadQ, double *leadF, double *leadQ, double *junctionV)
Populates the device's ExternData object with these pointers.
bool updateSecondaryState()
void addInstance(Instance *instance)
std::vector< double > myVarVals
static const char * deviceTypeName()
static const char * name()
std::vector< int > APosEquControlNodeOffset
static bool modelRequired()
std::vector< double * > fPosEquControlNodePtr
DeviceMaster instantiates a device as described by the device traits T.
static int numOptionalNodes()
std::list< std::string > evnList
The FactoryBlock contains parameters needed by the device, instance and model creation functions...
void registerStateLIDs(const std::vector< int > &staLIDVecRef)
std::vector< double > ddtVals
std::vector< std::vector< int > > jacStamp
bool updatePrimaryState()
std::vector< Instance * > instanceContainer
virtual bool updateState(double *solVec, double *staVec, double *stoVec)
Updates the devices state information.
Instance(const Configuration &configuration, const InstanceBlock &IB, Model &SWiter, const FactoryBlock &factory_block)
double * fPosEquNegNodePtr
double * fNegEquNegNodePtr
std::vector< double > expVarDerivs
std::vector< int > li_ddt
The Device class is an interface for device implementations.
virtual bool loadDAEMatrices(Linear::Matrix &dFdx, Linear::Matrix &dQdx)
Populates the device's Jacobian object with these pointers.
void registerJacLIDs(const std::vector< std::vector< int > > &jacLIDVec)
Class Configuration contains device configuration data.
bool updateIntermediateVars()
Util::Expression * Exp_ptr
double * fPosEquPosNodePtr
std::vector< int > ANegEquControlNodeOffset
void registerStoreLIDs(const std::vector< int > &stoLIDVecRef)
virtual std::ostream & printOutInstances(std::ostream &os) const
Model & operator=(const Model &)
const std::vector< std::vector< int > > & jacobianStamp() const
void registerLIDs(const std::vector< int > &intLIDVecRef, const std::vector< int > &extLIDVecRef)
double * fNegEquPosNodePtr
virtual void loadNodeSymbols(Util::SymbolTable &symbol_table) const
Populates and returns the store name map.
std::vector< double * > fNegEquControlNodePtr
bool processParams()
processParams
ModelBlock represents a .MODEL line from the netlist.
The DeviceTraits template describes the configuration of a device.
Manages parameter binding for class C.
InstanceBlock represent a device instance line from the netlist.
static bool isLinearDevice()
const std::vector< std::string > & getDepSolnVars()
bool processInstanceParams()
processInstanceParams
Master(const Configuration &configuration, const FactoryBlock &factory_block, const SolverState &ss1, const DeviceOptions &do1)