Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Attributes
qucs::trsolver Class Reference

#include <trsolver.h>

Inheritance diagram for qucs::trsolver:
qucs::nasolver< nr_type_t > qucs::states< state_type_t > qucs::analysis qucs::object qucs::e_trsolver

Public Member Functions

 ACREATOR (trsolver)
 
 trsolver (char *)
 
 trsolver (trsolver &)
 
 ~trsolver ()
 
int solve (void)
 placehoder for solution function More...
 
int predictor (void)
 
int corrector (void)
 
void nextStates (void)
 
void fillStates (void)
 
void setMode (int)
 
void setDelta (void)
 
void adjustDelta (nr_double_t)
 
void adjustOrder (int reduce=0)
 
void initTR (void)
 
void deinitTR (void)
 
void restart (void)
 
void initDC (void)
 
void initSteps (void)
 
void saveAllResults (nr_double_t)
 
nr_double_t checkDelta (void)
 
void updateCoefficients (nr_double_t)
 
void initHistory (nr_double_t)
 
void updateHistory (nr_double_t)
 
void saveHistory (circuit *)
 
void predictBashford (void)
 
void predictEuler (void)
 
void predictGear (void)
 
void initCircuitTR (circuit *)
 
void fillSolution (tvector< nr_double_t > *)
 
int dcAnalysis (void)
 
- Public Member Functions inherited from qucs::nasolver< nr_type_t >
 nasolver ()
 
 nasolver (char *)
 
 nasolver (nasolver &)
 
 ~nasolver ()
 
int solve_once (void)
 
int solve_nonlinear (void)
 
int solve_nonlinear_continuation_gMin (void)
 
int solve_nonlinear_continuation_Source (void)
 
int solve_linear (void)
 
void solve_pre (void)
 
void solve_post (void)
 
void setDescription (const char *n)
 
const char * getDescription (void)
 
void saveResults (const char *, const char *, int, qucs::vector *f=NULL)
 
void setCalculation (calculate_func_t f)
 
void calculate (void)
 
const char * getHelperDescription (void)
 
int getN ()
 Returns the number of node voltages in the circuit. More...
 
int getM ()
 Returns the number of branch currents in the circuit. More...
 
- Public Member Functions inherited from qucs::analysis
 analysis ()
 Constructor (Unnamed) More...
 
 analysis (char *)
 
 analysis (analysis &)
 
 ~analysis ()
 Destructor. More...
 
virtual int initialize (void)
 placehoder for initialization function More...
 
virtual int cleanup (void)
 placehoder for cleanup function More...
 
virtual bool isExternal (void)
 informs whether this is an external sim More...
 
dataset * getData (void)
 
void setData (dataset *d)
 
net * getNet (void)
 
void setNet (net *netlist)
 
environment * getEnv (void)
 
void setEnv (environment *e)
 
ptrlist< analysis > * getAnalysis (void)
 
void setAnalysis (ptrlist< analysis > *a)
 
void addAnalysis (analysis *)
 
void delAnalysis (analysis *)
 
int getType (void)
 
void setType (int t)
 
sweep * createSweep (const char *)
 create a named sweep object More...
 
void saveVariable (const char *, nr_complex_t, qucs::vector *)
 Save variable into analysis dataset. More...
 
bool getProgress (void)
 get More...
 
void setProgress (bool p)
 Sets the progress. More...
 
- Public Member Functions inherited from qucs::object
 object ()
 
 object (const char *)
 
 object (const object &)
 
virtual ~object ()
 
objectgetNext (void)
 
void setNext (object *o)
 
objectgetPrev (void)
 
void setPrev (object *o)
 
void setName (const char *)
 
char * getName (void)
 
void addProperty (property *)
 
propertyaddProperty (const char *, const char *)
 
propertyaddProperty (const char *, nr_double_t)
 
propertyaddProperty (const char *, variable *)
 
void setProperty (const char *, char *)
 
