XC Open source finite element analysis program
DomainDecompositionAnalysis.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.4 $
48 // $Date: 2005/11/29 23:36:47 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/DomainDecompositionAnalysis.h,v $
50 
51 
52 // Written: fmk
53 // Created: Tue Sept 17 16:34:47: 1996
54 // Revision: A
55 //
56 // Description: This file contains the class definition for
57 // DomainDecompositionAnalysis. DomainDecompositionAnalysis is a subclass
58 // of AnalysisAnalysis, it is used when performing a domain decomposition
59 // analysis. It provides methods which can be invoked by a subdomain to
60 // perform the numerical computations required.
61 //
62 // What: "@(#) DomainDecompositionAnalysis.h, revA"
63 
64 #ifndef DomainDecompositionAnalysis_h
65 #define DomainDecompositionAnalysis_h
66 
67 #include <solution/analysis/analysis/Analysis.h>
68 #include "utility/matrix/Vector.h"
69 #include <utility/actor/actor/MovableObject.h>
70 
71 namespace XC {
72 class Subdomain;
73  class Matrix;
74  class DomainSolver;
75 
77 //
82  {
83  private:
84  Subdomain *theSubdomain;
85  DomainSolver *theSolver;
86  Vector theResidual;
87  int numEqn;
88  int numExtEqn;
89 
90  // the following 2 variables are used to allow formResidual()
91  // and formTangVectProduct() to be called before formTangent()
92  // - this must be allowed as typical elements will not have to fromTangent
93  // before being asked to form Residual().
94  bool tangFormed;
95  int tangFormedCount;
96  protected:
97  int domainStamp;
99  inline Subdomain *getSubdomainPtr(void) const
100  { return theSubdomain; }
101 
102  void set_all_links(void);
103 
104  friend class ProcSolu;
105  friend class FEM_ObjectBroker;
106  DomainDecompositionAnalysis(Subdomain &theDomain,SoluMethod *s= nullptr);
107  DomainDecompositionAnalysis(Subdomain &theDomain,DomainSolver &theSolver,SoluMethod *s= nullptr);
108  DomainDecompositionAnalysis(int classTag, Subdomain &theDomain,SoluMethod *s= nullptr);
109  DomainDecompositionAnalysis(int classTag, Subdomain &theDomain,DomainSolver &theSolver,SoluMethod *s);
110  Analysis *getCopy(void) const;
111  public:
112 
113  virtual void clearAll(void);
114  virtual int initialize(void);
115  virtual int domainChanged(void);
116 
117  // methods for non standard domain deomposition analysis
118  virtual bool doesIndependentAnalysis(void);
119  virtual int analyze(double dT);
120 
121  // methods for standard domain deomposition analysis
122  // that do some form of condensation to the tangent
123  virtual int getNumExternalEqn(void);
124  virtual int getNumInternalEqn(void);
125  virtual int newStep(double dT);
126  virtual int computeInternalResponse(void);
127  virtual int formTangent(void);
128  virtual int formResidual(void);
129  virtual int formTangVectProduct(Vector &force);
130  virtual const Matrix &getTangent(void);
131  virtual const Vector &getResidual(void);
132  virtual const Vector &getTangVectProduct(void);
133 
134  virtual const DomainSolver *getDomainSolver(void) const;
135  virtual DomainSolver *getDomainSolver(void);
136  virtual const Subdomain *getSubdomain(void) const;
137  virtual Subdomain *getSubdomain(void);
138 
139  virtual int sendSelf(CommParameters &);
140  virtual int recvSelf(const CommParameters &);
141 
142  // methods to change the analysis aggregates
143  virtual int setAlgorithm(EquiSolnAlgo &theAlgorithm);
144  virtual int setIntegrator(IncrementalIntegrator &theIntegrator);
145  virtual int setLinearSOE(LinearSOE &theSOE);
146  virtual int setConvergenceTest(ConvergenceTest &theTest);
147  };
148 inline Analysis *DomainDecompositionAnalysis::getCopy(void) const
149  { return new DomainDecompositionAnalysis(*this); }
150 } // end of XC namespace
151 
152 #endif
153 
154 
155 
156 
157 
158 
159 
160 
161 
162 
163 
virtual int formResidual(void)
Forma el vector residuo.
Definition: DomainDecompositionAnalysis.cpp:285
virtual int setIntegrator(IncrementalIntegrator &theIntegrator)
Sets the integrator to use in the analysis.
Definition: DomainDecompositionAnalysis.cpp:540
virtual void clearAll(void)
Clears all object members (constraint handler, analysis model,...).
Definition: DomainDecompositionAnalysis.cpp:132
Subdomain * getSubdomainPtr(void) const
Returns a pointer to the subdomain.
Definition: DomainDecompositionAnalysis.h:99
IncrementalIntegrator is an algorithmic class for setting up the finite element equations in an incre...
Definition: IncrementalIntegrator.h:87
EquiSolnAlgo is an abstract base class, i.e. no objects of it&#39;s type can be created. Its subclasses deifine the sequence of operations to be performed in the analysis by static equilibrium of a finite element model.
Definition: EquiSolnAlgo.h:85
virtual int setConvergenceTest(ConvergenceTest &theTest)
Sets the convergence test to use in the analysis.
Definition: DomainDecompositionAnalysis.cpp:557
Definition: Vector.h:82
Clase Base para los objetos que realizan the analysis.
Definition: Analysis.h:109
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
used to solve a system of equations and to do static condensation operations on the linear system of ...
Definition: DomainSolver.h:79
virtual int analyze(double dT)
Performs the analysis.
Definition: DomainDecompositionAnalysis.cpp:139
Solution procedure for the finite element problem.
Definition: ProcSolu.h:56
virtual int setAlgorithm(EquiSolnAlgo &theAlgorithm)
Sets the solution algorithm to use in the analysis.
Definition: DomainDecompositionAnalysis.cpp:532
FEM_ObjectBroker is is an object broker class for the finite element method. All methods are virtual ...
Definition: FEM_ObjectBroker.h:138
virtual int domainChanged(void)
Performs los cambios que implica un cambio en el domain del problema.
Definition: DomainDecompositionAnalysis.cpp:165
convergence test.
Definition: ConvergenceTest.h:75
Object that can move between processes.
Definition: MovableObject.h:91
virtual int getNumInternalEqn(void)
Returns the number of internal equations.
Definition: DomainDecompositionAnalysis.cpp:234
virtual const Matrix & getTangent(void)
Return the tangent stiffness matrix.
Definition: DomainDecompositionAnalysis.cpp:343
virtual int formTangVectProduct(Vector &force)
??
Definition: DomainDecompositionAnalysis.cpp:316
Definition: Subdomain.h:87
Used when performing a domain decomposition analysis. It provides methods which can be invoked by a s...
Definition: DomainDecompositionAnalysis.h:81
Definition: Matrix.h:82
virtual const Subdomain * getSubdomain(void) const
Returns a pointer to the subdomain.
Definition: DomainDecompositionAnalysis.cpp:154
Linea system of equations. This is the class definition for LinearSOE. LinearSOE is an abstract base ...
Definition: LinearSOE.h:86
void set_all_links(void)
Sets los pointers tol DomainDecompSolutionAlgorithm y al subdomain.
Definition: DomainDecompositionAnalysis.cpp:85
virtual int setLinearSOE(LinearSOE &theSOE)
Sets the system of equations to use in the analysis.
Definition: DomainDecompositionAnalysis.cpp:549
virtual const Vector & getResidual(void)
Returns the vector residuo.
Definition: DomainDecompositionAnalysis.cpp:362
virtual int formTangent(void)
Forma la tangent stiffness matrix.
Definition: DomainDecompositionAnalysis.cpp:249
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
virtual int getNumExternalEqn(void)
Returns the number of external equations.
Definition: DomainDecompositionAnalysis.cpp:230
virtual const DomainSolver * getDomainSolver(void) const
Returns a pointer to the DomainSolver.
Definition: DomainDecompositionAnalysis.cpp:146
DomainDecompositionAnalysis(Subdomain &theDomain, SoluMethod *s=nullptr)
Constructor.
Definition: DomainDecompositionAnalysis.cpp:91