xc
BFBRoydenBase.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //BFBRoydenBase.h
29 
30 #ifndef BFBRoydenBase_h
31 #define BFBRoydenBase_h
32 
33 #include "EquiSolnConvAlgo.h"
34 #include "utility/matrix/Vector.h"
35 #include <solution/analysis/integrator/IncrementalIntegrator.h>
36 
37 namespace XC {
38 
40 //
52  {
53  void free_mem(void);
54  void alloc(const ConvergenceTest *);
55  protected:
56  ConvergenceTest *localTest;
57  int tangent;
59  std::vector<Vector> s;
60  std::vector<Vector> z;
65 
66  BFBRoydenBase(SolutionStrategy *,int classTag,int tangent = CURRENT_TANGENT, int n = 10);
67  BFBRoydenBase(SolutionStrategy *,int classTag,ConvergenceTest &theTest, int tangent= CURRENT_TANGENT, int n=10);
68  public:
69  ~BFBRoydenBase(void);
70 
71  int setConvergenceTest(ConvergenceTest *theNewTest);
72  };
73 } // end of XC namespace
74 
75 #endif
76 
77 
Float vector abstraction.
Definition: Vector.h:94
EquiSolnConvAlgo is a class which performs a Newton-Raphson solution algorithm in solving the equatio...
Definition: EquiSolnConvAlgo.h:80
Vector residOld
residuals
Definition: BFBRoydenBase.h:61
BFBRoydenBase(SolutionStrategy *, int classTag, int tangent=CURRENT_TANGENT, int n=10)
Constructor.
Definition: BFBRoydenBase.cc:50
int setConvergenceTest(ConvergenceTest *theNewTest)
Sets convergence test to use with the algorithm.
Definition: BFBRoydenBase.cc:66
convergence test.
Definition: ConvergenceTest.h:81
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
std::vector< Vector > z
displacement increments
Definition: BFBRoydenBase.h:60
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int numberLoops
number of iterations
Definition: BFBRoydenBase.h:58
std::vector< Vector > s
displacement increments
Definition: BFBRoydenBase.h:59
Vector residNew
residuals
Definition: BFBRoydenBase.h:62
Base class for Broyden&#39;s method solution algorithms.
Definition: BFBRoydenBase.h:51
Vector temp
temporary vector
Definition: BFBRoydenBase.h:64
Vector du
displacement increment
Definition: BFBRoydenBase.h:63
~BFBRoydenBase(void)
Destructor.
Definition: BFBRoydenBase.cc:62