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.1 $ 00022 // $Date: 2000/12/12 06:20:53 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/NewtonLineSearch.h,v $ 00024 00025 // Written: fmk 00026 // Created: 11/96 00027 // Modified: Ed "C++" Love 10/00 to perform the line search 00028 // 00029 00030 // Description: This file contains the class definition for 00031 // NewtonLineSearch. NewtonLineSearch is a class which performs a Newton-Raphson 00032 // with line search solution algorithm in solving the equations as outline in 00033 // Crissfields book. 00034 // 00035 // What: "@(#)NewtonLineSearch.h, revA" 00036 00037 #ifndef NewtonLineSearch_h 00038 #define NewtonLineSearch_h 00039 00040 #include <EquiSolnAlgo.h> 00041 #include <Vector.h> 00042 00044 class NewtonLineSearch: public EquiSolnAlgo 00045 { 00046 public: 00048 NewtonLineSearch( ) ; 00050 NewtonLineSearch(ConvergenceTest &theTest, double LineSearchTolerance ) ; 00052 ~NewtonLineSearch( ) ; 00053 00055 int solveCurrentStep(void) ; 00057 void setTest(ConvergenceTest &theNewTest) ; 00059 ConvergenceTest *getTest(void) ; 00060 00062 virtual int sendSelf(int commitTag, Channel &theChannel) ; 00064 virtual int recvSelf(int commitTag, Channel &theChannel, 00065 FEM_ObjectBroker &theBroker) ; 00066 00068 void Print(ostream &s, int flag =0) ; 00069 00070 protected: 00071 00072 private: 00073 00075 ConvergenceTest *theTest ; 00076 00078 double tolerance ; 00079 00080 Vector *r0, *x0, *x, *xOld; 00081 00082 }; 00083 00084 #endif 00085 00086 00087 ÿ