Xyce
6.1
|
#include <N_DEV_Resistor.h>
Public Member Functions | |
Master (const Configuration &configuration, const FactoryBlock &factory_block, const SolverState &solver_state, const DeviceOptions &device_options) | |
Construct a Resistor Device. More... | |
virtual bool | updateState (double *solVec, double *staVec, double *stoVec) |
Update state for all resistor instances, regardless of model. More... | |
virtual bool | loadDAEVectors (double *solVec, double *fVec, double *qVec, double *bVec, double *storeLeadF, double *storeLeadQ) |
Load DAE vectors of all resistor instances, regardless of model. More... | |
virtual bool | loadDAEMatrices (N_LAS_Matrix &dFdx, N_LAS_Matrix &dQdx) |
Load DAE matrices for all resistor instances, regardless of model. More... | |
![]() | |
DeviceMaster (const Configuration &configuration, const FactoryBlock &factory_block, const SolverState &solver_state, const DeviceOptions &device_options) | |
Constructs a device. More... | |
virtual | ~DeviceMaster () |
Destroys the device. More... | |
virtual const std::string & | getName () const |
Returns the name of this device. More... | |
virtual const std::string & | getDefaultModelName () const |
Returns the default model name to use if the instance being created does not specify one. More... | |
virtual DeviceModel * | findModel (const ModelName &model_name) |
Returns a pointer to the model or model model with the specified name. More... | |
virtual const DeviceModel * | findModel (const ModelName &model_name) const |
Returns a pointer to the model or model model with the specified name. More... | |
virtual DeviceEntity * | findInstance (const InstanceName &instance_name) |
Returns a pointer to the model or instance entity with the specified name. More... | |
virtual const DeviceEntity * | findInstance (const InstanceName &instance_name) const |
Returns a pointer to the model or instance entity with the specified name. More... | |
virtual bool | isLinearDevice () const |
Returns true if this device is a linear device. More... | |
virtual bool | isPDEDevice () const |
Returns true if this device is a PDE device. More... | |
virtual void | forEachModel (DeviceModelOp &op) const |
Executes operator op, passing its DeviceModel pointer, for each device model. More... | |
virtual void | forEachInstance (DeviceInstanceOp &op) const |
Executes operator op, passing its DeviceInstance pointer, for each device instance. More... | |
virtual ModelType * | addModel (const ModelBlock &MB, const FactoryBlock &factory_block) |
Creates a device model and adds it to the device's list of models. More... | |
virtual InstanceType * | addInstance (const InstanceBlock &instance_block, const FactoryBlock &factory_block) |
Creates a device instance and adds to the device model's instance list. More... | |
virtual bool | updateSources () |
Updates the devices source information. More... | |
virtual bool | updateSecondaryState (double *staDerivVec, double *stoVec) |
Updates the devices secondary state information. More... | |
![]() | |
Device () | |
virtual | ~Device () |
Friends | |
class | Instance |
Don't force a lot of pointless getters. More... | |
class | Model |
Don't force a lot of pointless getters. More... | |
Additional Inherited Members | |
![]() | |
typedef Traits::ModelType | ModelType |
Make the model begin defined available. More... | |
typedef Traits::InstanceType | InstanceType |
Make the instance being define available. More... | |
![]() | |
typedef std::vector < InstanceType * > | InstanceVector |
typedef std::map< std::string, ModelType *, LessNoCase > | ModelMap |
typedef std::map< std::string, InstanceType *, LessNoCase > | InstanceMap |
![]() | |
const SolverState & | getSolverState () const |
Returns the solver state given during device construction. More... | |
const DeviceOptions & | getDeviceOptions () const |
Returns the device options given during device construction. More... | |
InstanceVector::const_iterator | getInstanceBegin () const |
Returns an iterator to the beginning of the vector of all instances created for this device. More... | |
InstanceVector::const_iterator | getInstanceEnd () const |
Returns an iterator to the ending of the vector of all instances created for this device. More... | |
bool | isModelRequired () const |
Returns true if the model name must be specified for each instance. More... | |
Resistor master.
The "master" class is the one that contains the updateState, loadDAEVectors and loadDAEMatrices methods that are actually called when it is time to compute and load device contributions.
The default implementations of these methods in the DeviceMaster template class simply loops over all instances and calls their updatePrimaryState, loadDAEFVector/loadDAEQVector, and loadDAEdFdx/loadDAEdQdx methods, respectively.
For efficiency, the Resistor class reimplements these methods to do the work directly, instead of calling instance-level functions.
Definition at line 409 of file N_DEV_Resistor.h.
|
inline |
configuration | |
factory_block | |
solver_state | |
device_options |
Definition at line 431 of file N_DEV_Resistor.h.
|
virtual |
Load DAE matrices for all resistor instances, regardless of model.
dFdx | matrix of derivatives of F vector with respect to solution |
dQdx | matrix of derivatives of Q vector with respect to solution |
Reimplemented from Xyce::Device::DeviceMaster< Traits >.
Definition at line 1161 of file N_DEV_Resistor.C.
|
virtual |
Load DAE vectors of all resistor instances, regardless of model.
solVec | solution vector |
fVec | f vector |
qVec | q vector |
storeLeadF | store lead current f vector |
storeLeadQ | store lead current q vector |
Reimplemented from Xyce::Device::DeviceMaster< Traits >.
Definition at line 1120 of file N_DEV_Resistor.C.
|
virtual |
Update state for all resistor instances, regardless of model.
solVec | solution vector |
staVec | state vector |
stoVec | store vector |
Reimplemented from Xyce::Device::DeviceMaster< Traits >.
Definition at line 1075 of file N_DEV_Resistor.C.
|
friend |
Don't force a lot of pointless getters.
Definition at line 411 of file N_DEV_Resistor.h.
|
friend |
Don't force a lot of pointless getters.
Definition at line 412 of file N_DEV_Resistor.h.