void setProperty (const char *, nr_double_t)
 
void setScaledProperty (const char *, nr_double_t)
 
void setProperty (const char *, variable *)
 
vectorgetPropertyVector (const char *)
 
char * getPropertyString (const char *)
 
char * getPropertyReference (const char *)
 
nr_double_t getPropertyDouble (const char *)
 
nr_double_t getScaledProperty (const char *)
 
int getPropertyInteger (const char *)
 
bool hasProperty (const char *)
 
bool isPropertyGiven (const char *)
 
void copyProperties (property *)
 
void deleteProperties (void)
 
int countProperties (void)
 
char * propertyList (void)
 
 object ()
 
 object (const char *)
 
 object (const object &)
 
virtual ~object ()
 
objectgetNext (void)
 
void setNext (object *o)
 
objectgetPrev (void)
 
void setPrev (object *o)
 
void setName (const char *)
 
char * getName (void)
 
void addProperty (property *)
 
propertyaddProperty (const char *, const char *)
 
propertyaddProperty (const char *, nr_double_t)
 
propertyaddProperty (const char *, variable *)
 
void setProperty (const char *, char *)
 
void setProperty (const char *, nr_double_t)
 
void setScaledProperty (const char *, nr_double_t)
 
void setProperty (const char *, variable *)
 
vectorgetPropertyVector (const char *)
 
char * getPropertyString (const char *)
 
char * getPropertyReference (const char *)
 
nr_double_t getPropertyDouble (const char *)
 
nr_double_t getScaledProperty (const char *)
 
int getPropertyInteger (const char *)
 
bool hasProperty (const char *)
 
bool isPropertyGiven (const char *)
 
void copyProperties (property *)
 
void deleteProperties (void)
 
int countProperties (void)
 
char * propertyList (void)
 
- Public Member Functions inherited from qucs::states< state_type_t >
 states ()
 
 states (const states &)
 
 ~states ()
 
state_type_t getState (int, int n=0)
 
void setState (int, state_type_t, int n=0)
 
void initStates (void)
 
void clearStates (void)
 
int getStates (void)
 
void setStates (int n)
 
void nextState (void)
 
void prevState (void)
 
void fillState (int, state_type_t)
 
void saveState (int, state_type_t *)
 
void inputState (int, state_type_t *)
 

Static Public Member Functions

static void calcTR (trsolver *)
 
static void calcDC (trsolver *)
 

Data Fields

 TR
 
 PROP_ACTION
 
 PROP_NO_SUBSTRATE
 
 PROP_LINEAR
 

Protected Attributes

sweepswp
 
nr_double_t predCoeff [8]
 
nr_double_t corrCoeff [8]
 
nr_double_t deltas [8]
 
nr_double_t delta
 
nr_double_t deltaMax
 
nr_double_t deltaMin
 
nr_double_t deltaOld
 
nr_double_t stepDelta
 
int CMethod
 
int PMethod
 
int corrMaxOrder
 
int predMaxOrder
 
int corrType
 
int predType
 
int corrOrder
 
int predOrder
 
int rejected
 
int converged
 
tvector< nr_double_t > * solution [8]
 
nr_double_t current
 
int statSteps
 
int statRejected
 
int statIterations
 
int statConvergence
 
historytHistory
 
bool relaxTSR
 
bool initialDC
 
- Protected Attributes inherited from qucs::nasolver< nr_type_t >
tvector< nr_type_t > * z
 
tvector< nr_type_t > * x
 
tvector< nr_type_t > * xprev
 
tvector< nr_type_t > * zprev
 
tmatrix< nr_type_t > * A
 
tmatrix< nr_type_t > * C
 
int iterations
 
int convHelper
 
int fixpoint
 
int eqnAlgo
 
int updateMatrix
 
nr_double_t gMin
 
nr_double_t srcFactor
 
const char * desc
 
nodelistnlist
 
- Protected Attributes inherited from qucs::analysis
int runs
 
