46 #ifndef Xyce_N_DEV_Synapse4_h
47 #define Xyce_N_DEV_Synapse4_h
70 static const char *
name() {
return "Synapse";}
126 void registerLIDs(
const std::vector<int> & intLIDVecRef,
127 const std::vector<int> & extLIDVecRef );
140 const std::vector< std::vector<int> > &
jacobianStamp()
const;
141 void registerJacLIDs(
const std::vector< std::vector<int> > & jacLIDVec );
187 #ifdef Xyce_FullSynapseJac
189 int APostEquPostNodeOffset;
192 double *f_PostEquPostNodePtr;
291 virtual bool updateState (
double * solVec,
double * staVec,
double * stoVec);
295 virtual bool loadDAEVectors(
double * solVec,
double * fVec,
double * qVec,
double * bVec,
double * storeLeadF,
double * storeLeadQ,
double * leadF,
double * leadQ,
double * junctionV);
296 virtual bool loadDAEMatrices (Linear::Matrix & dFdx, Linear::Matrix & dQdx);
void registerJacLIDs(const std::vector< std::vector< int > > &jacLIDVec)
bool updateTemperature(const double &temp_tmp)
virtual bool updateState(double *solVec, double *staVec, double *stoVec)
Updates the devices state information.
static std::vector< std::vector< int > > jacStamp
static void loadModelParameters(ParametricData< Model > &model_parameters)
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.
Pure virtual class to augment a linear system.
bool updateIntermediateVars()
static void loadInstanceParameters(ParametricData< Instance > &instance_parameters)
void registerLIDs(const std::vector< int > &intLIDVecRef, const std::vector< int > &extLIDVecRef)
Master(const Configuration &configuration, const FactoryBlock &factory_block, const SolverState &ss1, const DeviceOptions &do1)
void addInstance(Instance *instance)
virtual void forEachInstance(DeviceInstanceOp &op) const
Apply a device instance "op" to all instances associated with this model.
static bool isLinearDevice()
DeviceMaster instantiates a device as described by the device traits T.
The FactoryBlock contains parameters needed by the device, instance and model creation functions...
void registerStoreLIDs(const std::vector< int > &stoLIDVecRef)
virtual bool updateSecondaryState(double *staDeriv, double *stoVec)
Updates the devices secondary state information.
void loadNodeSymbols(Util::SymbolTable &symbol_table) const
Populates and returns the store name map.
bool processParams()
processParams
bool updateSecondaryState()
The Device class is an interface for device implementations.
static const char * name()
bool processInstanceParams()
processInstanceParams
Class Configuration contains device configuration data.
std::vector< Instance * > instanceContainer
Instance & operator=(const Instance &)
Instance(const Configuration &configuration, const InstanceBlock &IB, Model &Riter, const FactoryBlock &factory_block)
virtual std::ostream & printOutInstances(std::ostream &os) const
static Device * factory(const Configuration &configuration, const FactoryBlock &factory_block)
virtual bool loadDAEMatrices(Linear::Matrix &dFdx, Linear::Matrix &dQdx)
Populates the device's Jacobian object with these pointers.
std::vector< Instance * > InstanceVector
const std::vector< std::vector< int > > & jacobianStamp() const
ModelBlock represents a .MODEL line from the netlist.
Model & operator=(const Model &)
The DeviceTraits template describes the configuration of a device.
Manages parameter binding for class C.
InstanceBlock represent a device instance line from the netlist.
bool updatePrimaryState()
static const char * deviceTypeName()