Xyce  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
N_NLS_DampedNewton Class Reference

#include <N_NLS_DampedNewton.h>

Inheritance diagram for N_NLS_DampedNewton:
Collaboration diagram for N_NLS_DampedNewton:

Public Member Functions

 N_NLS_DampedNewton (N_IO_CmdParse &cp)
 
 ~N_NLS_DampedNewton ()
 
bool setOptions (const N_UTL_OptionBlock &OB)
 
bool setTranOptions (const N_UTL_OptionBlock &OB)
 
bool setHBOptions (const N_UTL_OptionBlock &OB)
 
bool initializeAll ()
 
int solve (N_NLS_NonLinearSolver *nlsTmpPtr=NULL)
 
int takeFirstSolveStep (N_NLS_NonLinearSolver *nlsTmpPtr=NULL)
 
int takeOneSolveStep ()
 
int getNumIterations () const
 
int getContinuationStep () const
 
int getParameterNumber () const
 
bool isFirstContinuationParam () const
 
bool isFirstSolveComplete () const
 
void setAnalysisMode (AnalysisMode mode)
 
double getMaxNormF () const
 
int getMaxNormFindex () const
 
- Public Member Functions inherited from N_NLS_NonLinearSolver
 N_NLS_NonLinearSolver (N_IO_CmdParse &cp)
 
virtual ~N_NLS_NonLinearSolver ()
 
virtual bool setLocaOptions (const N_UTL_OptionBlock &OB)
 
virtual bool setTwoLevelLocaOptions (const N_UTL_OptionBlock &OB)
 
virtual bool setTwoLevelOptions (const N_UTL_OptionBlock &OB)
 
virtual bool setTwoLevelTranOptions (const N_UTL_OptionBlock &OB)
 
virtual bool setPetraOptions (const N_UTL_OptionBlock &OB)
 
virtual bool setDCOPRestartOptions (const N_UTL_OptionBlock &OB)
 
virtual bool setICOptions (const N_UTL_OptionBlock &OB)
 
virtual bool setNodeSetOptions (const N_UTL_OptionBlock &OB)
 
virtual bool registerRHSVector (N_LAS_Vector *ptr)
 
virtual bool registerLoader (N_LOA_Loader *ptr)
 
virtual bool registerLinearSystem (N_LAS_System *ptr)
 
virtual bool registerTwoLevelSolver (N_NLS_TwoLevelNewton *ptr)
 
virtual bool registerParamMgr (N_NLS_ParamMgr *ptr)
 
virtual bool registerTopology (N_TOP_Topology *ptr)
 
virtual bool registerPrecondFactory (const RefCountPtr< N_LAS_PrecondFactory > &ptr)
 
virtual bool registerParallelMgr (N_PDS_Manager *pdsMgrPtr)
 
virtual bool registerAnalysisInterface (N_ANP_AnalysisInterface *tmp_anaIntPtr)
 
virtual bool registerOutputMgr (N_IO_OutputMgr *outPtr)
 
virtual bool getLocaFlag ()
 
virtual int getNumResidualLoads ()
 
virtual int getNumJacobianLoads ()
 
virtual int getNumLinearSolves ()
 
virtual int getNumFailedLinearSolves ()
 
virtual int getNumJacobianFactorizations ()
 
virtual unsigned int getTotalNumLinearIters ()
 
virtual double getTotalLinearSolveTime ()
 
virtual double getTotalResidualLoadTime ()
 
virtual double getTotalJacobianLoadTime ()
 
virtual TwoLevelNewtonMode getCouplingMode ()
 
virtual void resetAll (AnalysisMode mode)
 
virtual void setReturnCodes (const N_NLS_ReturnCodes &retCodesTmp)
 
virtual bool enableSensitivity ()
 
virtual bool getMatrixFreeFlag ()
 
virtual void setMatrixFreeFlag (bool matrixFreeFlag)
 
virtual bool applyJacobian (const N_LAS_Vector &input, N_LAS_Vector &result)
 

Private Member Functions

void updateWeights_ ()
 
void printHeader_ (std::ostream &os)
 
void printFooter_ (std::ostream &os)
 
void printStepInfo_ (std::ostream &os, int step)
 