int type
 
net * subnet
 
dataset * data
 
environment * env
 
ptrlist< analysis > * actions
 
bool progress
 

Additional Inherited Members

- Public Types inherited from qucs::nasolver< nr_type_t >
typedef void(* calculate_func_t )(nasolver< nr_type_t > *)
 
- Protected Member Functions inherited from qucs::nasolver< nr_type_t >
void restartNR (void)
 
void savePreviousIteration (void)
 
void restorePreviousIteration (void)
 
int countNodes (void)
 
int getNodeNr (char *)
 
int findAssignedNode (circuit *, int)
 
int countVoltageSources (void)
 
void saveSolution (void)
 
circuitfindVoltageSource (int)
 
void applyNodeset (bool nokeep=true)
 
void createNoiseMatrix (void)
 
void runMNA (void)
 
void createMatrix (void)
 
void storeSolution (void)
 
void recallSolution (void)
 
int checkConvergence (void)
 

Detailed Description

Definition at line 962 of file trsolver.cpp.

Constructor & Destructor Documentation

qucs::trsolver::trsolver ( char *  n)

Definition at line 77 of file trsolver.cpp.

qucs::trsolver::trsolver ( trsolver o)

Definition at line 105 of file trsolver.cpp.

qucs::trsolver::~trsolver ( )

Definition at line 90 of file trsolver.cpp.

Member Function Documentation

qucs::trsolver::ACREATOR ( trsolver  )
void qucs::trsolver::adjustDelta ( nr_double_t  t)

Definition at line 624 of file trsolver.cpp.

void qucs::trsolver::adjustOrder ( int  reduce = 0)

Definition at line 694 of file trsolver.cpp.

void qucs::trsolver::calcDC ( trsolver self)
static

Definition at line 723 of file trsolver.cpp.

void qucs::trsolver::calcTR ( trsolver self)
static

Definition at line 734 of file trsolver.cpp.

nr_double_t qucs::trsolver::checkDelta ( void  )

Definition at line 874 of file trsolver.cpp.

int qucs::trsolver::corrector ( void  )

Definition at line 570 of file trsolver.cpp.

int qucs::trsolver::dcAnalysis ( void  )

Definition at line 123 of file trsolver.cpp.

void qucs::trsolver::deinitTR ( void  )

Definition at line 830 of file trsolver.cpp.

void qucs::trsolver::fillSolution ( tvector< nr_double_t > *  s)

Definition at line 500 of file trsolver.cpp.

void qucs::trsolver::fillStates ( void  )

Definition at line 596 of file trsolver.cpp.

void qucs::trsolver::initCircuitTR ( circuit c)

Definition at line 847 of file trsolver.cpp.

void qucs::trsolver::initDC ( void  )

Definition at line 756 of file trsolver.cpp.

void qucs::trsolver::initHistory ( nr_double_t  t)

Definition at line 401 of file trsolver.cpp.

void qucs::trsolver::initSteps ( void  )

Definition at line 116 of file trsolver.cpp.

void qucs::trsolver::initTR ( void  )

Definition at line 767 of file trsolver.cpp.

void qucs::trsolver::nextStates ( void  )

Definition at line 578 of file trsolver.cpp.

void qucs::trsolver::predictBashford ( void  )

Definition at line 507 of file trsolver.cpp.

void qucs::trsolver::predictEuler ( void  )

Definition at line 531 of file trsolver.cpp.

void qucs::trsolver::predictGear ( void  )

Definition at line 549 of file trsolver.cpp.

int qucs::trsolver::predictor ( void  )

Definition at line 476 of file trsolver.cpp.

void qucs::trsolver::restart ( void  )

Definition at line 745 of file trsolver.cpp.

void qucs::trsolver::saveAllResults ( nr_double_t  time)

Definition at line 858 of file trsolver.cpp.

void qucs::trsolver::saveHistory ( circuit c)

