46 #ifndef Xyce_N_DEV_ISRC_h
47 #define Xyce_N_DEV_ISRC_h
67 static const char *
name() {
return "Independent Current Source";}
107 void registerLIDs(
const std::vector<int> & intLIDVecRef,
108 const std::vector<int> & extLIDVecRef);
115 const std::vector< std::vector<int> > &
jacobianStamp()
const;
281 virtual bool updateState (
double * solVec,
double * staVec,
double * stoVec);
285 virtual bool loadDAEVectors (
double * solVec,
double * fVec,
double * qVec,
double * bVec,
double * storeLeadF,
double * storeLeadQ,
double * leadF,
double * leadQ,
double * junctionV);
288 virtual bool loadDAEMatrices (Linear::Matrix & dFdx, Linear::Matrix & dQdx);
static const char * instanceDefaultParameter()
virtual bool processParams()
processParams
virtual bool loadDAEMatrices(Linear::Matrix &dFdx, Linear::Matrix &dQdx)
Populates the device's Jacobian object with these pointers.
std::vector< Instance * > InstanceVector
void registerBranchDataLIDs(const std::vector< int > &branchLIDVecRef)
Register the local store IDs.
Pure virtual class to augment a linear system.
static void loadModelParameters(ParametricData< Model > &model_parameters)
Instance(const Configuration &configuration, const InstanceBlock &instance_block, Model &model, const FactoryBlock &factory_block)
bool updatePrimaryState()
Model & operator=(const Model &)
int li_branch_data
Index for lead current and junction voltage (for power calculations)
static const char * deviceTypeName()
static const char * primaryParameter()
void registerLIDs(const std::vector< int > &intLIDVecRef, const std::vector< int > &extLIDVecRef)
virtual bool updateState(double *solVec, double *staVec, double *stoVec)
Updates the devices state information.
bool loadTrivialDAE_FMatrixStamp()
bool TRANSIENTSOURCETYPEgiven
DeviceMaster instantiates a device as described by the device traits T.
void registerStateLIDs(const std::vector< int > &staLIDVecRef)
The FactoryBlock contains parameters needed by the device, instance and model creation functions...
Master(const Configuration &configuration, const FactoryBlock &factory_block, const SolverState &ss1, const DeviceOptions &do1)
bool loadBVectorsforAC(double *bVecReal, double *bVecImag)
static Device * factory(const Configuration &configuration, const FactoryBlock &factory_block)
virtual std::ostream & printOutInstances(std::ostream &os) const
static void loadInstanceParameters(ParametricData< Instance > &instance_parameters)
The Device class is an interface for device implementations.
static std::vector< std::vector< int > > jacStamp
Class Configuration contains device configuration data.
bool updateIntermediateVars()
std::vector< Instance * > instanceContainer
void registerStoreLIDs(const std::vector< int > &stoLIDVecRef)
virtual void forEachInstance(DeviceInstanceOp &op) const
Apply a device instance "op" to all instances associated with this model.
bool loadTrivialMatrixStamp()
virtual bool processInstanceParams()
processInstanceParams
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.
static bool isLinearDevice()
void addInstance(Instance *instance)
virtual void loadNodeSymbols(Util::SymbolTable &symbol_table) const
Populates and returns the store name map.
const std::vector< std::vector< int > > & jacobianStamp() const
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 const char * name()
Instance & operator=(const Instance &)