bool rhs_ ()
 
bool newton_ ()
 
void direction_ ()
 
void updateX_ ()
 
bool computeStepLength_ ()
 
bool divide_ ()
 
bool backtrack_ ()
 
bool fullNewton_ ()
 
bool spiceNewton_ ()
 
bool bankRose_ ()
 
bool descent_ ()
 
bool simpleBacktrack_ ()
 
bool simpleBt_ (double gsinit, double finit)
 
double constrain_ ()
 
void setForcing_ (const double)
 
void evalModNewton_ ()
 
int converged_ ()
 
void resetCountersAndTimers_ ()
 

Private Attributes

double resConvRate_
 Convergence Rate. More...
 
double wtUpdateConvRate_
 Weighted convergence Rate. More...
 
N_NLS_ConstraintBTnlConstraintPtr_
 Constraint object pointer. More...
 
double normRHS_
 
double maxNormRHS_
 
int maxNormRHSindex_
 
double normRHS_init_
 
double normDX_
 
double wtNormDX_
 
double normRHS_rel_
 
double normSoln_
 
double stepLength_
 
double BTUpper_
 
double BTLower_
 
double constraintFactor_
 
unsigned nlStep_
 
unsigned newtonStep_
 
unsigned modNewtonStep_
 
unsigned descentStep_
 
unsigned searchStep_
 
N_LAS_Vector * searchDirectionPtr_
 Pointer to direction vector. More...
 
N_LAS_Vector * tmpVectorPtr_
 
int iNumCalls_
 
double delta_
 
bool loadJacobianFlag_
 
bool firstTime
 
double initialDeltaXTol
 
N_NLS_NLParams nlParams
 
double etaOld
 
double nlResNormOld
 
double tmpConvRate
 
int count
 

Additional Inherited Members

- Protected Member Functions inherited from N_NLS_NonLinearSolver
virtual bool setX0_ ()
 
virtual bool jacobian_ ()
 
virtual bool gradient_ ()
 
- Protected Attributes inherited from N_NLS_NonLinearSolver
std::string netlistFileName_
 
N_LAS_Vector ** nextSolVectorPtrPtr_
 
N_LAS_Vector ** currSolVectorPtrPtr_
 
N_LAS_Vector ** tmpSolVectorPtrPtr_
 
N_LAS_Vector * rhsVectorPtr_
 
N_LAS_Matrix * jacobianMatrixPtr_
 
N_LAS_Vector * gradVectorPtr_
 
N_LAS_Vector * NewtonVectorPtr_
 
N_LAS_Vector * solWtVectorPtr_
 
N_LAS_System * lasSysPtr_
 
N_LAS_Solver * lasSolverPtr_
 
RefCountPtr< N_LAS_Problem > lasProblemRCPtr_
 
RefCountPtr< N_LAS_PrecondFactory > lasPrecPtr_
 
N_UTL_OptionBlock * petraOptionBlockPtr_
 
N_LOA_Loader * loaderPtr_
 
N_ANP_AnalysisInterfaceanaIntPtr_
 
N_NLS_TwoLevelNewtontlnPtr_
 
N_NLS_ParamMgrnlpMgrPtr_
 
N_IO_OutputMgr * outMgrPtr_
 
Teuchos::RefCountPtr
< N_TOP_Topology > 
topologyRcp_
 
N_PDS_Manager * pdsMgrPtr_
 
int numJacobianLoads_
 
int numJacobianFactorizations_
 
int numLinearSolves_
 
int numFailedLinearSolves_
 
int numResidualLoads_
 
unsigned int totalNumLinearIters_
 
double totalLinearSolveTime_
 
double totalResidualLoadTime_
 
double totalJacobianLoadTime_
 
N_NLS_ReturnCodes retCodes_
 
bool matrixFreeFlag_
 
N_IO_CmdParse & commandLine_
 
int outputStepNumber_
 
bool debugTimeFlag_
 
int contStep_
 

Detailed Description

Definition at line 66 of file N_NLS_DampedNewton.h.

Constructor & Destructor Documentation

N_NLS_DampedNewton::N_NLS_DampedNewton ( N_IO_CmdParse &  cp)

