PeriodicNewton.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020 
00021 // $Revision: 1.3 $
00022 // $Date: 2005/11/29 22:42:42 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/PeriodicNewton.h,v $
00024 
00025 #ifndef PeriodicNewton_h
00026 #define PeriodicNewton_h
00027 
00028 // Written: MHS
00029 // Created: Oct 2002
00030 //
00031 // Description: This file contains the class definition for 
00032 // PeriodicNewton. PeriodicNewton is a class which performs a Periodic 
00033 // Newton-Raphson  solution algorihm in solving the equations.
00034 // No member functions are declared as virtual as 
00035 // it is not expected that this class will be subclassed.
00036 
00037 #include <EquiSolnAlgo.h>
00038 #include <Vector.h>
00039 
00040 class ConvergenceTest;
00041 
00042 class PeriodicNewton: public EquiSolnAlgo
00043 {
00044   public:
00045     PeriodicNewton(int tangent = CURRENT_TANGENT, int maxCount = 3);
00046     PeriodicNewton(ConvergenceTest &theTest, int tangent = CURRENT_TANGENT, int maxCount = 3);
00047     ~PeriodicNewton();
00048 
00049     int solveCurrentStep(void);    
00050     ConvergenceTest *getConvergenceTest(void);         
00051     int setConvergenceTest(ConvergenceTest *theNewTest);
00052 
00053     virtual int sendSelf(int commitTag, Channel &theChannel);
00054     virtual int recvSelf(int commitTag, Channel &theChannel, 
00055                          FEM_ObjectBroker &theBroker);
00056 
00057     void Print(OPS_Stream &s, int flag =0);    
00058     
00059   protected:
00060     
00061   private:
00062     ConvergenceTest *theTest;
00063     int tangent;
00064 
00065         int maxCount;
00066 };
00067 
00068 #endif
00069 
00070 

Generated on Mon Oct 23 15:04:57 2006 for OpenSees by doxygen 1.5.0