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: 2001/03/29 05:30:30 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/NewtonRaphson.h,v $
00024
00025
00026 #ifndef NewtonRaphson_h
00027 #define NewtonRaphson_h
00028
00029 // File: ~/OOP/analysis/algorithm/NewtonRaphson.h
00030 //
00031 // Written: fmk
00032 // Created: 11/96
00033 // Revision: A
00034 //
00035
00036 // Description: This file contains the class definition for
00037 // NewtonRaphson. NewtonRaphson is a class which performs a Newton-Raphson
00038 // solution algorihm in solving the equations.
00039 // No member functions are declared as virtual as
00040 // it is not expected that this class will be subclassed.
00041 //
00042 // What: "@(#)NewtonRaphson.h, revA"
00043
00044 #include <EquiSolnAlgo.h>
00045 #include <Vector.h>
00046
00047
00077 class NewtonRaphson: public EquiSolnAlgo
00078 {
00079 public:
00088 NewtonRaphson(int tangent = CURRENT_TANGENT);
00089
00095 NewtonRaphson(ConvergenceTest &theTest, int tangent = CURRENT_TANGENT);
00096
00100 ~NewtonRaphson();
00101
00102
00111 int solveCurrentStep(void);
00112
00117 void setTest(ConvergenceTest &theNewTest);
00118
00120 ConvergenceTest *getTest(void);
00121
00122
00124 virtual int sendSelf(int commitTag, Channel &theChannel);
00126 virtual int recvSelf(int commitTag, Channel &theChannel,
00127 FEM_ObjectBroker &theBroker);
00129 void Print(ostream &s, int flag =0);
00130
00131 protected:
00132
00133 private:
00135 ConvergenceTest *theTest;
00137 int tangent;
00138
00139 };
00140
00141 #endif
00142
00143