Definition at line 103 of file N_NLS_DampedNewton.C.

N_NLS_DampedNewton::~N_NLS_DampedNewton ( )

Definition at line 148 of file N_NLS_DampedNewton.C.

Member Function Documentation

bool N_NLS_DampedNewton::backtrack_ ( )
private

Definition at line 1525 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::bankRose_ ( )
private

Definition at line 2035 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::computeStepLength_ ( )
private

Definition at line 1242 of file N_NLS_DampedNewton.C.

double N_NLS_DampedNewton::constrain_ ( )
private

Definition at line 1920 of file N_NLS_DampedNewton.C.

int N_NLS_DampedNewton::converged_ ( )
private

Definition at line 1787 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::descent_ ( )
private

Definition at line 2050 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::direction_ ( )
private

Definition at line 1100 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::divide_ ( )
private

Definition at line 1300 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::evalModNewton_ ( )
private

Definition at line 1690 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::fullNewton_ ( )
private

Definition at line 1621 of file N_NLS_DampedNewton.C.

int N_NLS_DampedNewton::getContinuationStep ( ) const
virtual

Implements N_NLS_NonLinearSolver.

Definition at line 2067 of file N_NLS_DampedNewton.C.

double N_NLS_DampedNewton::getMaxNormF ( ) const
inlinevirtual

Implements N_NLS_NonLinearSolver.

Definition at line 103 of file N_NLS_DampedNewton.h.

int N_NLS_DampedNewton::getMaxNormFindex ( ) const
inlinevirtual

Implements N_NLS_NonLinearSolver.

Definition at line 106 of file N_NLS_DampedNewton.h.

int N_NLS_DampedNewton::getNumIterations ( ) const
inlinevirtual

Implements N_NLS_NonLinearSolver.

Definition at line 236 of file N_NLS_DampedNewton.h.

int N_NLS_DampedNewton::getParameterNumber ( ) const
virtual

Implements N_NLS_NonLinearSolver.

Definition at line 2075 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::initializeAll ( )
virtual

Reimplemented from N_NLS_NonLinearSolver.

Definition at line 235 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::isFirstContinuationParam ( ) const
virtual

Implements N_NLS_NonLinearSolver.

Definition at line 2059 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::isFirstSolveComplete ( ) const
inlinevirtual

Implements N_NLS_NonLinearSolver.

Definition at line 347 of file N_NLS_DampedNewton.h.

bool N_NLS_DampedNewton::newton_ ( )
privatevirtual

Reimplemented from N_NLS_NonLinearSolver.

Definition at line 1075 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::printFooter_ ( std::ostream &  os)
private

Definition at line 292 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::printHeader_ ( std::ostream &  os)
private

Definition at line 277 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::printStepInfo_ ( std::ostream &  os,
int  step 
)
private

Definition at line 305 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::resetCountersAndTimers_ ( )
inlineprivatevirtual

Reimplemented from N_NLS_NonLinearSolver.

Definition at line 336 of file N_NLS_DampedNewton.h.

bool N_NLS_DampedNewton::rhs_ ( )
privatevirtual

Reimplemented from N_NLS_NonLinearSolver.

Definition at line 1049 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::setAnalysisMode ( AnalysisMode  mode)
inlinevirtual

Implements N_NLS_NonLinearSolver.

Definition at line 327 of file N_NLS_DampedNewton.h.

void N_NLS_DampedNewton::setForcing_ ( const double  nlResNorm)
private

Definition at line 1960 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::setHBOptions ( const N_UTL_OptionBlock &  OB)
virtual

Implements N_NLS_NonLinearSolver.

Definition at line 216 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::setOptions ( const N_UTL_OptionBlock &  OB)
virtual

Implements N_NLS_NonLinearSolver.

Definition at line 181 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::setTranOptions ( const N_UTL_OptionBlock &  OB)
virtual

Implements N_NLS_NonLinearSolver.

Definition at line 199 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::simpleBacktrack_ ( )
private

Definition at line 1384 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::simpleBt_ ( double  gsinit,
double  finit 
)
private

Definition at line 1444 of file N_NLS_DampedNewton.C.

