InitialInterpolatedLineSearch.hGo 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: 2003/02/14 23:00:42 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/InitialInterpolatedLineSearch.h,v $ 00024 00025 // Written: fmk 00026 // Created: 11/01 00027 00028 // Description: This file contains the class definition for LinearInterpolatedSearch. 00029 // This performs the search by using a form of linear interpolation to find the best solution. 00030 // Solution procedure follows the one in Crissfields book. 00031 // (M.A. Crissfield, Nonlinear Finite Element Analysis of Solid and Structures, Wiley. 97). 00032 // NOTE: it is not quite linear interpolation/false-position/regula-falsi as eta(0) = 0.0 00033 // does not change. uses eta(i) = eta(i-1)*s0 00034 // ----------- 00035 // s0 - s(i-1) to compute eta(i) 00036 // 00037 00038 #ifndef InitialInterpolatedLineSearch_h 00039 #define InitialInterpolatedLineSearch_h 00040 00041 #include <LineSearch.h> 00042 class Vector; 00043 //class OPS_Stream; //Jeremic@ucdavis.edu taken out since there is an include<iOPS_Stream.h> in LineSearch.h 00044 00045 class InitialInterpolatedLineSearch: public LineSearch 00046 { 00047 public: 00048 InitialInterpolatedLineSearch(double tolerance = 0.8, 00049 int maxIter = 10, 00050 double minEta = 0.1, 00051 double maxEta = 10.0, 00052 int printFlag = 1); 00053 00054 ~InitialInterpolatedLineSearch(); 00055 00056 int newStep(LinearSOE &theSOE); 00057 int search(double s0, 00058 double s1, 00059 LinearSOE &theSOE, 00060 IncrementalIntegrator &theIntegrator); 00061 00062 int sendSelf(int commitTag, Channel &theChannel); 00063 int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker); 00064 void Print(OPS_Stream &s, int flag =0) ; 00065 00066 protected: 00067 00068 private: 00069 Vector *x; 00070 double tolerance; 00071 int maxIter; 00072 double minEta; 00073 double maxEta; 00074 int printFlag; 00075 }; 00076 00077 #endif 00078 00079 |