46 #ifndef Xyce_N_DEV_Bsrc_h
47 #define Xyce_N_DEV_Bsrc_h
50 #include <N_UTL_fwd.h>
69 static const char *
name() {
return "Expression Based Voltage or Current Source";}
107 void registerLIDs(
const std::vector<int> & intLIDVecRef,
108 const std::vector<int> & extLIDVecRef );
117 const std::vector< std::vector<int> > &
jacobianStamp()
const;
118 void registerJacLIDs(
const std::vector< std::vector<int> > & jacLIDVec );
137 void varTypes( std::vector<char> & varTypeVec );
313 virtual bool updateState (
double * solVec,
double * staVec,
double * stoVec);
317 virtual bool loadDAEVectors (
double * solVec,
double * fVec,
double * qVec,
double * bVec,
double * storeLeadF,
double * storeLeadQ,
double * leadF,
double * leadQ,
double * junctionV);
320 virtual bool loadDAEMatrices (Linear::Matrix & dFdx, Linear::Matrix & dQdx);
std::vector< int > APosEquExpVarOffsets
static const char * deviceTypeName()
void registerLIDs(const std::vector< int > &intLIDVecRef, const std::vector< int > &extLIDVecRef)
std::vector< int > ABraEquExpVarOffsets
Pure virtual class to augment a linear system.
static bool isLinearDevice()
void loadNodeSymbols(Util::SymbolTable &symbol_table) const
Populates and returns the store name map.
std::vector< Instance * > instanceContainer
virtual bool updateSecondaryState(double *staDeriv, double *stoVec)
Updates the devices secondary state information.
bool updateSecondaryState()
std::vector< double > expVarDerivs
static void loadModelParameters(ParametricData< Model > &model_parameters)
void registerJacLIDs(const std::vector< std::vector< int > > &jacLIDVec)
double * fPosEquBraVarPtr
virtual bool processInstanceParams()
processInstanceParams
const std::vector< std::string > & getDepSolnVars()
static const char * name()
static Device * factory(const Configuration &configuration, const FactoryBlock &factory_block)
std::vector< double > ddtVals
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.
std::vector< int > ANegEquExpVarOffsets
void registerBranchDataLIDs(const std::vector< int > &branchLIDVecRef)
Register the local store IDs.
DeviceMaster instantiates a device as described by the device traits T.
double * fBraEquNegNodePtr
double * fBraEquPosNodePtr
std::vector< double * > fNegEquExpVarPtrs
std::vector< Instance * > InstanceVector
The FactoryBlock contains parameters needed by the device, instance and model creation functions...
virtual bool updateState(double *solVec, double *staVec, double *stoVec)
Updates the devices state information.
bool updateIntermediateVars()
std::list< std::string > evnList
bool updateTemperature(const double &temp)
std::vector< double > myVarVals
Model & operator=(const Model &)
std::vector< int > li_ddt
static void loadInstanceParameters(ParametricData< Instance > &instance_parameters)
int li_branch_data
Index for lead current and junction voltage (for power calculations)
Instance & operator=(const Instance &)
The Device class is an interface for device implementations.
const std::vector< std::vector< int > > & jacobianStamp() const
virtual void forEachInstance(DeviceInstanceOp &op) const
Apply a device instance "op" to all instances associated with this model.
void varTypes(std::vector< char > &varTypeVec)
Class Configuration contains device configuration data.
std::vector< double * > fPosEquExpVarPtrs
std::vector< std::vector< int > > jacStamp
virtual bool processParams()
processParams
void addInstance(Instance *instance)
void registerStoreLIDs(const std::vector< int > &stoLIDVecRef)
double * fNegEquBraVarPtr
virtual bool loadDAEMatrices(Linear::Matrix &dFdx, Linear::Matrix &dQdx)
Populates the device's Jacobian object with these pointers.
bool updatePrimaryState()
virtual std::ostream & printOutInstances(std::ostream &os) const
void registerStateLIDs(const std::vector< int > &staLIDVecRef)
ModelBlock represents a .MODEL line from the netlist.
Master(const Configuration &configuration, const FactoryBlock &factory_block, const SolverState &ss1, const DeviceOptions &do1)
The DeviceTraits template describes the configuration of a device.
Manages parameter binding for class C.
InstanceBlock represent a device instance line from the netlist.
Util::Expression * Exp_ptr
std::vector< double * > fBraEquExpVarPtrs
Instance(const Configuration &configuration, const InstanceBlock &IB, Model &BMiter, const FactoryBlock &factory_block)