My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
nasolver< nr_type_t > Class Template Reference

#include <nasolver.h>

Inheritance diagram for nasolver< nr_type_t >:
Inheritance graph
[legend]
Collaboration diagram for nasolver< nr_type_t >:
Collaboration graph
[legend]

Public Types

typedef void(* calculate_func_t )(nasolver< nr_type_t > *)
 

Public Member Functions

 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, vector *f=NULL)
 
void setCalculation (calculate_func_t f)
 
void calculate (void)
 
const char * getHelperDescription (void)
 
- Public Member Functions inherited from analysis
 analysis ()
 
 analysis (char *)
 
 analysis (analysis &)
 
 ~analysis ()
 
virtual int solve (void)
 
virtual int initialize (void)
 
virtual int cleanup (void)
 
datasetgetData (void)
 
void setData (dataset *d)
 
netgetNet (void)
 
void setNet (net *netlist)
 
environmentgetEnv (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)
 
sweepcreateSweep (const char *)
 
void saveVariable (const char *, nr_complex_t, vector *)
 
bool getProgress (void)
 
void setProgress (bool p)
 
- Public Member Functions inherited from 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)
 

Protected Member Functions

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)
 

Protected Attributes

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
 
- Protected Attributes inherited from analysis
int runs
 
int type
 
netsubnet
 
datasetdata
 
environmentenv
 
ptrlist< analysis > * actions
 
bool progress
 

Detailed Description

template<class nr_type_t>
class nasolver< nr_type_t >

Definition at line 47 of file nasolver.h.

Member Typedef Documentation

template<class nr_type_t>
typedef void(* nasolver< nr_type_t >::calculate_func_t)(nasolver< nr_type_t > *)

Definition at line 64 of file nasolver.h.

Constructor & Destructor Documentation

template<class nr_type_t >
nasolver< nr_type_t >::nasolver ( )

Definition at line 62 of file nasolver.cpp.

template<class nr_type_t >
nasolver< nr_type_t >::nasolver ( char *  n)

Definition at line 78 of file nasolver.cpp.

template<class nr_type_t >
nasolver< nr_type_t >::nasolver ( nasolver< nr_type_t > &  o)

Definition at line 108 of file nasolver.cpp.

template<class nr_type_t >
nasolver< nr_type_t >::~nasolver ( )

Definition at line 94 of file nasolver.cpp.

Member Function Documentation

template<class nr_type_t >
void nasolver< nr_type_t >::applyNodeset ( bool  nokeep = true)
protected

Definition at line 226 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t>
void nasolver< nr_type_t >::calculate ( void  )
inline

Definition at line 66 of file nasolver.h.

template<class nr_type_t >
int nasolver< nr_type_t >::countNodes ( void  )
protected

Definition at line 800 of file nasolver.cpp.

template<class nr_type_t >
int nasolver< nr_type_t >::countVoltageSources ( void  )
protected

Definition at line 828 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::createMatrix ( void  )
protected

Definition at line 471 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::createNoiseMatrix ( void  )
protected

Definition at line 652 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
int nasolver< nr_type_t >::findAssignedNode ( circuit c,
int  port 
)
protected

Definition at line 813 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
circuit * nasolver< nr_type_t >::findVoltageSource ( int  n)
protected

Definition at line 836 of file nasolver.cpp.

template<class nr_type_t>
const char* nasolver< nr_type_t >::getDescription ( void  )
inline

Definition at line 62 of file nasolver.h.

template<class nr_type_t >
const char * nasolver< nr_type_t >::getHelperDescription ( void  )

Definition at line 382 of file nasolver.cpp.

template<class nr_type_t >
int nasolver< nr_type_t >::getNodeNr ( char *  str)
protected

Definition at line 806 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::recallSolution ( void  )
protected

Definition at line 1120 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
void nasolver< nr_type_t >::restartNR ( void  )
protected

Definition at line 1047 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::restorePreviousIteration ( void  )
protected

Definition at line 1039 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::runMNA ( void  )
protected

Definition at line 865 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::savePreviousIteration ( void  )
protected

Definition at line 1025 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::saveResults ( const char *  volts,
const char *  amps,
int  saveOPs,
vector f = NULL 
)

Definition at line 1143 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
void nasolver< nr_type_t >::saveSolution ( void  )
protected

Definition at line 1092 of file nasolver.cpp.

template<class nr_type_t>
void nasolver< nr_type_t >::setCalculation ( calculate_func_t  f)
inline

Definition at line 65 of file nasolver.h.

template<class nr_type_t>
void nasolver< nr_type_t >::setDescription ( const char *  n)
inline

Definition at line 61 of file nasolver.h.

template<class nr_type_t >
int nasolver< nr_type_t >::solve_linear ( void  )

Definition at line 461 of file nasolver.cpp.

template<class nr_type_t >
int nasolver< nr_type_t >::solve_nonlinear ( void  )

Definition at line 403 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
int nasolver< nr_type_t >::solve_nonlinear_continuation_gMin ( void  )

Definition at line 250 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
int nasolver< nr_type_t >::solve_nonlinear_continuation_Source ( void  )

Definition at line 311 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
int nasolver< nr_type_t >::solve_once ( void  )

Definition at line 133 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
void nasolver< nr_type_t >::solve_post ( void  )

Definition at line 190 of file nasolver.cpp.

template<class nr_type_t >
void nasolver< nr_type_t >::solve_pre ( void  )

Definition at line 196 of file nasolver.cpp.

Here is the call graph for this function:

template<class nr_type_t >
void nasolver< nr_type_t >::storeSolution ( void  )
protected

Definition at line 1099 of file nasolver.cpp.

Here is the call graph for this function:

Member Data Documentation

template<class nr_type_t>
tmatrix<nr_type_t>* nasolver< nr_type_t >::A
protected

Definition at line 112 of file nasolver.h.

template<class nr_type_t>
tmatrix<nr_type_t>* nasolver< nr_type_t >::C
protected

Definition at line 113 of file nasolver.h.

template<class nr_type_t>
int nasolver< nr_type_t >::convHelper
protected

Definition at line 115 of file nasolver.h.

template<class nr_type_t>
int nasolver< nr_type_t >::eqnAlgo
protected

Definition at line 117 of file nasolver.h.

template<class nr_type_t>
int nasolver< nr_type_t >::fixpoint
protected

Definition at line 116 of file nasolver.h.

template<class nr_type_t>
nr_double_t nasolver< nr_type_t >::gMin
protected

Definition at line 119 of file nasolver.h.

template<class nr_type_t>
int nasolver< nr_type_t >::iterations
protected

Definition at line 114 of file nasolver.h.

template<class nr_type_t>
nr_double_t nasolver< nr_type_t >::srcFactor
protected

Definition at line 119 of file nasolver.h.

template<class nr_type_t>
int nasolver< nr_type_t >::updateMatrix
protected

Definition at line 118 of file nasolver.h.

template<class nr_type_t>
tvector<nr_type_t>* nasolver< nr_type_t >::x
protected

Definition at line 109 of file nasolver.h.

template<class nr_type_t>
tvector<nr_type_t>* nasolver< nr_type_t >::xprev
protected

Definition at line 110 of file nasolver.h.

template<class nr_type_t>
tvector<nr_type_t>* nasolver< nr_type_t >::z
protected

Definition at line 108 of file nasolver.h.

template<class nr_type_t>
tvector<nr_type_t>* nasolver< nr_type_t >::zprev
protected

Definition at line 111 of file nasolver.h.


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