46 #ifndef Xyce_N_DEV_Inductor_h
47 #define Xyce_N_DEV_Inductor_h
74 const std::string &name,
75 std::vector<double> & dfdp,
76 std::vector<double> & dqdp,
77 std::vector<double> & dbdp,
78 std::vector<int> & Findices,
79 std::vector<int> & Qindices,
80 std::vector<int> & Bindices
88 static const char *
name() {
return "Inductor";}
134 void registerLIDs(
const std::vector<int> & intLIDVecRef,
135 const std::vector<int> & extLIDVecRef );
141 const std::vector< std::vector<int> > &
jacobianStamp()
const;
142 void registerJacLIDs(
const std::vector< std::vector<int> > & jacLIDVec );
153 void varTypes( std::vector<char> & varTypeVec );
246 #ifndef Xyce_NONPOINTER_MATRIX_LOAD
334 virtual bool updateState (
double * solVec,
double * staVec,
double * stoVec);
337 virtual bool loadDAEVectors (
double * solVec,
double * fVec,
double * qVec,
double * bVec,
double * storeLeadF,
double * storeLeadQ,
double * leadF,
double * leadQ,
double * junctionV);
338 virtual bool loadDAEMatrices (Linear::Matrix & dFdx, Linear::Matrix & dQdx);
double * fBraEquNegNodePtr
int AEPosEquEBraVarOffset
int li_branch_data
Index for lead current and junction voltage (for power calculations)
std::vector< Instance * > InstanceVector
void registerBranchDataLIDs(const std::vector< int > &branchLIDVecRef)
Register the local store IDs.
static void loadInstanceParameters(ParametricData< Instance > &instance_parameters)
Pure virtual class to augment a linear system.
Base class for all parameters.
virtual void forEachInstance(DeviceInstanceOp &op) const
Apply a device instance "op" to all instances associated with this model.
static bool isLinearDevice()
const std::vector< std::vector< int > > & jacobianStamp() const
bool updateSecondaryState()
static std::vector< std::vector< int > > jacStamp_BASE
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.
void registerJacLIDs(const std::vector< std::vector< int > > &jacLIDVec)
void varTypes(std::vector< char > &varTypeVec)
DeviceMaster instantiates a device as described by the device traits T.
double * fBraEquPosNodePtr
void registerLIDs(const std::vector< int > &intLIDVecRef, const std::vector< int > &extLIDVecRef)
The FactoryBlock contains parameters needed by the device, instance and model creation functions...
virtual bool processParams()
processParams
void loadNodeSymbols(Util::SymbolTable &symbol_table) const
Populates and returns the store name map.
void auxDAECalculations()
Instance(const Configuration &configuration, const InstanceBlock &instance_block, Model &model, const FactoryBlock &factory_block)
virtual ~indSensitivity()
virtual bool loadDAEMatrices(Linear::Matrix &dFdx, Linear::Matrix &dQdx)
Populates the device's Jacobian object with these pointers.
virtual std::ostream & printOutInstances(std::ostream &os) const
bool isLinearDevice() const
Master(const Configuration &configuration, const FactoryBlock &factory_block, const SolverState &ss1, const DeviceOptions &do1)
int AEBraEquEPosNodeOffset
static const char * primaryParameter()
The Device class is an interface for device implementations.
void registerStateLIDs(const std::vector< int > &staLIDVecRef)
int AEBraEquENegNodeOffset
double * fPosEquBraVarPtr
bool updateTemperature(const double &temp_tmp)
bool updatePrimaryState()
static indSensitivity indSens
Class Configuration contains device configuration data.
std::vector< int > li_LBra
double * qBraEquBraVarPtr
static void loadModelParameters(ParametricData< Model > &model_parameters)
void addInstance(Instance *instance)
static const char * deviceTypeName()
std::vector< int > xLBraVar_J
double inductanceMultiplier
int AEBraEquLNegNodeOffset
bool updateIntermediateVars()
Model & operator=(const Model &)
static const char * name()
double * fBraEquBraVarPtr
static const char * instanceDefaultParameter()
Base sensitivity functor.
static Device * factory(const Configuration &configuration, const FactoryBlock &factory_block)
ModelBlock represents a .MODEL line from the netlist.
The DeviceTraits template describes the configuration of a device.
Manages parameter binding for class C.
double * fNegEquBraVarPtr
virtual bool updateSecondaryState(double *staDeriv, double *stoVec)
Updates the devices secondary state information.
InstanceBlock represent a device instance line from the netlist.
virtual bool updateState(double *solVec, double *staVec, double *stoVec)
Updates the devices state information.
virtual void operator()(const ParameterBase &entity, const std::string &name, std::vector< double > &dfdp, std::vector< double > &dqdp, std::vector< double > &dbdp, std::vector< int > &Findices, std::vector< int > &Qindices, std::vector< int > &Bindices) const
std::vector< Instance * > instanceContainer
virtual bool processInstanceParams()
processInstanceParams
Instance & operator=(const Instance &)
int AENegEquEBraVarOffset