int N_NLS_DampedNewton::solve ( N_NLS_NonLinearSolver nlsTmpPtr = NULL)
virtual

Implements N_NLS_NonLinearSolver.

Definition at line 374 of file N_NLS_DampedNewton.C.

bool N_NLS_DampedNewton::spiceNewton_ ( )
private

Definition at line 1650 of file N_NLS_DampedNewton.C.

int N_NLS_DampedNewton::takeFirstSolveStep ( N_NLS_NonLinearSolver nlsTmpPtr = NULL)
virtual

Reimplemented from N_NLS_NonLinearSolver.

Definition at line 630 of file N_NLS_DampedNewton.C.

int N_NLS_DampedNewton::takeOneSolveStep ( )
virtual

Reimplemented from N_NLS_NonLinearSolver.

Definition at line 869 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::updateWeights_ ( )
private

Definition at line 320 of file N_NLS_DampedNewton.C.

void N_NLS_DampedNewton::updateX_ ( )
private

Definition at line 1032 of file N_NLS_DampedNewton.C.

Member Data Documentation

double N_NLS_DampedNewton::BTLower_
private

Definition at line 180 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::BTUpper_
private

Definition at line 179 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::constraintFactor_
private

Definition at line 183 of file N_NLS_DampedNewton.h.

int N_NLS_DampedNewton::count
private

Definition at line 228 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::delta_
private

Definition at line 209 of file N_NLS_DampedNewton.h.

unsigned N_NLS_DampedNewton::descentStep_
private

Definition at line 195 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::etaOld
private

Definition at line 224 of file N_NLS_DampedNewton.h.

bool N_NLS_DampedNewton::firstTime
private

Definition at line 219 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::initialDeltaXTol
private

Definition at line 220 of file N_NLS_DampedNewton.h.

int N_NLS_DampedNewton::iNumCalls_
private

Definition at line 207 of file N_NLS_DampedNewton.h.

bool N_NLS_DampedNewton::loadJacobianFlag_
private

Definition at line 212 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::maxNormRHS_
private

Definition at line 158 of file N_NLS_DampedNewton.h.

int N_NLS_DampedNewton::maxNormRHSindex_
private

Definition at line 159 of file N_NLS_DampedNewton.h.

unsigned N_NLS_DampedNewton::modNewtonStep_
private

Definition at line 192 of file N_NLS_DampedNewton.h.

unsigned N_NLS_DampedNewton::newtonStep_
private

Definition at line 189 of file N_NLS_DampedNewton.h.

N_NLS_ConstraintBT* N_NLS_DampedNewton::nlConstraintPtr_
private

Constraint object pointer.

Definition at line 154 of file N_NLS_DampedNewton.h.

N_NLS_NLParams N_NLS_DampedNewton::nlParams
private

Definition at line 222 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::nlResNormOld
private

Definition at line 225 of file N_NLS_DampedNewton.h.

unsigned N_NLS_DampedNewton::nlStep_
private

Definition at line 186 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::normDX_
private

Definition at line 164 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::normRHS_
private

Definition at line 157 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::normRHS_init_
private

Definition at line 161 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::normRHS_rel_
private

Definition at line 170 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::normSoln_
private

Definition at line 173 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::resConvRate_
private

Convergence Rate.

Definition at line 148 of file N_NLS_DampedNewton.h.

N_LAS_Vector* N_NLS_DampedNewton::searchDirectionPtr_
private

Pointer to direction vector.

Todo:
Is this vector internal or external?? Is it allocated or just a pointer??

Definition at line 202 of file N_NLS_DampedNewton.h.

unsigned N_NLS_DampedNewton::searchStep_
private

Definition at line 198 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::stepLength_
private

Definition at line 176 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::tmpConvRate
private

Definition at line 226 of file N_NLS_DampedNewton.h.

N_LAS_Vector* N_NLS_DampedNewton::tmpVectorPtr_
private

Definition at line 205 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::wtNormDX_
private

Definition at line 167 of file N_NLS_DampedNewton.h.

double N_NLS_DampedNewton::wtUpdateConvRate_
private

Weighted convergence Rate.

Definition at line 151 of file N_NLS_DampedNewton.h.


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