Definition at line 445 of file trsolver.cpp.

void qucs::trsolver::setDelta ( void  )

Definition at line 615 of file trsolver.cpp.

void qucs::trsolver::setMode ( int  state)

Definition at line 607 of file trsolver.cpp.

int qucs::trsolver::solve ( void  )
virtual

placehoder for solution function

Virtual solution function intended to be overridden by the inheiriting class's solution function.

Reimplemented from qucs::analysis.

Definition at line 175 of file trsolver.cpp.

void qucs::trsolver::updateCoefficients ( nr_double_t  delta)

Definition at line 919 of file trsolver.cpp.

void qucs::trsolver::updateHistory ( nr_double_t  t)

Definition at line 428 of file trsolver.cpp.

Field Documentation

int qucs::trsolver::CMethod
protected

Definition at line 83 of file trsolver.h.

int qucs::trsolver::converged
protected

Definition at line 92 of file trsolver.h.

nr_double_t qucs::trsolver::corrCoeff[8]
protected

Definition at line 76 of file trsolver.h.

int qucs::trsolver::corrMaxOrder
protected

Definition at line 85 of file trsolver.h.

int qucs::trsolver::corrOrder
protected

Definition at line 89 of file trsolver.h.

int qucs::trsolver::corrType
protected

Definition at line 87 of file trsolver.h.

nr_double_t qucs::trsolver::current
protected

Definition at line 94 of file trsolver.h.

nr_double_t qucs::trsolver::delta
protected

Definition at line 78 of file trsolver.h.

nr_double_t qucs::trsolver::deltaMax
protected

Definition at line 79 of file trsolver.h.

nr_double_t qucs::trsolver::deltaMin
protected

Definition at line 80 of file trsolver.h.

nr_double_t qucs::trsolver::deltaOld
protected

Definition at line 81 of file trsolver.h.

nr_double_t qucs::trsolver::deltas[8]
protected

Definition at line 77 of file trsolver.h.

bool qucs::trsolver::initialDC
protected

Definition at line 101 of file trsolver.h.

int qucs::trsolver::PMethod
protected

Definition at line 84 of file trsolver.h.

nr_double_t qucs::trsolver::predCoeff[8]
protected

Definition at line 75 of file trsolver.h.

int qucs::trsolver::predMaxOrder
protected

Definition at line 86 of file trsolver.h.

int qucs::trsolver::predOrder
protected

Definition at line 90 of file trsolver.h.

int qucs::trsolver::predType
protected

Definition at line 88 of file trsolver.h.

qucs::trsolver::PROP_ACTION

Definition at line 963 of file trsolver.cpp.

qucs::trsolver::PROP_LINEAR

Definition at line 963 of file trsolver.cpp.

qucs::trsolver::PROP_NO_SUBSTRATE

Definition at line 963 of file trsolver.cpp.

int qucs::trsolver::rejected
protected

Definition at line 91 of file trsolver.h.

bool qucs::trsolver::relaxTSR
protected

Definition at line 100 of file trsolver.h.

tvector<nr_double_t>* qucs::trsolver::solution[8]
protected

Definition at line 93 of file trsolver.h.

int qucs::trsolver::statConvergence
protected

Definition at line 98 of file trsolver.h.

int qucs::trsolver::statIterations
protected

Definition at line 97 of file trsolver.h.

int qucs::trsolver::statRejected
protected

Definition at line 96 of file trsolver.h.

int qucs::trsolver::statSteps
protected

Definition at line 95 of file trsolver.h.

nr_double_t qucs::trsolver::stepDelta
protected

Definition at line 82 of file trsolver.h.

sweep* qucs::trsolver::swp
protected

Definition at line 74 of file trsolver.h.

history* qucs::trsolver::tHistory
protected

Definition at line 99 of file trsolver.h.

qucs::trsolver::TR

Definition at line 963 of file trsolver.cpp.


The documentation for this class was generated from the following files: