00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef Broyden_h
00026 #define Broyden_h
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <EquiSolnAlgo.h>
00042 #include <Vector.h>
00043 #include <IncrementalIntegrator.h>
00044 #include <LinearSOE.h>
00045
00047 class Broyden: public EquiSolnAlgo
00048 {
00049 public:
00050
00052 Broyden(int tangent = CURRENT_TANGENT, int n = 10 );
00053
00055 Broyden(ConvergenceTest &theTest, int tangent = CURRENT_TANGENT, int n = 10 );
00056
00058 ~Broyden();
00059
00061 int solveCurrentStep(void);
00062
00064 void setTest(ConvergenceTest &theNewTest);
00065
00067 ConvergenceTest *getTest(void);
00068
00070 virtual int sendSelf(int commitTag, Channel &theChannel);
00072 virtual int recvSelf(int commitTag, Channel &theChannel,
00073 FEM_ObjectBroker &theBroker);
00074
00076 void Print(ostream &s, int flag =0);
00077
00078 protected:
00079
00080 private:
00081
00083 ConvergenceTest *theTest;
00084
00086 ConvergenceTest *localTest ;
00087
00089 int tangent ;
00090
00092 int numberLoops ;
00093
00094 Vector **s ;
00095
00096 Vector **z ;
00097
00099 Vector *residOld ;
00100 Vector *residNew ;
00101
00103 Vector *du ;
00104
00105 Vector *temp ;
00106
00107 void BroydenUpdate( IncrementalIntegrator *theIntegrator,
00108 LinearSOE *theSOE,
00109 Vector &du,
00110 int count ) ;
00111
00112 };
00113
00114 #endif
00115
00116
00117 ÿ